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