Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function serviceIsCreated(array $config, bool $expectedIsDev): void |
||
28 | { |
||
29 | $instance = $this->factory->__invoke(new ServiceManager(['services' => [ |
||
30 | 'config' => $config, |
||
31 | ]])); |
||
32 | |||
33 | $ref = new ReflectionObject($instance); |
||
34 | $isDev = $ref->getProperty('isDevelopmentMode'); |
||
35 | $isDev->setAccessible(true); |
||
36 | |||
37 | $this->assertInstanceOf(ErrorResponseGenerator::class, $instance); |
||
38 | $this->assertEquals($expectedIsDev, $isDev->getValue($instance)); |
||
39 | } |
||
40 | |||
48 |