这很烦人:
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
+ 0 => 'Argument $name does match typ...string'
)
如何获得完整的差异?
在不带xdebug 的情况下使用phpunit 5.0.8和PHP 5.6.4
由于显而易见的原因,您不能在CLI中使用它。但是,在一些高级IDE(例如PHPStorm)中使用PHPUnit可以为您提供预期和实际结果的并排比较。