Skip to content

Commit 816d897

Browse files
committed
ITT: New reflection asserts tests added.
1 parent 3507898 commit 816d897

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/Asserts/ReflectionAssertsTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
<?php
22

3+
use Illuminate\Console\Command;
4+
use Illuminate\Database\Eloquent\Model;
35
use Illuminate\Notifications\Notifiable;
46

57
class ReflectionAssertsTest extends TestCase
68
{
9+
/** @test */
10+
public function it_has_subclass_of_assertion()
11+
{
12+
$this->assertSubclassOf(Post::class, Model::class);
13+
}
14+
15+
/** @test */
16+
public function it_has_not_subclass_of_assertion()
17+
{
18+
$this->assertNotSubclassOf(Post::class, Command::class);
19+
}
20+
721
/** @test */
822
public function it_has_trait_used_assertion()
923
{

0 commit comments

Comments
 (0)