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

  • Home
  • SEARCH
  • 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 7772347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:52:08+00:00 2026-06-01T16:52:08+00:00

Having a lot of problems installing phpunit with Yii. I run: $ phpunit unit/dbTest.php

  • 0

Having a lot of problems installing phpunit with Yii. I run:

$ phpunit unit/dbTest.php

But it turns out this error:

PHP Warning: require_once(PHPUnit/Autoload.php): failed to open stream: No such file or directory in /opt/yii-1.1.10.r3566/framework/test/CTestCase.php on line 12

(include_path=’.:/usr/bin:/usr/share/php:/usr/bin/pear:/usr/share/php/Zend/:/opt/php5.3.10/lib/php/PHPUnit’

Some details about my installation:

$ phpunit --version
PHPUnit 3.4.5 by Sebastian Bergmann.

php --version
PHP 5.3.10 (cli) (built: Apr  6 2012 20:06:37) ( rebuilt didn't help :( )

pear list phpunit/phpunit
....
php    /opt/php5.3.10/lib/php/PHPUnit/Autoload.php

According to that info, autoload is installed, and is on the include path.

I’m unsure what else I need to do – can anyone shed a light please?

  • 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-01T16:52:10+00:00Added an answer on June 1, 2026 at 4:52 pm

    I hope this is of some use to someone:

    It seems on ubuntu PEAR is broken for this task and apt-get won’t help either.

    This is how i solved it

    Manually download from http://pear.phpunit.de/

    phpunit/PHPUnit
    

    and

    phpunit/File_Iterator
    PHPUnit_MockObject
    phpunit/PHPUnit_Selenium
    PHP_CodeCoverage
    

    Manually dezip and put correctly in php lib or wherever you want them to go. Put the head of this library on your include path (PHP, PHPlib, PEAR are all at this root level on my setup.)

    Goddam, hope that helps someone i spent about 6 hours getting this to work last nite…

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

Sidebar

Related Questions

I've been having a lot of problems trying to figure out how to use
I've been having a lot of problems with JSEclipse in Ganymede, but I haven't
I'm having a lot of problems with the new hosting, but the more I
I am starting out on Molehill and am having a lot of problems grasping
First time bitnami user here. I'm having some problems after installing this bitnami ami
I am having a lot of problems trying to capture the subscription cancellation. This
I'm having a lot of problems initializing an array of bools. When using the
I've been having a lot of problems with jQuery 1.3.2 on only one of
Lately we been having a lot of problems with our mysql server i have
I know that a lot of people on the Internet have expressed having problems

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.