public function testInvalidMethodRaisesException() { try { $this->helper->bogusMethod(); $this->fail('Invalid method should raise exception'); } catch (View\Exception\ExceptionInterface $e) { } }