Наследование: implements Nelmio\Alice\Generator\Resolver\Value\ChainableValueResolverInterface, implements Nelmio\Alice\Generator\ObjectGeneratorAwareInterface, use trait Nelmio\Alice\IsAServiceTrait
Пример #1
0
 /**
  * @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);
 }