get('/php/result-task'); $response = $this->get("/phpunit/result-test-student/"); //$response = $this->get("/execute-shell-command"); //$response = $this->get('/phpunit/studi-kasus/upload-test-student'); $html = "
ini contoh paragraph
"; $test = str_replace(array("\r\n","\r","\n"," "),"",$html); $result_test = htmlspecialchars($test); //$this->assertEquals('10',$response->content()); $result_content = str_replace(array("\r\n","\r"," "),"", $response->content()); $this->assertStringContainsString($result_test, $result_content); } function testHtml_if(){ $this->assertEquals('10',10); } }