SymfonyComponentTranslationTestsDumperCsvFileDumperTest

The Simple Calendar Symfony Component Translation Tests Dumper CsvFileDumperTest class.

Defined (1)

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

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