यहाँ PHPUnit क्या कहते है: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 के साथ विफल रहता है? – Matteo
अभी तक हाँ, मैंने केवल php 5.6 – leyou
के साथ विफल होने को देखा है, मेरे पास अभी तक PHP 5.6 नहीं है। 5.5 और 5.3 के साथ मैं आपकी समस्या को दोहराना नहीं कर सकता। – Matteo