File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ public function Status400TimeGateErrorResponseCommonTests(
3535 $ uagent = "Memento-Mediawiki-Plugin/Test " ;
3636
3737 $ curlCmd = "curl -v -s -A ' $ uagent' -b ' $ sessionCookieString' -k -i -H 'Accept-Datetime: bad-input' --url ' $ URIG ' " ;
38+ #echo "cmd: [$curlCmd]\n";
3839 $ response = `$ curlCmd 2> $ debugfile | tee " $ outputfile" `;
3940
4041 $ statusline = extractStatusLineFromResponse ( $ response );
@@ -59,6 +60,9 @@ public function Status400TimeGateErrorResponseCommonTests(
5960
6061 # To ensure that the error message actually exists in the output
6162 $ expected = acquireFormattedI18NString ( 'en ' , 'timegate-400-date ' );
63+
64+ # TODO: this is a workaround, find a better solution
65+ $ expected = str_replace ("<br /> " , "<br/> " , $ expected );
6266 $ this ->assertStringMatchesFormat ( "%A " . $ expected . "%A " , $ entity );
6367 }
6468
@@ -117,6 +121,8 @@ public function Status400TimeMapErrorResponseCommonTests(
117121
118122 # To ensure that the error message actually exists in the output
119123 $ expected = acquireFormattedI18NString ( 'en ' , 'timemap-404-title ' );
124+
125+
120126 $ this ->assertStringMatchesFormat ( "%A " . $ expected . "%A " , $ entity );
121127 }
122128
You can’t perform that action at this time.
0 commit comments