Problem Installing Phpunit

Im having a head banging problem installing PHPUnit

on my machine

Windows 8 - 64 bit

I’ve tried all the tutorials made available by google yet still

I got the same error.

Here is my error

Warning: include(PHPUnit_Extensions_Story_TestCase.php): failed to open stream: No such file or directory in C:\wamp\www\yii\framework\YiiBase.php on line 427

And THese is my installed pear modules

INSTALLED PACKAGES, CHANNEL __URI:

==================================

(no packages installed)

INSTALLED PACKAGES, CHANNEL COMPONENTS.EZ.NO:

=============================================

PACKAGE VERSION STATE

Base 1.8 stable

ConsoleTools 1.6.1 stable

INSTALLED PACKAGES, CHANNEL DOC.PHP.NET:

========================================

(no packages installed)

INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:

=========================================

PACKAGE VERSION STATE

Archive_Tar 1.3.13 stable

Auth_SASL 1.0.6 stable

Console_Getopt 1.3.1 stable

DB 1.7.14 stable

Image_GraphViz 1.3.0 stable

Log 1.12.7 stable

MDB2 2.4.1 stable

Mail 1.2.0 stable

Net_SMTP 1.6.2 stable

Net_Socket 1.0.14 stable

PEAR 1.9.5 stable

Structures_Graph 1.0.4 stable

XML_Util 1.2.3 stable

INSTALLED PACKAGES, CHANNEL PEAR.PHPUNIT.DE:

============================================

PACKAGE VERSION STATE

DbUnit 1.3.0 stable

File_Iterator 1.3.4 stable

PHPUnit 4.0.17 stable

PHPUnit_MockObject 1.2.3 stable

PHPUnit_Selenium 1.3.3 stable

PHPUnit_SkeletonGenerator 1.2.1 stable

PHPUnit_Story 1.0.2 stable

PHP_CodeCoverage 1.2.15 stable

PHP_Invoker 1.1.3 stable

PHP_Timer 1.0.5 stable

PHP_TokenStream 1.2.1 stable

Text_Template 1.2.0 stable

INSTALLED PACKAGES, CHANNEL PEAR.SYMFONY-PROJECT.COM:

=====================================================

(no packages installed)

INSTALLED PACKAGES, CHANNEL PEAR.SYMFONY.COM:

=============================================

PACKAGE VERSION STATE

Yaml 2.4.2 stable

INSTALLED PACKAGES, CHANNEL PECL.PHP.NET:

=========================================

(no packages installed)

HERE IS MY FULL ERROR STACk

http://pastebin.com/bzpZXfff

I encountered this problem. It’s because PHPUnit has been installed using the phar archive.

The issue I reported here has some information that should help you.

Many thanks man!

turns out .

Yii::$enableIncludePath = false;

the magic code

IT WORKS NOW!