sebastianbergmann/phpunit — Issue #447: PHPUnit output is incorrect in array comparison
Author: jeansebastienh
Created: 2011-12-22 16:24:55+00:00
State: open

--FILE--
1
'key2' => 2
);
$value = array(
'key' => '1'
);
$this->assertEquals()
}
}
--EXPECT--
PHPUnit 3.6.4 by Sebastian Bergmann.

F

Time: 0 seconds, Memory: 2.75Mb

There was 1 failure:

1) OutputTest::test
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 'key2' => 2
)

-OUTPUT-
PHPUnit 3.6.4 by Sebastian Bergmann.

F

Time: 0 seconds, Memory: 2.75Mb

There was 1 failure:

1) OutputTest::test
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 'key' => 1
- 'key2' => 2
+ 'key' => '1'
)

It seems that the output generator use strict type comparison.