"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:----OPPVyS+D7ZRxJwmHJkPbJdrL+1+KUQeXPl5bjPtTQfSBFOHGJqgu87qmYUbuBOw+BzqbMebJrkKP7iRm72xZNrueqxtBpAoxxTqcNMd8jtgq81nm/++wUeAlB3unYChhepbRGRUC7ovWJPO/SGKdxjnT23kH1596rj8aVuBJiDJm3qcW2mCIb7abrdOUeE7Qx7+Yb4IpNoeNBuFnigqclo7CuggI6vFa+AWx7UsDHUFvMUqd7wgxLFmn+mnjpxjTf2g5Otn8VJThdO9pcpCaa186zlD+kDCrGEm/Aivrnh6Ix1smtaEGUSatkCs/f9TZmKR98ltEuBui/LIJlmKnIzpBIwy4Xn64zGIGPs0gd2tI2PtLrSx+oXX4lbdp+txZizbDI/G0obz3xE2dxV+QIOL974qNFNL3jc1bzoH6Z2LforHyrBugaL64t7la4NiY4brAsBr++8rQ6kMIPbjpXI78HcQz5Ul594XXbTzIaMRVFhXZEwwZZ159VdH8lFIxOywvwvxSTFBHN2ahjVwz9KAY+j4Iy2zAs9OatHYcDNSGXiNzj3/w35tqv4DUXYc9rjiSgSRtlTC058kIh8AenB0uwNnrBX8WfjnEQIVrugqaMQDBbsD+Dhsz+3CzXXAwdgxOWz7hGYOyOU+G133HrxsDEwcGBv+rtRFfwXc4Ai8=----ATTACHMENT:----Njk5ODIxNDMwNjM5NjM0MiA0OTgwMzMwMTgzNDEyNDg0IDYyNzczODM3MjMxOTU2MDg=