Exemplo n.º 1
0
 /**
  * (non-PHPdoc)
  * 
  * @see CIUnit_Framework_Comparator_Object::toArray()
  */
 protected function toArray($object)
 {
     // Remove some of the contetn of the exception that would be different
     // if not comparing two identical exceptions
     $array = CIUnit_Util_Type::toArray($object);
     unset($array['file'], $array['line'], $array['trace'], $array['string'], $array['xdebug_message']);
     return $array;
 }
Exemplo n.º 2
0
 /**
  * Converts an object in to an array
  * 
  * @param object $object            
  * @return array
  */
 protected function toArray($object)
 {
     return CIUnit_Util_Type::toArray($object);
 }