PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, August 30, 2022

[FIXED] How can I get a phpunit.bat after install phpunit via PEAR?

 August 30, 2022     netbeans, pear, php, phpunit     No comments   

Issue

I need a phpunit.bat to configure my NetBeans IDE.

I'm using wamp, and I just install phpunit via pear using these instructions:

Before start using PEAR, Update by downloading last go-pear from http://pear.php.net/go-pear.phar and save it into: C:\wamp\bin\php\php5.3.3\PEAR

Then:

cd C:\wamp\bin\php\php5.3.0>
php -d phar.require_hash=0 PEAR/go-pear.phar
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear install phpunit/PHPUnit

After do that I can't find any phpunit.bat or phpunit.php

How can I get a phpunit.bat (or any CLI) after install phpunit via PEAR?


Solution

Type:

pear config-show

look for the PEAR executables directory

Your phpunit.bat will be there.

If it isn't:

pear install --alldeps --force phpunit/phpunit

and look again.



Answered By - edorian
Answer Checked By - David Marino (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing