Example #1
0
 /**
  * @dataProvider getOptionWithFailureDataProvider
  */
 public function testGetOptionWithFailure(array $options, $name)
 {
     $this->setExpectedException('QATools\\QATools\\PageObject\\Exception\\ConfigException', 'Option "' . $name . '" doesn\'t exist in configuration', ConfigException::TYPE_NOT_FOUND);
     $config = new Config($options);
     $config->getOption($name);
 }