better structure filename error output
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 24 Feb 2012 16:54:48 +0000 (16:54 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 24 Feb 2012 16:54:48 +0000 (16:54 +0000)
commitfc324a18d261b0347023a8c6658aa66ded70e755
tree3464fe5f5716ad932e0db5c62bc438ab3c0a5fb8
parentf5b45904e119a7a296011d45da54f197bfcdd13f
better structure filename error output

When dumping an array, PHPUnit limit the number of characters shown. That would
just hide the relevant part of the path:

1) StructureTest::testUnitTestFileNamesEndWithTest
[...]
 Array (
+    0 => '/some/path/tests/phpunit/incl...ge.php'
+    1 => '/some/path/tests/phpunit/incl...ki.php'
 )

By stripping the common path ( /some/path/tests/phpunit ), we end up with a
more useful output:

 Array (
+    0 => 'includes/RecentChange.php'
+    1 => 'includes/Wiki.php'
 )
tests/phpunit/StructureTest.php