This happens in Symfony 1.0.3-PRE.
When I try to run a unit test, it never works, even an empty one ... it fails in the lime.php code, when accessing php CLI.
Test code
include(dirname(__FILE__).'/../bootstrap/unit.php');
//require_once(SF_ROOT_DIR.'/apps/stageselect/lib/configLoader.class.php');
$oTest = new lime_test(1, new lime_output());
$oTest->diag('configLoader()');
$oTest->ok(true === true, 'This works!');
Running
symfony test-unit configLoader
Return
configLoaderTest.....................................................dubious
Test returned status 1
Failed Test Stat Total Fail List of Failed
------------------------------------------------------------------
configLoaderTest 1 0 0
Failed 1/1 test scripts, 0.00% okay. 0/0 subtests failed, 0.00% okay.
Here I get that freaky dubious message :-(
That status return of value 1 comes from lime.php, line 458. passthru() returns 1 after executing the PHP CLI. The PHP docs only mentions UNIX return values, but I am on Windows (XAMPP).
I am guessing my Windows XAMPP PHP CLI works differently from its UNIX sister?
But running
php test/unit/configLoaderTest.php
Works OK:
1..1
# configLoader()
ok 1 - This works!
Help
What's up with those passthru() returns codes ... is there a Windows / UNIX mixup?