0
votes

I'm on windows 7 with wamp and I don't know where to put the zend framework, as I know I need to change the path of the include_path but I don't know what should that be to work.

I get this error when I open the test files or anything withing the zend files:

Warning: require_once(PHPUnit/Framework.php)

[function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\zend\tests\TestHelper.php on line 26

Fatal error: require_once() [function.require]: Failed opening

required 'PHPUnit/Framework.php' (include_path='.;C:\php5\pear') in C:\wamp\www\zend\tests\TestHelper.php on line 26

3

3 Answers

1
votes

You can place the zend framework directory anywhere you like, it doesn't matter. Generally I place it in a common folder shared by all my projects.

As long as you add the path to the zend framework lib directory to your include path you are right. Anything outside the lib directory is for extra stuff and should not be included in your application - this seems to be where your problem lies.

2
votes

It's failing to find PHPUnit/Framework.php, so it does not appear to be a Zend Framework issue. The question is: Where you have your PHPUnit files installed?

I see an include path that contains C:\php5\pear. Is the PHPUnit library there?

0
votes

I'm using Zend Server Community Edition it's set include paths and has installed required pear packages by default.