<?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\IniFileDumper;
useSymfony\Component\Translation\MessageCatalogue;
classIniFileDumperTestextendsTestCase{
publicfunctiontestFormatCatalogue()
{
$catalogue = newMessageCatalogue('en');
$catalogue->add(['foo' => 'bar']);
$dumper = newIniFileDumper();
$this->assertStringEqualsFile(__DIR__.'/../fixtures/resources.ini', $dumper->formatCatalogue($catalogue, 'messages'));
}
}