NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

install PHPUnit

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
NewNet



Joined: 24 Aug 2009
Posts: 74

PostPosted: Mon Jan 10, 2011 5:09 am    Post subject: install PHPUnit Reply with quote

Xampp1.7.#3 and NetBean 6.9 and I following the tutorials on
http://netbeans.org/kb/docs/php/phpunit.html#installing-phpunit , I could see the PHP on my Tool-Option, but I can't find PEAR\PHPUnit!!! Mad
Back to top
schkovich



Joined: 17 Mar 2010
Posts: 487
Location: Swieqi, Malta

PostPosted: Mon Jan 17, 2011 11:45 am    Post subject: Re: install PHPUnit Reply with quote

NewNet wrote:
Xampp1.7.#3 and NetBean 6.9 and I following the tutorials on
http://netbeans.org/kb/docs/php/phpunit.html#installing-phpunit , I could see the PHP on my Tool-Option, but I can't find PEAR\PHPUnit!!! Mad

I am not William (Bill) H. Gates products user, but the tutorial states:
Quote:
If the script is not there, browse for it.

Did you browse for phpunit.bat and did you install PEAR?
Back to top
kevcoder



Joined: 19 Jan 2011
Posts: 2

PostPosted: Wed Jan 19, 2011 12:27 pm    Post subject: Re: install PHPUnit Reply with quote

NewNet wrote:
Xampp1.7.#3 and NetBean 6.9 and I following the tutorials on
http://netbeans.org/kb/docs/php/phpunit.html#installing-phpunit , I could see the PHP on my Tool-Option, but I can't find PEAR\PHPUnit!!! Mad


new XAMPP user as well. Very confusing. Its not really a product so much as an environment pre-configured for development. Many of the tools are already outdated (e.g: php and pear). But its free!

first you'll have to update PEAR: from XAMPP shell enter
Code:
# pear channel-update pear.php.net

Code:
# pear upgrade PEAR
[/code]

now you can install PHPUnit (which is apparently a number of different programs/packages or has a number of dependencies... funky names/naming seem to be a *nix thing)
Code:
pear channel-discover pear.phpunit.de

Code:
pear channel-discover components.ez.no

Code:
pear channel-discover pear.symfony-project.com

Code:
pear install phpunit/PHPUnit


after all this I find C:\xampp\php\phpunit.bat... it took me days to get to this point. I'll assume you've got xdebug installed Wink

refs:
http://www.phpunit.de/manual/current/en/installation.html
http://www.apachefriends.org/f/viewforum.php?f=16
google Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo