This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
$this->fail('->setOption() throws an \InvalidArgumentException when the option does not exist in the available options');
}catch(\Exception$e){
$this->assertInstanceOf('\InvalidArgumentException',$e,'->setOption() throws an \InvalidArgumentException when the option does not exist in the available options');
$this->assertContains('Invalid option specified: "foo"',$e->getMessage(),'->setOption() throws an \InvalidArgumentException when the option does not exist in the available options');
}
try{
$style->unsetOption('foo');
$this->fail('->unsetOption() throws an \InvalidArgumentException when the option does not exist in the available options');
}catch(\Exception$e){
$this->assertInstanceOf('\InvalidArgumentException',$e,'->unsetOption() throws an \InvalidArgumentException when the option does not exist in the available options');
$this->assertContains('Invalid option specified: "foo"',$e->getMessage(),'->unsetOption() throws an \InvalidArgumentException when the option does not exist in the available options');