Skip to content

Commit

Permalink
UriTest: new expectException usage
Browse files Browse the repository at this point in the history
  • Loading branch information
afk11 committed Apr 17, 2021
1 parent 855d541 commit 0a87632
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/UriTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0a87632

Please sign in to comment.