diff --git a/tests/UriTest.php b/tests/UriTest.php index e79e30311..c4ef2d8d3 100644 --- a/tests/UriTest.php +++ b/tests/UriTest.php @@ -77,12 +77,10 @@ public function testRequestUrl() $this->assertEquals('bitcoin:'.$string.'?r=https%3A%2F%2Fexample.com%2Frequest', $uri->uri()); } - /** - * @expectedException \InvalidArgumentException - */ public function testBip21MustProvideAddress() { $address = null; + $this->expectException(\InvalidArgumentException::class); new Uri($address); }