Fixed yaml dumper test with newer versions

This commit is contained in:
Marc J. Schmidt 2016-04-13 19:01:57 +02:00
parent 1a22061a47
commit 9c4ad7db45
No known key found for this signature in database
GPG key ID: 152515A32C34AD1B

View file

@ -56,6 +56,12 @@ class YamlDataDumperTest extends TestCase
YAML;
$result = file_get_contents($filename);
//yaml changed the way objects are serialized in
// -> https://github.com/symfony/yaml/commit/d5a7902da7e5af069bb8fdcfcf029a229deb1111
//so we need to replace old behavior with new, to get this test working in all versions
$result = str_replace(' !!php/object', ' !php/object', $result);
$this->assertEquals($expected, $result);
}
}