<?php/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */namespaceSymfony\Component\Translation\Tests\Dumper;useSymfony\Component\Translation\MessageCatalogue;useSymfony\Component\Translation\Dumper\CsvFileDumper;classCsvFileDumperTestextends\PHPUnit_Framework_TestCase{publicfunctiontestFormatCatalogue(){$catalogue=newMessageCatalogue('en');$catalogue->add(array('foo'=>'bar','bar'=>'foofoo','foo;foo'=>'bar'));$dumper=newCsvFileDumper();$this->assertStringEqualsFile(__DIR__.'/../fixtures/valid.csv',$dumper->formatCatalogue($catalogue,'messages'));}}