Monday, March 26, 2012

Re: PHPUnit installation problem

where exactly is your `File/Iterator/Autoload.php`?
try to put all the "installed" folders into the global vendors dir:

/root/vendors/PHPUnit/...
/root/vendors/File/...
...
/root/app/

this worked for me since the global vendors path is part of the include path by default


Am Dienstag, 27. März 2012 04:12:58 UTC+2 schrieb resting:
Ok I tried, but the File Iterator is still missing:

This is what I get when I access /myapp/test.php
Fatal error: require_once() [function.require]: Failed opening required 'File/Iterator/Autoload.php' (include_path='/Applications/XAMPP/xamppfiles/htdocs/cakephp2.1.1/app/Vendor/:/Applications/XAMPP/xamppfiles/htdocs/cakephp2.1.1/lib:.:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear:/usr/lib/php/PHPUnit:/usr/bin/pear') in /Applications/XAMPP/xamppfiles/htdocs/cakephp2.1.1/app/Vendor/PHPUnit/Autoload.php on line 45

The folders in /app/Vendor/PHPUnit are:
Extensions
Framework
Runnner
TextUI
Util

Although I do see File Iterator being installed while running the install script:

Downloading File Iterator 1.3.1 .. done.
Extracting ..done.
Adding to Vendors ..done.

Any clues?

On Monday, 26 March 2012 21:37:06 UTC+8, euromark wrote:
Alternatively, you can try to install it via cake shell:
from your app dir

...app>cake Phpunit.Phpunit install


Am Montag, 26. März 2012 09:42:06 UTC+2 schrieb resting:
from: http://book.cakephp.org/2.0/​en/development/testing.html
I followed the steps below:

pear upgrade PEAR pear config-set auto_discover 1 pear install pear.phpunit.de/PHPUnit

After which it shows
$ which phpuni
/usr/bin/phpunit

$ phpunit -v
PHP Warning: require_once(File/Iterator/​Autoload.php): failed to open stream: No such file or directory in /usr/lib/php/PHPUnit/Autoload.​php on line 45
PHP Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.:/usr/lib/php/​PHPUnit:/usr/lib/pear') in /usr/lib/php/PHPUnit/Autoload.​php on line 45

pear list doesn't show that PHPUnit was installed.

What could be the problem?
 

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate