public function testpreProcess() { $SugarApplication = new SugarApplication(); $SugarApplication->controller = new SugarController(); //execute the method and test if it works and does not throws an exception. try { $SugarApplication->preProcess(); } catch (Exception $e) { $this->fail(); } $this->assertTrue(true); }