Jump to content


Photo

error on unit test


  • Please log in to reply
2 replies to this topic

#1 rakesh007

rakesh007

    Member

  • Members
  • PipPip
  • 17 posts

Posted 08 December 2011 - 07:04 AM

Run unit test
  • Go to C:\inetpub\wwwroot\zurmo\app\protected\tests\unit from the command line
  • Run phpunit –verbose TestSuite.php All (remember two dashes before the verbose)
this give me PHPunit not recognize error.

already complete the step 8
PhpUnit PhpUnit is based on PEAR package, so it is important to update PEAR package first. Assuming xampp is installed to C:\xampp- Open a command prompt and go to C:\xampp\php
  • Type “pear upgrade pear”
  • Type “pear update-channels” (updates channel definitions)
  • Type “pear upgrade” (upgrades all existing packages and pear)
  • Type “pear channel-discover components.ez.no” (this is needed for PHPUnit)
  • Type “pear channel-discover pear.symfony-project.com” (also needed by PHPUnit)
  • Type “pear channel-discover pear.phpunit.de” (This IS phpunit)
  • Type “pear install –alldeps phpunit/PHPUnit” (installs PHPUnit and all dependencies)
  • Type “pear upgrade phpunit/PHPUnit” (upgrade phpunit to recent version)
  • Restart your computer! .
see attache screenshot

#2 ferginarg

ferginarg

    Moderator

  • Members
  • Pip
  • 9 posts

Posted 08 December 2011 - 04:39 PM

Hi, there was a symbol error in the wiki that has been fixed for the line

Type “pear install –alldeps phpunit/PHPUnit”

Please make sure you use --alldeps with a double dash.

Hopefully that helps

Regards
Justin

#3 Jason

Jason

    Administrator

  • Administrators
  • 716 posts
  • LocationChicago

Posted 08 December 2011 - 05:43 PM

Maybe you are missing phpunit from your windows PATH variable. That would explain why you cant just run phpunit from the command line in any folder directory

Jason Green
Zurmo Team
Need support? Upgrade now





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users