| Total Complexity | 4 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ManagerTests extends TestCase |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @test |
||
| 13 | */ |
||
| 14 | public function make() |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @test |
||
| 25 | */ |
||
| 26 | public function makeWithUnexpectedDriver() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return Anonymous |
||
| 37 | */ |
||
| 38 | protected function getManager() |
||
| 39 | { |
||
| 40 | return new class extends Manager { |
||
| 41 | |||
| 42 | public function createFooDriver() |
||
| 43 | { |
||
| 44 | return new class { |
||
| 45 | |||
| 46 | public function doAnything() |
||
| 50 | }; |
||
| 51 | } |
||
| 52 | |||
| 53 | public function createBarDriver() |
||
| 54 | { |
||
| 55 | return new class { |
||
| 56 | |||
| 57 | public function doAnything() |
||
| 61 | }; |
||
| 62 | } |
||
| 63 | |||
| 64 | public function getDefaultDriver() |
||
| 70 | } |
||
| 71 |