/** * @expectedException Exception * @expectedExceptionMessage Call to undefined method Bh\Page\HTML::iDontExist() */ public function testUndefinedMethodException() { HTML::iDontExist(); }