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