"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:----CgYsoMehoA6SjaWcCPBmtjqFwTf88Y2BwTpBttOc77ZIrSvVarw+qvKQ1JtDAd+H1JDDPjVL0Qr1APMu8ipAMtmUkg4fpWSOjsztHNjLZaxMutdZGg7hoc4u7EzpIMmcWKXgGY4naPyHSFPK2255mlZ88KVWaR1zcxXfR2uyNN7gmRk89PerlXoyVEoCLYSgxrliiUcyTAZlwwaQqw48xYyn0lruklVrIFU+XB72+MCDUkxDfr/klzUaBDJyw3U67TbAv/i0wBMJkZ9IOTvXqKylWVpQ1RbIL53CFRCkQxtJgCDTFqnBMv4mWJ8zp3G9kQ7tBdhozBlzQeB947MRY9VqdedBYZi4gptVS1XvKMEMicRh51eDs8yVEtxpwCuoTPb2bZyMTd8Qp+/zvbqh0qSA7CASZr60Day+vmwxQI8ZHKETdxXEsVjhG+tb9S0/cpNAXQEADZw94OPxN8xs5u5V8P0v2osR6G5yMaFDVKKB78n2oDdp2ElWwCuy/aa6Er4BJgnHMi+0MWLeDuOZr5sDFf367qGiwKhkYhQ1g08b5cYHJVe5v1ls2vuEVa5g+AzguVUPP8zmG7wbHHSQH0Ug5rZhhOW10W2oX4oKuhLQmM3LNLUenkzktUCa/BbtSalZu0apL4m/0yG1ERqbIbrS0h7LM7Gphij8lLry+D0=----ATTACHMENT:----Njk5OTAzOTY0Mzg1NTYzMSA1NjY2NDA0Njg2MzQ3MTkyIDkyMjY0NzU1Nzg1NjQ2NTg=