Skip to content

Commit e6d67ae

Browse files
committed
ITT: New reflection asserts readme info added.
1 parent 4bcf96f commit e6d67ae

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,22 @@ $this->dontSeeElementTimes('.body-item', 5);
437437
438438
### ReflectionAsserts
439439
440+
#### `assertSubclassOf()`
441+
442+
Checks that class is subclass of specified parent class:
443+
444+
```php
445+
$this->assertSubclassOf(Post::class, Model::class);
446+
```
447+
448+
#### `assertNotSubclassOf()`
449+
450+
Checks that class is not subclass of specified parent class:
451+
452+
```php
453+
$this->assertNotSubclassOf(Post::class, Command::class);
454+
```
455+
440456
#### `assertTraitUsed()`
441457
442458
Checks that class is using specified trait:

0 commit comments

Comments
 (0)