Hi,
My local system is wamp (win 8.1) with Yii 1.1.14.
I had installed phpunit by pear.(CMD: pear install phpunit/PHPUnit)
But the test failed.
Could someone give me some hint? Many thanks.
Following is the error message.
C:\wamp\www\trackstar\protected\tests>phpunit --version
PHPUnit 4.0.14 by Sebastian Bergmann.
C:\wamp\www\trackstar\protected\tests>phpunit unit/DbTest.php
PHP Warning: require_once(PHPUnit/Extensions/SeleniumTestCase.php): failed to o
pen stream: No such file or directory in C:\wamp\www\yii\framework\test\CWebTest
Case.php on line 12
redguy
(Maciej Lizewski)
2
the message is self explanatory - you need phpunit Selenium extension:
pear install phpunit/PHPUnit_Selenium
Thanks for the replies.
I had then installed the package.But another issue happened.
Please give me some hints, many thanks.
C:\wamp\www\trackstar\protected\tests>pear install phpunit/PHPUnit_Selenium
downloading PHPUnit_Selenium-1.3.3.tgz …
Starting to download PHPUnit_Selenium-1.3.3.tgz (44,772 bytes)
…done: 44,772 bytes
install ok: channel://pear.phpunit.de/PHPUnit_Selenium-1.3.3
C:\wamp\www\trackstar\protected\tests>phpunit unit/DbTest.php
PHP Warning: require_once(PHPUnit/Runner/Version.php): failed to open stream: N
o such file or directory in C:\wamp\www\yii\framework\test\CTestCase.php on line
11
redguy
(Maciej Lizewski)
4
ah yes… this is because of phpunit version 4… the only solution I know is to downgrade to 3.x.
few days ago I did pear upgrade and had to revert it.
Thanks,it is the best answer. It works. Thanks again.