public function TranslationDataCollectorTest::testCollectEmptyMessages in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/translation/Tests/DataCollector/TranslationDataCollectorTest.php \Symfony\Component\Translation\Tests\DataCollector\TranslationDataCollectorTest::testCollectEmptyMessages()
File
- vendor/
symfony/ translation/ Tests/ DataCollector/ TranslationDataCollectorTest.php, line 26
Class
Namespace
Symfony\Component\Translation\Tests\DataCollectorCode
public function testCollectEmptyMessages() {
$translator = $this
->getTranslator();
$translator
->expects($this
->any())
->method('getCollectedMessages')
->will($this
->returnValue(array()));
$dataCollector = new TranslationDataCollector($translator);
$dataCollector
->lateCollect();
$this
->assertEquals(0, $dataCollector
->getCountMissings());
$this
->assertEquals(0, $dataCollector
->getCountFallbacks());
$this
->assertEquals(0, $dataCollector
->getCountDefines());
$this
->assertEquals(array(), $dataCollector
->getMessages());
}