PHPUnit runs regular tests without trouble, but it mistakenly reports this basic PHPT example as failing when it should pass:
--TEST--
strtr() function - basic test for strstr()
--FILE--
<?php
/* Do not change this test it is a README.TESTING example. */
$trans = array("hello"=>"hi", "hi"=>"hello", "a"=>"A", "world"=>"planet");
var_dump(strtr("# hi all, I said hello world! #", $trans));
?>
--EXPECT--
string(32) "# hello All, I sAid hi planet! #"
Running this with phpunit basic-format.phpt
gives
There was 1 failure:
1) basic-format.php
--- Expeccted
+++ Actual
@@ @@
- # hello All, I sAid hi planet! #
+
I'm using Windows / PHP 5.4.6. The test works fine with PHP 5.4.0, but I'm unable to determine any discrepancy other than php version.