public function testNonExisting() { try { $p = new Project(); $p->nonExisting(); } catch (EQMException $e) { $this->assertEquals($e->getMessage(), 'Method or property does not exists'); } }