/** * @expectedException \Nelmio\Alice\Throwable\Exception\FixtureNotFoundException * @expectedExceptionMessage Could not find the fixture "dummy". */ public function testIfTheReferenceRefersToANonExistentFixtureAndNoInstanceIsAvailableThenThrowsAnException() { $value = new FixtureReferenceValue('dummy'); $fixture = new FakeFixture(); $set = ResolvedFixtureSetFactory::create(); $scope = []; $context = new GenerationContext(); $resolver = new FixtureReferenceResolver(new FakeObjectGenerator()); $resolver->resolve($value, $fixture, $set, $scope, $context); }