StrangerInBeijing
Dec 1st, 2009, 03:36 AM
I never needed to bother with PEAR, so that might be where my problem lies.
My setup: Win7, XAMPP (d:/Apps/xampp)
In my php.ini (D:\Apps\xampp\php) : include_path = ".;D:\Apps\xampp\php\PEAR"
Used the command line and:
pear channel-discover pear.phpunit.de
pear install phpunit/PHPUnit
After that I have D:\Apps\xampp\php\PEAR\PHPUnit (with Framework.php in there).
Created a php script starting with "require_once 'PHPUnit/Framework.php';" , however get the following error:
Warning: require_once(PHPUnit/Framework.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in D:\Repository\StackTest.php on line 3
Fatal error" require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'PHPUnit/Framework.php' (include_path='.;D:\Repository') in D:\Repository\StackTest.php on line 3
Any ideas? (for what it matter, I just got working with php scripts in eclipse, and I could run normal scripts without problems)
My setup: Win7, XAMPP (d:/Apps/xampp)
In my php.ini (D:\Apps\xampp\php) : include_path = ".;D:\Apps\xampp\php\PEAR"
Used the command line and:
pear channel-discover pear.phpunit.de
pear install phpunit/PHPUnit
After that I have D:\Apps\xampp\php\PEAR\PHPUnit (with Framework.php in there).
Created a php script starting with "require_once 'PHPUnit/Framework.php';" , however get the following error:
Warning: require_once(PHPUnit/Framework.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in D:\Repository\StackTest.php on line 3
Fatal error" require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'PHPUnit/Framework.php' (include_path='.;D:\Repository') in D:\Repository\StackTest.php on line 3
Any ideas? (for what it matter, I just got working with php scripts in eclipse, and I could run normal scripts without problems)