Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testApply() |
||
16 | { |
||
17 | $injector = new Injector; |
||
18 | |||
19 | $auryn = new AurynConfiguration(); |
||
20 | $auryn->apply($injector); |
||
21 | |||
22 | $config = $injector->make(TwigResponderConfiguration::class); |
||
23 | $config->apply($injector); |
||
24 | |||
25 | $responder = $injector->make(FormattedResponder::class); |
||
26 | |||
27 | $this->assertArrayHasKey(TwigFormatter::class, $responder); |
||
28 | $this->assertSame(1.0, $responder[TwigFormatter::class]); |
||
29 | } |
||
30 | |||
46 |