Example #1
0
 /**
  * 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'));
 }
Example #2
0
 /**
  * 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;
 }