public function testcommit() { $aod_index = new AOD_Index(); $aod_index->id = 1; $aod_index->location = 'modules/AOD_Index/Index/Index'; //execute the method and test if it works and does not throws an exception. try { $aod_index->commit(); $this->assertTrue(true); } catch (Exception $e) { $this->fail(); } }