Skip to content

Commit b134bab

Browse files
committed
ITT: New reflection assertions tests added.
1 parent ea496c9 commit b134bab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/Asserts/ReflectionAssertsTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,16 @@ public function it_has_trait_not_used_assertion()
2929
{
3030
$this->assertTraitNotUsed(Post::class, 'Acme\Trait\Fake');
3131
}
32+
33+
/** @test */
34+
public function it_has_method_exists_assertion()
35+
{
36+
$this->assertMethodExists(Post::class, 'save');
37+
}
38+
39+
/** @test */
40+
public function it_has_method_not_exists_assertion()
41+
{
42+
$this->assertMethodNotExists(Post::class, 'foobarbaz');
43+
}
3244
}

0 commit comments

Comments
 (0)