public function TranslationDataCollectorTest::testCollectEmptyMessages in Plug 7
File
- lib/
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());
}