"value", "key2" => "value2" ]; $formatter = new YamlFormatter(); $this->assertEquals( file_get_contents(__DIR__ . "/yaml1.yml"), $formatter->process($array) ); } public function testObjectFormatter() { $object = new SampleModel(); $object->Id = "10"; $object->setName("Joao"); $formatter = new YamlFormatter(); $this->assertEquals( file_get_contents(__DIR__ . "/yaml2.yml"), $formatter->process($object->toArray()) ); $this->assertEquals( file_get_contents(__DIR__ . "/yaml2.yml"), $formatter->process($object) ); } public function testObjectList() { $object = new ModelList3(); $object->addItem(new ModelGetter(10, "John")); $object->addItem(new ModelGetter(20, "Doe")); $formatter = new YamlFormatter(); $this->assertEquals( file_get_contents(__DIR__ . "/yaml3.yml"), $formatter->process($object) ); $this->assertEquals( file_get_contents(__DIR__ . "/yaml4.yml"), $formatter->process(SerializerObject::instance($object->getCollection())->serialize()) ); } } __halt_compiler();----SIGNATURE:----f9rgF6D347TIeItUojKcgpwNNFwqJjOa12sNxzjGgZM4FCxwYzIXjk85fn4SboRYkQAKRxIc6rz4NhKeQiebfKDuQl+a669cGbSW8nOLpLJG1ezZBttPdvhQA3Vtf4t3bJtLIe2QAK2lYJXItQPu6NAnKSVQM4kNE7pvB8pEIW5bN0jbf/iJq0nQ1UYy4OHFJE/P0nxw3umpWQdqapv5lX5wo2btiQd82Sf/fqb8OEuyc9vxJD4quUv1nN6Ze9SoRyg3UL6hCDey8SYe30MZrjj2I+46HbQepYCuSEEXNnEdSf+v8phUz6LQjqb4/YgrOIxZswokNE2oJoymr1HlAZW+HcfniM6qaMyZeSsiflw1piDN93iiBxhS9HeVVfcdxnMaMYAo6MFc3MA6WwBrJMejh9D7rVyTnmYzBRJTepcZExAmA2br5yhbxAGhtfsVbKkMozvXfirzrUrH8PwGIkSpqg+qiJOluNn3jha+4u+WJRKri3TuvZ/BsYHV99Vnvhe8qzLPt29S0L8EAj2xs+kPJmxilUfOM0WCyE1CcAyFq/AKAEyokLZOFRaZyIMuZxgYrit8BGn6C0B6FBYVDthPpZiYdxymMPUchfcCMqrWt891Ov2rgdQMMr7xGYhmDjIFZG7E9VVwcZv+5w1eCLnweGW7N3x5eZJRuv1mOcg=----ATTACHMENT:----NDQ4MTQyNjI1NjA1Mzg4MyA4NTYzNzA4NDEzODgzNDcxIDczMjE3MDUxMDIwNjg1Njk=