sebastianbergmann/phpunit — Issue #413: .phpt test failures display double diffs
Author: joncave
Created: 2011-11-17 15:09:52+00:00
State: open

When a .phpt test is run through phpunit and fails it displays Expected/Actual difference twice.

Example test.phpt:

```
--TEST--
var_dump boolean
--FILE--
toString();

if ($e instanceof PHPUnit_Framework_ComparisonFailure) {
$buffer = trim($buffer . "\n" . $e->getDiff());
}
```

PHPUnit_Framework_ComparisonFailure already includes the output from getDiff() in toString() so it is doubled up.

Related commits 452f50a86c9c96f1920945b875b756c184080b21 and 7b37221b785dd5aeda8794e8ffdcbfd8cf3aad7b.