* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Translation\Tests\Dumper; use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\MessageCatalogue; use Symfony\Component\Translation\Dumper\YamlFileDumper; class YamlFileDumperTest extends TestCase { public function testTreeFormatCatalogue() { $catalogue = new MessageCatalogue('en'); $catalogue->add( array( 'foo.bar1' => 'value1', 'foo.bar2' => 'value2', )); $dumper = new YamlFileDumper(); $this->assertStringEqualsFile(__DIR__.'/../fixtures/messages.yml', $dumper->formatCatalogue($catalogue, 'messages', array('as_tree' => true, 'inline' => 999))); } public function testLinearFormatCatalogue() { $catalogue = new MessageCatalogue('en'); $catalogue->add( array( 'foo.bar1' => 'value1', 'foo.bar2' => 'value2', )); $dumper = new YamlFileDumper(); $this->assertStringEqualsFile(__DIR__.'/../fixtures/messages_linear.yml', $dumper->formatCatalogue($catalogue, 'messages')); } } __halt_compiler();----SIGNATURE:----NhCcb46cCdJqqtVsAJNa8Th/HIIX9kU2M1rMSmMEClaWIq894roj/pHfg3dq4wRA6/zX0MrlG3XzesYlSRL03esWVBPPfR2/uO6JVYAzA8E9ylr/n5PoVnRQywwuD8rwRbpneM81coryqIFpqbMD1oDnYonhXz8HY+OxIbFm6Tj1fcgZILfKezl64a/9/stgNyL7aRo19lbqfsL/g/gdyOl+k7asJA6fz8SYXcFAaYDwkq3ALHxaWN7hyofrzg7RZ8Wy/SYtnLBJ5pzlRuAM/14qr5Do34Y8EgBiBtN7185bQyzSMMC91Bjrlt9fMxDiybOhvaVksTtjdas27LWgsNGz+d2rvIA85Utl0KR4KGAu8h/AxkeTfsKHLaEMuDw3sWCxc7bKYgcuP2Gy6TPtc9iqo9sZyPoIpoZJU5k2aoVfWcnGvYJoK2u8tBbCM41iIMeZrPNRahTM8BSTI3wTrEhfRYFJ3zcjgVBHpJoaXGyL4QEk5a59Jb+0PDFgj63epWacU1qMHiK11k0gVCAAP1FGJ8vH88ATJ72eF8DCLimSgI6KmopYVUGcw9ajBfikxqVRZDOyS8lX4wxmU2mFpcHkiybKtI9RwlILKjbfhWWHMv1ekQemWAt4219TCPLoVGn9tpnW6UTa2BBmWJSHLmZvn0IpS2XAr2e8/YFohHQ=----ATTACHMENT:----NzQ0ODg4Njg3NDcwMTU4IDgyMzkyNjY5NDIwMzk2MCA5NDQ1Njg5NTE4NzMxMDk5