/** * @covers \PHP\Manipulator\Action::getOption * @covers \Exception */ public function testGetOptionThrowsExceptionOnNonExistingOption() { $abstractHelper = new ActionStub(); try { $abstractHelper->getOption('foo'); $this->fail('Expected exception not thrown'); } catch (\Exception $e) { $this->assertEquals("Option 'foo' not found", $e->getMessage(), 'Wrong exception message'); } }