Index: trunk/phase3/tests/phpunit/includes/parser/PreprocessorTest.php |
— | — | @@ -129,9 +129,7 @@ |
130 | 130 | |
131 | 131 | $expectedFilename = "$folder/$filename.expected"; |
132 | 132 | if ( file_exists( $expectedFilename ) ) { |
133 | | - $expectedXml = file_get_contents( $expectedFilename ); |
134 | | - |
135 | | - $this->assertEquals( $expectedXml, $output ); |
| 133 | + $this->assertStringEqualsFile( $expectedFilename, $output ); |
136 | 134 | } else { |
137 | 135 | $tempFilename = tempnam( $folder, "$filename." ); |
138 | 136 | file_put_contents( $tempFilename, $output ); |