Index: trunk/phase3/maintenance/parserTests.inc |
— | — | @@ -237,6 +237,8 @@ |
238 | 238 | $titleText = 'Parser test'; |
239 | 239 | } |
240 | 240 | |
| 241 | + $noxml = (bool)preg_match( '~\\b noxml \\b~x', $opts ); |
| 242 | + |
241 | 243 | $parser =& new Parser(); |
242 | 244 | wfRunHooks( 'ParserTestParser', array( &$parser ) ); |
243 | 245 | $title =& Title::makeTitle( NS_MAIN, $titleText ); |
— | — | @@ -260,7 +262,7 @@ |
261 | 263 | |
262 | 264 | $this->teardownGlobals(); |
263 | 265 | |
264 | | - if( $result === $out && $this->wellFormed( $out ) ) { |
| 266 | + if( $result === $out && ( $noxml === true || $this->wellFormed( $out ) ) ) { |
265 | 267 | return $this->showSuccess( $desc ); |
266 | 268 | } else { |
267 | 269 | return $this->showFailure( $desc, $result, $out ); |