protected createInstance ( Nelmio\Alice\FixtureInterface $fixture ) | ||
$fixture | Nelmio\Alice\FixtureInterface |
protected function createInstance(FixtureInterface $fixture)
{
try {
return (new \ReflectionClass($fixture->getClassName()))->newInstanceWithoutConstructor();
} catch (\ReflectionException $exception) {
throw InstantiationExceptionFactory::create($fixture, 0, $exception);
}
}