| Total Complexity | 7 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | abstract class AbstractTestCase extends TestCase |
||
| 19 | { |
||
| 20 | protected function getRequestFactory(): RequestFactory |
||
| 21 | { |
||
| 22 | return new RequestFactory(); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @phpstan-param class-string $expectedClassName |
||
| 27 | * @phpstan-param class-string|object $objectOrClassName |
||
| 28 | */ |
||
| 29 | protected function assertSubclassOf(string $expectedClassName, $objectOrClassName): void |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param mixed $collection |
||
| 38 | * @throws InvalidArgumentException If the collection is neither an array nor traversable |
||
| 39 | */ |
||
| 40 | protected function assertContainsInstanceOf(string $expected, $collection): void |
||
| 59 |