/** * @expectedException \RuntimeException * @expectedExceptionMessage The exception. */ public function testExceptionalMethodForwarding() { $this->element->exceptionalMethod(); }