Ah..that's weird, it works in the global vendors dir.
The File Iterator is installed if I specify the global vendors dir.
So its a include_path problem?

On Tuesday, 27 March 2012 11:16:15 UTC+8, euromark wrote:
>
> 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<http://php.net/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:
>>> https://github.com/dereuromark/PHPUnit-Cake2 
>>> 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<http://book.cakephp.org/2.0/en/development/testing.html>
>>>> I followed the steps below:
>>>>
>>>> pear upgrade PEARpear config-set auto_discover 1pear 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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to