public function testUrl() { $this->assertSame(QuestionSet::classUrl(), '/question_sets'); }
<h1>Monkey in the Middle Quiz Generator</h1> <img src="images/trythese.png" align="right"/> <?php if (isset($_GET["submitplist"])) { $header = '<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict>'; $footer = "</dict>\n</plist>"; $questionSet = new QuestionSet(); $quiz = new Quiz(); echo '<b>' . $_GET['Title'] . '</b><br>'; $questionSetCount = $_GET['questionSetCount']; for ($j = 1; $j < $questionSetCount; $j++) { $baseName = 'questionSet' . $j; $questionSet = new QuestionSet(); $questionCount = $_GET['questionCount' . $baseName]; for ($i = 1; $i < $questionCount; $i++) { $questionBaseName = 'question' . $baseName . $i; if (isset($_GET[$questionBaseName])) { $question = new Question(); $question->choiceStr = $_GET[$questionBaseName]; if (isset($_GET[$questionBaseName . 'a'])) { $question->c1 = $_GET[$questionBaseName . 'a']; } else { $question->c1 = ""; } if (isset($_GET[$questionBaseName . 'b'])) { $question->c2 = $_GET[$questionBaseName . 'b']; } else { $question->c2 = "";