Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function testExtract() |
||
14 | { |
||
15 | $extractor1 = $this->prophesize('Incenteev\TranslationCheckerBundle\Translator\Extractor\ExtractorInterface'); |
||
16 | $extractor2 = $this->prophesize('Incenteev\TranslationCheckerBundle\Translator\Extractor\ExtractorInterface'); |
||
17 | |||
18 | $catalogue = $this->prophesize('Symfony\Component\Translation\MessageCatalogue'); |
||
19 | |||
20 | $extractor1->extract($catalogue)->shouldBeCalled(); |
||
21 | $extractor2->extract($catalogue)->shouldBeCalled(); |
||
22 | |||
23 | $extractor = new ChainExtractor(array($extractor1->reveal(), $extractor2->reveal())); |
||
24 | |||
25 | $extractor->extract($catalogue->reveal()); |
||
26 | } |
||
28 |