This is my workaround, and yes it is not super-clean;)
I edited my phpunit file, remember to replace it with your own paths:
<?php
while (substr(getcwd(), -3) != "Project_Folder") chdir('../');
if (in_array('--version', $argv)) {
echo 'PHPUnit 3.6.0 by Sebastian Bergmann.';
return;
}
define('PHPUnit_MAIN_METHOD','PHPUnit_TextUI_Command::main');
$paths = scandir('./var/lib/phpunit');
$includes = array();
foreach($paths as $path){
if (!preg_match('/^\./', $path)){
$includes[] = './var/lib/phpunit/' . $path;
}
}
set_include_path(implode(PATH_SEPARATOR,$includes).PATH_SEPARATOR.get_include_path());
require 'PHPUnit/Autoload.php';
PHPUnit_TextUI_Command::main();
source
share