/** * @expectedException \Nelmio\Alice\Throwable\Exception\Generator\Resolver\UnresolvableValueException * @expectedExceptionMessage Could not find a variable "foo". */ public function testThrowsAnExceptionIfTheVariableCannotBeFoundInTheScope() { $value = new VariableValue('foo'); $set = ResolvedFixtureSetFactory::create(); $resolver = new VariableValueResolver(); $resolver->resolve($value, new FakeFixture(), $set, [], new GenerationContext()); }