Fixed yaml dumper test with newer versions
This commit is contained in:
parent
1a22061a47
commit
9c4ad7db45
|
@ -56,6 +56,12 @@ class YamlDataDumperTest extends TestCase
|
||||||
YAML;
|
YAML;
|
||||||
|
|
||||||
$result = file_get_contents($filename);
|
$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);
|
$this->assertEquals($expected, $result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue