Esempio n. 1
0
 public function test_cleanQuestionText_shouldReturnCleanedText()
 {
     // Arrange
     require_once './Modules/TestQuestionPool/classes/class.assClozeTest.php';
     $instance = new assClozeTest();
     $in_text = 'Ein <gap>Männlein</gap> steht <gap id="Walter">im</gap> <b>Walde</b> ganz <gap 2>still</gap> und [gap]stumm[/gap]<hr />';
     $expected = 'Ein [gap]Männlein[/gap] steht [gap]im[/gap] <b>Walde</b> ganz [gap]still[/gap] und [gap]stumm[/gap]<hr />';
     $actual = $instance->cleanQuestiontext($in_text);
     $this->assertEquals($expected, $actual);
 }