Esempio n. 1
0
 /**
  * Gets all of the generic assignments filtered by the fourth character in
  *   tG_AssignmentName.
  */
 public function testgetAllAssignmentNamesToJSON()
 {
     $logFile = fopen("/var/www/jimfuqua/tutor/logs/testgetAllAssignmentNamesToJSON.log", "w+");
     $classInstance = new tutor\src\classes\GenericAClass();
     $json_list_of_GenericAssignments = $classInstance->getAllAssignmentNamesToJSON();
     $v = var_export($json_list_of_GenericAssignments, true);
     fwrite($logFile, __LINE__ . ' $json_list_of_GenericAssignments = ' . $v . "\n \n");
     $msg1 = json_decode($json_list_of_GenericAssignments);
     fwrite($logFile, __LINE__ . json_last_error_msg() . " \n\n");
     $msg2 = json_last_error_msg();
     $this->assertTrue($msg2 === "No error");
 }