/** * @expectedException \Nelmio\Alice\Throwable\Exception\Generator\Resolver\UnresolvableValueException * @expectedExceptionMessage Could not find a fixture or object ID matching the pattern */ public function testThrowsAnExceptionIfNotMathcingIdFound() { $value = FixtureMatchReferenceValue::createWildcardReference('dummy'); $fixture = new DummyFixture('injected_fixture'); $set = ResolvedFixtureSetFactory::create(); $scope = []; $context = new GenerationContext(); $resolver = new FixtureWildcardReferenceResolver(new FakeValueResolver()); $resolver->resolve($value, $fixture, $set, $scope, $context); }