Example #1
0
    /**
     * Converts an object to an array containing all of its private, protected
     * and public properties.
     *
     * @param  object $object
     * @return array
     */
    protected function toArray($object)
    {
        $array = parent::toArray($object);

        unset($array['invocationMocker']);

        return $array;
    }
Example #2
0
    /**
     * Converts an object to an array containing all of its private, protected
     * and public properties.
     *
     * @param  object $object
     * @return array
     */
    protected function toArray($object)
    {
        $array = parent::toArray($object);

        unset(
            $array['file'],
            $array['line'],
            $array['trace'],
            $array['string'], // some internal property of Exception
            $array['xdebug_message'] // some internal property added by XDebug
        );

        return $array;
    }
 /**
  * Converts an object to an array containing all of its private, protected
  * and public properties.
  *
  * @param  object $object
  * @return array
  */
 protected function toArray($object)
 {
     $array = parent::toArray($object);
     unset($array['file'], $array['line'], $array['trace'], $array['string'], $array['xdebug_message']);
     return $array;
 }