for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Incenteev\TranslationCheckerBundle\Tests\Translator\Extractor;
use Incenteev\TranslationCheckerBundle\Translator\Extractor\ChainExtractor;
use PHPUnit\Framework\TestCase;
use Prophecy\PhpUnit\ProphecyTrait;
class ChainExtractorTest extends TestCase
{
use ProphecyTrait;
public function testExtract()
$extractor1 = $this->prophesize('Incenteev\TranslationCheckerBundle\Translator\Extractor\ExtractorInterface');
$extractor2 = $this->prophesize('Incenteev\TranslationCheckerBundle\Translator\Extractor\ExtractorInterface');
$catalogue = $this->prophesize('Symfony\Component\Translation\MessageCatalogue');
$extractor1->extract($catalogue)->shouldBeCalled();
$extractor2->extract($catalogue)->shouldBeCalled();
$extractor = new ChainExtractor(array($extractor1->reveal(), $extractor2->reveal()));
$extractor->extract($catalogue->reveal());
}