public function testexecute() { $SugarController = new SugarController(); //execute the method and check if it works and doesn't throws an exception try { $SugarController->execute(); } catch (Exception $e) { $this->fail(); } $this->assertTrue(true); }