Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8225801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:32:16+00:00 2026-06-07T15:32:16+00:00

I am following along with the tutorials in ‘Easy PHP Websites with Zend Framework’

  • 0

I am following along with the tutorials in ‘Easy PHP Websites with Zend Framework’ and wanted to install PHPUnit.

System: Mac OS x Lion, PHP running locally (Not MAMP)

Pear was installed and working fine, I upgraded it to the latest.

Installed PHPUnit using

sudo pear install phpunit/PHPUnit

terminal did some work and installed it without errors

The in my terminal I did

phpunit --version

this returns/does nothing as follows (Username removed)

Machine:~ Username$ phpunit --version
Machine:~ Username$ sudo phpunit --version
Machine:~ Username$ 

Was worried it some how did not install so I check for the PHPUnit files and they do exist under /usr/lib/php/phpunit

Also checked that the phpunit exe exists which it does under /usr/bin

edited .profile as well as .bash_profile to include the /usr/bin path to have

export PATH=/usr/bin:$PATH

then restarted terminal

running

echo $PATH

shows

/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Users/xxxxx/development/frameworks/ZendFramework-1.11.11/bin

php.ini includes is

include_path = ".:/usr/lib/php/pear:/Library/Server/Web/Data/Sites/ZendFramework-1.11.11/library"

Where xxxxx is my username on the Mac

even going into /usr/bin in terminal and using phpunit –version returns nothing

in case its relevant my PEAR config shows

Configuration (channel pear.php.net):
=====================================
...
...
PEAR executables directory     bin_dir          /usr/bin
PEAR documentation directory   doc_dir          /usr/lib/php/doc
PHP extension directory        ext_dir          /usr/lib/php/extensions/.....
PEAR directory                 php_dir          /usr/lib/php
PEAR data directory            data_dir         /usr/lib/php/data
PHP CLI/CGI binary             php_bin          /usr/bin/php
php.ini location               php_ini          <not set>
....
....
PEAR Installer temp directory  temp_dir         /private/tmp/pear/temp
PEAR test directory            test_dir         /usr/lib/php/test
PEAR www files directory       www_dir          /usr/lib/php/htdocs
....

Also added the pear and phpunit directory to my php.ini includes path list.

Am at a loss as to why this does not want to work. Am sure its me and I have done something incorrectly….Any help appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:32:18+00:00Added an answer on June 7, 2026 at 3:32 pm

    Ok, solved this, finally after much reading and fiddling. Issue was with PEAR, not PHPUnit itself.

    Found the issue by following the set up for PEAR onhttp://pear.php.net/manual/en/installation.checking.php

    php.ini change from

    .:/usr/lib/php/pear:/Library/Server/Web/Data/Sites/ZendFramework-1.11.11/library:/usr/lib/php/PHPUnit

    to

    .:/usr/lib/php/pear:/Library/Server/Web/Data/Sites/ZendFramework-1.11.11/library:/usr/lib/php

    solved this issue immediately.

    phpunit –version now works

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been toying with the JanRain OpenID PHP Library, mostly following along with a
I am following along with tutorials on the site, http://openglbook.com/ , and I have
I'm getting started with Play 2.0 by following along with the tutorial. I'm hitting
In an internship I'm following along in a really nice tutorial on making advanced
I am following along with the first video in the iTunes U course, and
I'm following along in my C# textbook and it says that C# assumes that
I am following along with the Rails 3 in Action book, and it is
I was following along with Ryan's RailsCast Episode 339. I had installed rbenv and
I'm using Hibernate 3.3.1 and am following along in modelling this sample table structure
I have an HTML along the following lines: <div class=hiddenClass> // this implies display:none

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.