/** * @expectedException \Nelmio\Alice\Throwable\Exception\Generator\Instantiator\InstantiationException * @expectedExceptionMessage Could not instantiate fixture "dummy". */ public function testThrowsAnExceptionIfCouldNotInstantiateObject() { $fixture = new SimpleFixture('dummy', AbstractDummyWithRequiredParameterInConstructor::class, SpecificationBagFactory::create(new SimpleMethodCall('fake', [10]))); $this->instantiator->instantiate($fixture, ResolvedFixtureSetFactory::create(), new GenerationContext()); }