Phpunit

I tried to follow the book on Chapter 3

run a command phpunit unit/DbTest.php and i got this error




C:\wamp\www\trackstar\protected\tests>phpunit unit/DbTest.php

'phpunit' is not recognized as an internal or external command,

operable program or batch file.


C:\wamp\www\trackstar\protected\tests>



so i realized, my phpunit is at wamp php folder.

so i do this




Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. All rights reserved.


C:\Windows\system32> cd C:\wamp\bin\php\php5.5.12


C:\wamp\bin\php\php5.5.12>phpunit C:\wamp\www\trackstar\protected\tests\unit\DbT

est.php


Fatal error: Class 'CTestCase' not found in C:\wamp\www\trackstar\protected\test

s\unit\DbTest.php on line 9


Call Stack:

    0.0054     362240   1. {main}() C:\wamp\bin\php\php5.5.12\phpunit:0

    0.0196     837256   2. PHPUnit_TextUI_Command::main() C:\wamp\bin\php\php5.5

.12\phpunit:583

    0.0196     843440   3. PHPUnit_TextUI_Command->run() phar://C:/wamp/bin/php/

php5.5.12/phpunit/phpunit/TextUI/Command.php:132

    0.0233    1202792   4. PHPUnit_Runner_BaseTestRunner->getTest() phar://C:/wa

mp/bin/php/php5.5.12/phpunit/phpunit/TextUI/Command.php:153

    0.0233    1202864   5. PHPUnit_Runner_BaseTestRunner->loadSuiteClass() phar:

//C:/wamp/bin/php/php5.5.12/phpunit/phpunit/Runner/BaseTestRunner.php:105

    0.0238    1229144   6. PHPUnit_Runner_StandardTestSuiteLoader->load() phar:/

/C:/wamp/bin/php/php5.5.12/phpunit/phpunit/Runner/BaseTestRunner.php:162

    0.0242    1268680   7. PHPUnit_Util_Fileloader::checkAndLoad() phar://C:/wam

p/bin/php/php5.5.12/phpunit/phpunit/Runner/StandardTestSuiteLoader.php:78

    0.0247    1268856   8. PHPUnit_Util_Fileloader::load() phar://C:/wamp/bin/ph

p/php5.5.12/phpunit/phpunit/Util/Fileloader.php:77

    0.0248    1272592   9. include_once('C:\wamp\www\trackstar\protected\tests\u

nit\DbTest.php') phar://C:/wamp/bin/php/php5.5.12/phpunit/phpunit/Util/Fileloade

r.php:93




C:\wamp\bin\php\php5.5.12>



Any help it would be great. Thanks