Skip to content

Commit 0a87632

Browse files
committed
UriTest: new expectException usage
1 parent 855d541 commit 0a87632

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/UriTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,10 @@ public function testRequestUrl()
7777
$this->assertEquals('bitcoin:'.$string.'?r=https%3A%2F%2Fexample.com%2Frequest', $uri->uri());
7878
}
7979

80-
/**
81-
* @expectedException \InvalidArgumentException
82-
*/
8380
public function testBip21MustProvideAddress()
8481
{
8582
$address = null;
83+
$this->expectException(\InvalidArgumentException::class);
8684
new Uri($address);
8785
}
8886

0 commit comments

Comments
 (0)