| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public static function ObtainFrameworkInstance( |
||
| 17 | TestCase $testCase, |
||
| 18 | string $implementation, |
||
| 19 | ...$implementationArgs |
||
| 20 | ) : Framework { |
||
| 21 | $testCase->assertTrue( |
||
| 22 | is_a($implementation, Framework::class, true), |
||
| 23 | sprintf( |
||
| 24 | 'Argument %u passed to %s must be an implementation of %s', |
||
| 25 | 1, |
||
| 26 | __METHOD__, |
||
| 27 | Framework::class |
||
| 28 | ) |
||
| 29 | ); |
||
| 30 | |||
| 31 | return new $implementation(...$implementationArgs); |
||
| 32 | } |
||
| 82 |