* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Yaml\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Yaml\Yaml; class YamlTest extends TestCase { public function testParseAndDump() { $data = array('lorem' => 'ipsum', 'dolor' => 'sit'); $yml = Yaml::dump($data); $parsed = Yaml::parse($yml); $this->assertEquals($data, $parsed); } /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage The indentation must be greater than zero */ public function testZeroIndentationThrowsException() { Yaml::dump(array('lorem' => 'ipsum', 'dolor' => 'sit'), 2, 0); } /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage The indentation must be greater than zero */ public function testNegativeIndentationThrowsException() { Yaml::dump(array('lorem' => 'ipsum', 'dolor' => 'sit'), 2, -4); } } __halt_compiler();----SIGNATURE:----FJp946L+H56sjOPMAImyS6irMFJeyCeBF2NGZa4ckJJZ7A7KebBfZgBqzm/OPrZ++7Gd1qS2HpbMX0EAGV6OCEdcp/QBpDODFtovPLkpMQ07JztMpMnPhNJlErUMMXAEE9itSLlZG3ujixjnzbZHeTw2YJ/NTW8qzrIaVYS/vjtATe1KVPS1H8xHxJoWzSqX/KqJE0VqRxoLJgZJ3OwIaEwUcq8oUhjSkLp7l2pekxzXHkfV/hiVeWzgKTkKDaFKNMu28ISukv2RNuHYmIhh/+pBG3gqdoEtwtuxWP17QDqWht1OeqsISW3lXKowtH04qRQT0SM5wGYTYM/3jlU4FsJ8nNgSbkfkwtXVY6CtTViEEjIisSYIxfxKSvhNpG/g/uy4vtr8qXUBuiDmQouzghrUbC8oXwRJI8/9SU2XX3gPVEH3c5agAnBvQ0ZkUiOSgnxbtiA6m38nrGrc7ienGNj2oXgbH629fKHPqcdAZQD3imxLjTI2lWOK75c4ChU+i7Rt+T9FCkf5jd+5iOnCxKtPpOmSFjA1rMBmsIgZoM+T52Vp7JZ7KcGEPF8VVN0qjOgzQARlpp1TxmxZoK6i0n4DPgg10XqhU9z8ugg4kOtO6MvGGdJDsfRkGnXDB15EfH9Ft3J2PJ0oxOxCY0QKk5G5DhoGip5j36HBvsinpiE=----ATTACHMENT:----OTg0OTE0ODE4Mjk2MjM2MSA0MTY0Mzk3MDMyMjAzMzEgMzczNDM2MDgyMzA4NzQyNg==