$defaults =
$reflection->
getDefaultProperties();
// The storage and user should remain.
unset( $defaults['storage'
],
$defaults['user'
],
$defaults['request'
],
$defaults['routeProvider'
],
$defaults['viewsData'
] );
foreach ($defaults as $property =>
$default) { $this->
assertSame($this->
getProtectedProperty($view,
$property),
$default);
} } /**
* Returns a protected property from a class instance.
*
* @param object $instance
* The class instance to return the property from.
* @param string $property
* The name of the property to return.
*
* @return mixed
* The instance property value.
*/