/** * @expectedException \Symfony\Component\OptionsResolver\Exception\InvalidOptionsException */ public function testResolveFailsIfNonExistingOption() { $defaults = array('one' => '1'); $options = array('foo' => 'bar'); Options::resolve($options, $defaults); }