<?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;usePHPUnit\Framework\TestCase;useSymfony\Component\Translation\Dumper\PhpFileDumper;useSymfony\Component\Translation\MessageCatalogue;classPhpFileDumperTestextendsTestCase{publicfunctiontestFormatCatalogue(){$catalogue=newMessageCatalogue('en');$catalogue->add(['foo'=>'bar']);$dumper=newPhpFileDumper();$this->assertStringEqualsFile(__DIR__.'/../fixtures/resources.php',$dumper->formatCatalogue($catalogue,'messages'));}}