【发布时间】:2015-05-06 01:37:24
【问题描述】:
这是 phpunit 所说的:
1) Asgard\Entity\Tests\EntityTest::testToArray
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
'id' => null
'title' => 'Test Title'
'content' => 'Test Content'
'published' => 2015-03-04T11:19:50+0000
'comments' => Array (
0 => Array (
'id' => null
'content' => 'foo'
'published' => 2015-03-04T11:19:50+0000
'another_property' => null
'news' => null
)
1 => Array (
'id' => null
'content' => 'bar'
'published' => 2015-03-04T11:19:50+0000
'another_property' => null
'news' => null
)
2 => Array (
'id' => null
'content' => 'baz'
'published' => 2015-03-04T11:19:50+0000
'another_property' => null
'news' => null
)
)
'another_property' => null
)
https://travis-ci.org/asgardphp/asgard/jobs/53029084
“预期”和“实际”之间没有区别。测试通常会通过,但有时会失败。
【问题讨论】:
-
php 5.6 的测试总是失败?
-
到目前为止是的,我只看到它在 php 5.6 中失败
-
我还没有 php 5.6。对于 5.5 和 5.3,我无法复制您的问题。