/** * @expectedException \Exception */ public function test_call_exception() { /** === Test Data === */ /** === Mocks === */ /** === Test itself === */ $obj = new DataObject(); $obj->callUnknownMethod(); }