protected function MockObjectComparator::toArray in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/sebastian/comparator/src/MockObjectComparator.php \SebastianBergmann\Comparator\MockObjectComparator::toArray()
Converts an object to an array containing all of its private, protected and public properties.
Parameters
object $object:
Return value
array
Overrides ObjectComparator::toArray
File
- vendor/
sebastian/ comparator/ src/ MockObjectComparator.php, line 37
Class
- MockObjectComparator
- Compares PHPUnit_Framework_MockObject_MockObject instances for equality.
Namespace
SebastianBergmann\ComparatorCode
protected function toArray($object) {
$array = parent::toArray($object);
unset($array['__phpunit_invocationMocker']);
return $array;
}