/** * @expectedException \Nelmio\Alice\Throwable\Exception\Generator\Instantiator\InstantiatorNotFoundException * @expectedExceptionMessage No suitable instantiator found for the fixture "dummy". */ public function testThrowExceptionIfNoSuitableParserIsFound() { $fixture = new DummyFixture('dummy'); $set = ResolvedFixtureSetFactory::create(); $registry = new InstantiatorRegistry([]); $registry->instantiate($fixture, $set, new GenerationContext()); }