You are here

public function TranslationDataCollectorTest::testCollectEmptyMessages in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

TranslationDataCollectorTest

Namespace

Symfony\Component\Translation\Tests\DataCollector

Code

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());
}