Index: trunk/phase3/tests/phpunit/includes/parser/NewParserTest.php |
— | — | @@ -504,12 +504,8 @@ |
505 | 505 | $parser->parse( $input, $title, $opts ); |
506 | 506 | $this->assertTrue( true, "Test $id, fuzz seed {$this->fuzzSeed}" ); |
507 | 507 | } catch ( Exception $exception ) { |
| 508 | + $input_dump = sprintf( "string(%d) \"%s\"\n", strlen( $input ), $input ); |
508 | 509 | |
509 | | - ob_start(); |
510 | | - var_dump( $input ); |
511 | | - $input_dump = ob_get_contents(); |
512 | | - ob_end_clean(); |
513 | | - |
514 | 510 | $this->assertTrue( false, "Test $id, fuzz seed {$this->fuzzSeed}. \n\nInput: $input_dump\n\nError: {$exception->getMessage()}\n\nBacktrace: {$exception->getTraceAsString()}" ); |
515 | 511 | } |
516 | 512 | |
Index: trunk/phase3/tests/parser/parserTest.inc |
— | — | @@ -249,8 +249,7 @@ |
250 | 250 | if ( $fail ) { |
251 | 251 | echo "Test failed with seed {$this->fuzzSeed}\n"; |
252 | 252 | echo "Input:\n"; |
253 | | - var_dump( $input ); |
254 | | - echo "\n\n"; |
| 253 | + printf( "string(%d) \"%s\"\n\n", strlen( $input ), $input ); |
255 | 254 | echo "$exception\n"; |
256 | 255 | } else { |
257 | 256 | $numSuccess++; |