Total Complexity | 4 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class BootstrapServiceTest extends \PHPUnit\Framework\TestCase |
||
8 | { |
||
9 | /** |
||
10 | * @var BootstrapService |
||
11 | */ |
||
12 | private $service; |
||
13 | |||
14 | /** |
||
15 | * Set up service |
||
16 | */ |
||
17 | public function setUp() |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @test |
||
24 | * @dataProvider getWrongScenarios |
||
25 | * |
||
26 | * @param array $config |
||
27 | */ |
||
28 | public function itFailsOnWrongConfiguration(array $config) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @test |
||
35 | */ |
||
36 | public function itShouldSkipWithCorrectKeyWithWrongValue() |
||
37 | { |
||
38 | self::assertTrue( |
||
39 | $this->service->load( |
||
40 | [ |
||
41 | BootstrapService::CONFIGURATION_KEY => [ |
||
42 | [ |
||
43 | 'wrong-key' => 'ls -la', |
||
44 | ], |
||
45 | ], |
||
46 | ] |
||
47 | ) |
||
48 | ); |
||
49 | } |
||
50 | |||
51 | public function getWrongScenarios() |
||
62 | ], |
||
63 | ]; |
||
67 |