public testConstructor ( mixed $options, array $expected ) | ||
$options | mixed | |
$expected | array |
public function testConstructor($options, $expected)
{
$mock = $this->getObject($options);
$reflectedProperty = new ReflectionProperty(get_class($mock), 'options');
$reflectedProperty->setAccessible(true);
$this->assertEquals($expected, $reflectedProperty->getValue($mock));
}