This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/Yaml
Fabien Potencier ba6e3159c0 added a way to enable/disable object support when parsing/dumping
By default, object support is disabled, and instead of throwing an
exception when an object is handled, null is returned.

If you do need object support, enable it via:

    Yaml::dump($data, false, true);

If you want an exception to be thrown in case an invalid type is handled
(a PHP resource or a PHP object), pass true as the second argument:

    Yaml::dump($data, true, true);

The same can be done when parsing:

    Yaml::parse($data, 2, false, true);
2013-01-17 16:07:25 +01:00
..
Fixtures fixed CS (mainly method signatures) 2012-07-09 14:43:50 +02:00
DumperTest.php added a way to enable/disable object support when parsing/dumping 2013-01-17 16:07:25 +01:00
InlineTest.php 1. Separated testing diacritic letters with additional check for mbstring in Symfony\Tests\Component\Console\Helper\FormatterHelperTest.php. 2011-11-30 02:22:13 +05:00
ParserTest.php added a way to enable/disable object support when parsing/dumping 2013-01-17 16:07:25 +01:00