"value", "key2" => "value2" ]; $formatter = new PlainTextFormatter(); $this->assertEquals("value\nvalue2\n", $formatter->process($array)); } public function testObjectFormatter() { $object = new SampleModel(); $object->Id = "10"; $object->setName("Joao"); $formatter = new PlainTextFormatter(); $this->assertEquals("10\nJoao\n", $formatter->process($object->toArray())); $this->assertEquals("10\nJoao\n", $formatter->process($object)); } public function testObjectList() { $object = new ModelList3(); $object->addItem(new ModelGetter(10, "John")); $object->addItem(new ModelGetter(20, "Doe")); $formatter = new PlainTextFormatter(); $this->assertEquals("10\nJohn\n\n20\nDoe\n\n\n", $formatter->process($object)); $this->assertEquals("10\nJohn\n\n20\nDoe\n\n", $formatter->process(SerializerObject::instance($object->getCollection())->serialize())); } } __halt_compiler();----SIGNATURE:----3QoS8noa89qlXbH6F/ZKACqU7vlpV5zpYBok5rk0x9LU3Yf/y6Uz6vrrDYHP/rPbFG1JDlIUE186yj7207dML+kqiK+M5mNcaVTvPgiCG49aNOOdCeCCpyLsFaDukZh86ofswb+SFJj0ezYYxWsi8T5gbvrfBoOFtwcirJEI+dPHpqMSKIPqnYDEoeU2tyocJB0imw5LEM3HSeXH/MKE2/n0N9WB+oUBuZli1SUiRgMbGIymX9uBNhFkw7xPZoJ647hMvgM46GOgl86i2fNoibb1nbiAwILpXQYLVNgtIB70ANkcI3sD7K/HycSQVB9KdzvNnv/YfeYa+De/SIrz/Arp27j2egkvduwarYMnrrZZ53PvCnb89vMzzOt12ebRXUMqyZNIHydoP87bfYASofjh/yiuzydD/2KAPbLP1Ccz/N6NElFuocvEtlmqF7XtwQDAhJrL70EjzHyvvSyf6M3s3gt8QYJziz+sebmkxqCIsoBgxc45gsnUoRBXWl+AtfJiAz3ie/kP+TNbQSp+bFXokUsN4FFMc//C+UEvF2bqRdtdVv00sk+LFfpj7YNNDOB3/YmT3jk4YjGczd+JvZAjcEZ8hbFEEyiEWT0vyAWtk8A/33M8re5s+f335Ttcz90knX4yKr5xcLcLwNqwHlefAlgtUXE8FEEZEp704B4=----ATTACHMENT:----MTg2ODA2OTQxMzA2NTAwNiA5MzY4MjgxMDQ1OTM0ODIyIDU4MDEzOTY3MTg4NDMyNjE=