[Yaml] fixed a test on PHP < 5.4