"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:----wmMehyU0H5awgksPuPLapod33RsuBuU9B4D3P1bPQbgLKk63UZsK2J53e7f39ZfMK/wV88NWKDPaIZvJIoFHnG/Ajfo3AUyH2z1M/14DSbhbbYqTHMZLjZLcaO1nsaY22KFkk4z3gHApJql2t6FI/jJVXM9C0f8RzogpfiEAct8OJ57890sjMzBcAq2URF7vArwN+fFcha4CDPG1uK2DjQ05Bn6m59hIBHbess1kXjTQxLoDMQ3ut/HRMkT2ZnWY0yrsMINmIMudNSx5dRYjKTbOFBDOmIW7m4bZtlsJVqgxGB7XgF+bf1ZZlYCqvfQUUNaoocWZNrO7wQawSyZLnaN8/RQoTIoRYFKUcs6oMKQshHJ8DBxaSg6268sPDYQ/jXcT4f0lwerRZp65nw1+4ejq94rt+o0wYmISO2yZ0Z0Ejc+bfJvrUS/EDBCF5AXnD+JgJ5P6h7iFon6s7m90c6WPG7NBHiUHjAEjrhnXgsjWMGH/q8VwvwzEw0zsqRsmzWfXQIE+F8EHry9gUH+O+z9eN56AJUoKGVtmVwc+6JOYSGGngl/7Pyq8AMQcmTMuIYV0k/EruWf0u4XQk0+UFUV3d6HjPVLLgHPI7xNtU0AylELc7SsOLx5zM3RGMKZ29EN/64JJVwYo4N8SCR8gzMkFh9z0oqprUge1qu6IVAs=----ATTACHMENT:----NjA2OTI2MTcyMTA0OTcyMyA4NjEyMjA0NTM0NTQ0OTE4IDExMjk0NTE1NDY4MTExODk=