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