/** * test unserialize with string (none array or object) */ public function testAppendSerializeForStringData() { $object = new Object(); $string = "Some string to \n serialize"; $serialized = serialize($string); $object->appendSerialized($serialized); $this->assertEquals($string, $object->get('default')); }
/** * allow to join two blue objects into one * * @param \ClassKernel\Data\Object $object * @return $this */ public function mergeBlueObject(Object $object) { $newData = $object->toArray(); foreach ($newData as $key => $value) { $this->appendData($key, $value); } $this->_dataChanged = true; return $this; }