Question

I installed PHPunit via the commandline and added it to my path variables.
I then tried to see if it will run, but I got a weird error. CMD screen

Must be something in some file that I didn't configure correctly, but there are over 800 lines in all the PHPUnit folder that reference to that folder, so I'm at a loss as to which one it is. Most will be for PHP scripts instead of the commandline, but I'm not sure where to look.

This is the variable. This file actually exists, just phpunit and no extension. variable path

The contents(left out the comments):

#!c:\wamp\bin\php\php5.3.1\php.exe
<?php
//whole lot of comments...

if (strpos('c:\wamp\bin\php\php5.3.1\php.exe', '@php_bin') === 0) {
    set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
}

require_once 'PEAR/PHPUnit/Util/Filter.php';

PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');

require 'PEAR/PHPUnit/TextUI/Command.php';

define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');

PHPUnit_TextUI_Command::main();
?>

The relative paths are correct, since the phpunit file is located in the php-map and PEAR is the submap containing all installed PEAR packages.

Was it helpful?

Solution

c:\wamp\bin\php\php5.3.1\pear\phpunit or c:\wamp\bin\php\php5.3.1\phpunit?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top