Skip to content

Commit 0dae575

Browse files
committed
Add test case throwing Error
Related to #6.
1 parent 48389e0 commit 0dae575

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/AsyncTestCaseTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ public function testExpectingAnExceptionThrown(): \Generator
5757
yield $throwException();
5858
}
5959

60+
public function testExpectingAnErrorThrown(): \Generator
61+
{
62+
$this->expectException(\Error::class);
63+
64+
yield call(function () {
65+
throw new \Error;
66+
});
67+
}
68+
6069
public function argumentSupportProvider(): array
6170
{
6271
return [

0 commit comments

Comments
 (0)