Skip to content

Commit e82b8a6

Browse files
committed
ITT: Exception asserts tests added.
1 parent 6c1cd15 commit e82b8a6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
use Illuminated\Testing\Asserts\ExceptionAsserts;
4+
5+
class ExceptionAssertsTest extends TestCase
6+
{
7+
use ExceptionAsserts;
8+
9+
/** @test */
10+
public function it_has_will_see_exception_assertion()
11+
{
12+
$this->willSeeException(RuntimeException::class, 'Oops! Houston, we have a problem!');
13+
14+
throw new RuntimeException('Oops! Houston, we have a problem!');
15+
}
16+
}

0 commit comments

Comments
 (0)