public static partialMock ( mixed $types = [], |
||
$types | mixed | The types to mock. |
$arguments | The constructor arguments, or null to bypass the constructor. | |
Résultat | Eloquent\Phony\Mock\Handle\InstanceHandle | A handle around the new mock. |
public static function partialMock($types = array(), $arguments = array())
{
$driver = static::driver();
return $driver->handleFactory->instanceHandle($driver->mockBuilderFactory->create($types)->partialWith($arguments));
}