SymfonyComponentTranslationTestsDumperPoFileDumperTest

The Simple Calendar Symfony Component Translation Tests Dumper PoFileDumperTest class.

Defined (1)

The class is defined in the following location(s).

/vendor/symfony/translation/Tests/Dumper/PoFileDumperTest.php  
  1. class PoFileDumperTest extends \PHPUnit_Framework_TestCase 
  2. public function testFormatCatalogue() 
  3. $catalogue = new MessageCatalogue('en'); 
  4. $catalogue->add(array('foo' => 'bar')); 
  5.  
  6. $dumper = new PoFileDumper(); 
  7.  
  8. $this->assertStringEqualsFile(__DIR__.'/../fixtures/resources.po', $dumper->formatCatalogue($catalogue, 'messages'));