My phpunit install doesn't seem to be working. Its missing lots of files in the php/pear/phpunit folder so when i test a class it says missing this, missing that. I used the install tutorial online at phpunit.de website or something. Is my version of PHP not the right one or something?? Any help would be greatly appreciated! thnx
-
What exactly does it say is missing? Are you certain you have your php.ini pointing to the correct directory?
-
This is the error:
Warning: require_once(PHPUnit/Framework.php) [function.require-once]: failed to open stream: No such file or directory in C:\www\FirstNameTest.php on line 5
Fatal error: require_once() [function.require]: Failed opening required 'PHPUnit/Framework.php' (include_path='.;C:\php\pear;c:\php\includes;../src/') in C:\www\FirstNameTest.php on line 5
but i got a friend to send me his PHPUnit folder and it then gives me a new error. -
Try right clicking on your C:/PHP folder and making sure the READ-ONLY checkbox is unchecked. Also make sure your PHPUnit folder is spelt exactly like that (case sensitive).
And what is the new error you get? -
How do you test in the command prompt?? i think i know how but i get this error:
c:\php\phpunit FirstNameTest.php is not recognized as an internal or external command, operable program or batch file. -
You cannot test a PHP file in the command prompt. You can only test it in the browser. You could try a different browser, although I doubt that would make a difference. Are you sure you absolutely certain you are supposed to have an error? Perhaps you missed out a bit of code that echoes the error message in your PHP?
PHPUnit install not working. HELP!
Discussion in 'Windows OS and Software' started by smalss, May 14, 2007.