propelorm/Propel2 — Issue #73: Regression: `ArrayCollectionTest::testToArray` fails 
Author: fzaninotto
Created: 2011-11-25 20:33:50+00:00
State: open

Regression was introduced by commit bec8a587a9ec5bc0d2d96e35c729a2adee44187a (thanks, git bisect).

```
$ phpunit tests/Propel/Tests/Runtime/Collection/ArrayCollectionTest.php
PHPUnit 3.5.14 by Sebastian Bergmann.

......F..

Time: 0 seconds, Memory: 25.25Mb

There was 1 failure:

1) Propel\Tests\Runtime\Collection\ArrayCollectionTest::testToArray
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array
(
[AuthorId] => 29
[ISBN] => 043935806X
[Id] => 27
- [Price] => 10.99
+ [Price] => 10.989999771118
[PublisherId] => 28
[Title] => Harry Potter and the Order of the Phoenix
)

/path/to/Propel/Tests/Runtime/Collection/ArrayCollectionTest.php:150

FAILURES!
Tests: 9, Assertions: 20, Failures: 1.
```

Note that some systems don't have the bug.