开发者

PHPunit command line variable on windows giving trouble

开发者 https://www.devze.com 2022-12-13 15:11 出处:网络
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.

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.

PHPunit command line variable on windows giving trouble

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.

PHPunit command line variable on windows giving trouble

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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消