Zend Framework (PHPUnit) Tests won'r run (phpunit: command not found / Class 'PHPUnit_Framework_TestCase' not found) -


i installed phpunit book:

sudo pear channel-discover pear.phpunit.de sudo pear install phpunit/phpunit 

the include path added in /etc/php5/cli/php.ini

include_path = ".:/usr/share/php"  $ ls /usr/share/php/phpunit/ extensions  framework 

but now, if want run tests zend framework

user@server:/var/www/page/tests$ ./runtests.sh  + phpunit --verbose alltests ./runtests.sh: line 72: phpunit: command not found user@server:/var/www/page/tests$ php alltests.php  php fatal error:  class 'phpunit_framework_testcase' not found in /var/www/page/tests/zend/acl/acltest.php on line 37 

of course phpunit: command not foundwhen try follow instructions in phpunit manual http://www.phpunit.de/manual/3.6/en/writing-tests-for-phpunit.html outside of zend framework context.

i'm getting feeling i'm missing essential here ...

solved

looks there problem pear channels, after adding other 2 again, worked:

pear channel-discover components.ez.no pear channel-discover pear.symfony-project.com 

since problem solved in comments make real answer sum up.

the reason problem missing phpunit command. reinstallation of phpunit , setting variable path folder containing phpunit command (export path=$path:/path/to/folder/with/phpunit) solved issue.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -