preinheimer@debian:/var/www/committee/zf/tests$ ./runtests.sh ++ phpunit --verbose AllTests ./runtests.sh: line 72: phpunit: command not found Crap, need PHP unit, okay. I think I'm supposed to get that from pear. preinheimer@debian:/var/www/committee/zf/tests$ ls -als total 64 4 drwxr-xr-x 4 preinheimer preinheimer 4096 2011-09-15 23:28 . 4 drwxr-xr-x 11 preinheimer preinheimer 4096 2011-09-15 23:28 .. 4 -rw-r--r-- 1 preinheimer preinheimer 2836 2011-09-15 23:28 AllTests.php 4 -rw-r--r-- 1 preinheimer preinheimer 373 2011-09-15 23:28 phpunit.xml 4 drwxr-xr-x 3 preinheimer preinheimer 4096 2011-09-15 23:28 resources 4 -rwxr-xr-x 1 preinheimer preinheimer 2272 2011-09-15 23:28 runtests.sh 32 -rw-r--r-- 1 preinheimer preinheimer 32331 2011-09-15 23:28 TestConfiguration.php.dist 4 -rw-r--r-- 1 preinheimer preinheimer 2654 2011-09-15 23:28 TestHelper.php 4 drwxr-xr-x 65 preinheimer preinheimer 4096 2011-09-15 23:28 Zend preinheimer@debian:/var/www/committee/zf/tests$ pear install phpunit WARNING: "pear/PHPUnit" is deprecated in favor of "channel://pear.phpunit.de/PHPUnit" WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update Cannot install, php_dir for channel "pear.php.net" is not writeable by the current user preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install phpunit [sudo] password for preinheimer: WARNING: "pear/PHPUnit" is deprecated in favor of "channel://pear.phpunit.de/PHPUnit" WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update Did not download dependencies: pear/PHP_Compat, use --alldeps or --onlyreqdeps to download automatically pear/PHPUnit can optionally use package "pear/PHP_Compat" downloading PHPUnit-1.3.2.tar ... Starting to download PHPUnit-1.3.2.tar (Unknown size) ..............................done: 139,264 bytes install ok: channel://pear.php.net/PHPUnit-1.3.2 preinheimer@debian:/var/www/committee/zf/tests$ ./runtests.sh ++ phpunit --verbose AllTests ./runtests.sh: line 72: phpunit: command not found So, phpunit installed, but it's not the good one? it also doesn't appear to have worked. I'll fix that channel thing then try again. preinheimer@debian:/var/www/committee/zf/tests$ pear channel-update pear.php.net channel-add: temp_dir is not writable: "/tmp/pear/temp" - You can change this location with "pear config-set temp_dir" preinheimer@debian:/var/www/committee/zf/tests$ sudo pear channel-update pear.php.net Updating channel "pear.php.net" Update of Channel "pear.php.net" succeeded preinheimer@debian:/var/www/committee/zf/tests$ pear install phpunit pear/phpunit is already installed and is the same as the released version 1.3.2 install failed No Dice. preinheimer@debian:/var/www/committee/zf/tests$ ./runtests.sh ++ phpunit --verbose AllTests ./runtests.sh: line 72: phpunit: command not found preinheimer@debian:/var/www/committee/zf/tests$ phpunit -bash: phpunit: command not found Is it somewhere else on my system? preinheimer@debian:/var/www/committee/zf/tests$ locate phpunit preinheimer@debian:/var/www/committee/zf/tests$ updatedb updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db' preinheimer@debian:/var/www/committee/zf/tests$ sudo updatedb preinheimer@debian:/var/www/committee/zf/tests$ locate phpunit /home/preinheimer/ZendFramework-1.11.10/tests/phpunit.xml /home/preinheimer/ZendFramework-1.11.10/tests/Zend/Service/LiveDocx/MailMerge/phpunit-template-block-fields.doc /home/preinheimer/ZendFramework-1.11.10/tests/Zend/Service/LiveDocx/MailMerge/phpunit-template.docx /usr/local/lib/php/.registry/phpunit.reg /var/www/committee/ZendFramework-1.11.10/tests/phpunit.xml /var/www/committee/ZendFramework-1.11.10/tests/Zend/Service/LiveDocx/MailMerge/phpunit-template-block-fields.doc /var/www/committee/ZendFramework-1.11.10/tests/Zend/Service/LiveDocx/MailMerge/phpunit-template.docx [google some stuff, try to add the channel] preinheimer@debian:/var/www/committee/zf/tests$ pear channel-discover pear.phpunit.de Discovering channel pear.phpunit.de over http:// failed with message: channel-add: temp_dir is not writable: "/tmp/pear/temp" - You can change this location with "pear config-set temp_dir" Trying to discover channel pear.phpunit.de over https:// instead Discovery of channel "pear.phpunit.de" failed (channel-add: temp_dir is not writable: "/tmp/pear/temp" - You can change this location with "pear config-set temp_dir") preinheimer@debian:/var/www/committee/zf/tests$ sudo pear channel-discover pear.phpunit.de Adding Channel "pear.phpunit.de" succeeded Discovery of channel "pear.phpunit.de" succeeded Success I'm almost there! preinheimer@debian:/var/www/committee/zf/tests$ pear install phpunit/PHPUnit Cannot install, php_dir for channel "pear.phpunit.de" is not writeable by the current user preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install phpunit/PHPUnit Unknown remote channel: pear.symfony-project.com Did not download optional dependencies: pear/XML_RPC2, use --alldeps to download automatically Unknown remote channel: pear.symfony-project.com Unknown remote channel: components.ez.no Unknown remote channel: components.ez.no phpunit/PHPUnit requires PEAR Installer (version >= 1.9.3), installed version is 1.9.2 phpunit/PHPUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2) phpunit/PHPUnit can optionally use package "pear/XML_RPC2" phpunit/PHPUnit can optionally use PHP extension "curl" phpunit/PHPUnit can optionally use PHP extension "dbus" phpunit/DbUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2) phpunit/PHP_CodeCoverage requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5) phpunit/PHPUnit_MockObject can optionally use PHP extension "soap" phpunit/PHP_TokenStream requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) downloading File_Iterator-1.2.6.tar ... Starting to download File_Iterator-1.2.6.tar (16,896 bytes) ......done: 16,896 bytes downloading Text_Template-1.1.0.tar ... Starting to download Text_Template-1.1.0.tar (12,800 bytes) ...done: 12,800 bytes downloading PHP_Timer-1.0.2.tar ... Starting to download PHP_Timer-1.0.2.tar (19,456 bytes) ...done: 19,456 bytes downloading PHPUnit_MockObject-1.0.9.tar ... Starting to download PHPUnit_MockObject-1.0.9.tar (204,800 bytes) ...done: 204,800 bytes downloading PHPUnit_Selenium-1.0.3.tar ... Starting to download PHPUnit_Selenium-1.0.3.tar (102,400 bytes) ...done: 102,400 bytes install ok: channel://pear.phpunit.de/File_Iterator-1.2.6 install ok: channel://pear.phpunit.de/Text_Template-1.1.0 install ok: channel://pear.phpunit.de/PHP_Timer-1.0.2 install ok: channel://pear.phpunit.de/PHPUnit_Selenium-1.0.3 install ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.0.9 I'm done! preinheimer@debian:/var/www/committee/zf/tests$ phpunit -bash: phpunit: command not found or not :(, it would appear that I need a newer pear release preinheimer@debian:/var/www/committee/zf/tests$ sudo pear update well, that didn't work, help it is Command 'update' is not valid, try 'pear help' preinheimer@debian:/var/www/committee/zf/tests$ sudo pear help Commands: build Build an Extension From C Source bundle Unpacks a Pecl Package channel-add Add a Channel channel-alias Specify an alias to a channel name channel-delete Remove a Channel From the List channel-discover Initialize a Channel from its server channel-info Retrieve Information on a Channel channel-login Connects and authenticates to remote channel server channel-logout Logs out from the remote channel server channel-update Update an Existing Channel clear-cache Clear Web Services Cache config-create Create a Default configuration file config-get Show One Setting config-help Show Information About Setting config-set Change Setting config-show Show All Settings convert Convert a package.xml 1.0 to package.xml 2.0 format cvsdiff Run a "cvs diff" for all files in a package cvstag Set CVS Release Tag download Download Package download-all Downloads each available package from the default channel info Display information about a package install Install Package list List Installed Packages In The Default Channel list-all List All Packages list-channels List Available Channels list-files List Files In Installed Package list-upgrades List Available Upgrades login Connects and authenticates to remote server [Deprecated in favor of channel-login] logout Logs out from the remote server [Deprecated in favor of channel-logout] makerpm Builds an RPM spec file from a PEAR package package Build Package package-dependencies Show package dependencies package-validate Validate Package Consistency pickle Build PECL Package remote-info Information About Remote Packages remote-list List Remote Packages run-scripts Run Post-Install Scripts bundled with a package run-tests Run Regression Tests search Search remote package database shell-test Shell Script Test sign Sign a package distribution file svntag Set SVN Release Tag uninstall Un-install Package update-channels Update the Channel List upgrade Upgrade Package upgrade-all Upgrade All Packages [Deprecated in favor of calling upgrade with no parameters] Usage: pear [options] command [command-options]Type "pear help options" to list all options. Type "pear help shortcuts" to list all command shortcuts. Type "pear help " to get the help for the specified command. none of those appear to apply preinheimer@debian:/var/www/committee/zf/tests$ sudo pear update-channels Updating channel "doc.php.net" Channel "doc.php.net" is up to date Updating channel "pear.php.net" Channel "pear.php.net" is up to date Updating channel "pear.phpunit.de" Channel "pear.phpunit.de" is up to date Updating channel "pecl.php.net" Channel "pecl.php.net" is up to date phpunit docs said to get rid of the old copy, might as well try that preinheimer@debian:/var/www/committee/zf/tests$ sudo pear uninstall phpunit uninstall ok: channel://pear.php.net/PHPUnit-1.3.2 Time for a hail-mary preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install pear downloading PEAR-1.9.4.tar ... Starting to download PEAR-1.9.4.tar (Unknown size) ....................................................................................................................................................................................................................................................................................................................................................................done: 1,804,288 bytes downloading Console_Getopt-1.3.1.tar ... Starting to download Console_Getopt-1.3.1.tar (Unknown size) ...done: 21,504 bytes install ok: channel://pear.php.net/Console_Getopt-1.3.1 install ok: channel://pear.php.net/PEAR-1.9.4 PEAR: Optional feature webinstaller available (PEAR's web-based installer) PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer) PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer) PEAR: To install optional features use "pear install pear/PEAR#featurename" Success! preinheimer@debian:/var/www/committee/zf/tests$ pear install phpunit/PHPUnit Cannot install, php_dir for channel "pear.phpunit.de" is not writeable by the current user preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install phpunit/PHPUnit Unknown remote channel: pear.symfony-project.com Did not download optional dependencies: pear/XML_RPC2, use --alldeps to download automatically Unknown remote channel: pear.symfony-project.com Unknown remote channel: components.ez.no Unknown remote channel: components.ez.no phpunit/PHPUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2) phpunit/PHPUnit can optionally use package "pear/XML_RPC2" phpunit/PHPUnit can optionally use PHP extension "curl" phpunit/PHPUnit can optionally use PHP extension "dbus" phpunit/DbUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2) phpunit/PHP_CodeCoverage requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5) phpunit/PHP_TokenStream requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) No valid packages found install failed Crap! Maybe I can make it install those dependencies, there was some sort of alldeps option I think preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install phpunit/PHPUnit --alldeps parsePackageName(): invalid package name "--alldeps" in "--alldeps" invalid package name/package file "--alldeps" Unknown remote channel: pear.symfony-project.com Did not download optional dependencies: pear/XML_RPC2, use --alldeps to download automatically Unknown remote channel: pear.symfony-project.com Unknown remote channel: components.ez.no Unknown remote channel: components.ez.no phpunit/PHPUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2) phpunit/PHPUnit can optionally use package "pear/XML_RPC2" phpunit/PHPUnit can optionally use PHP extension "curl" phpunit/PHPUnit can optionally use PHP extension "dbus" phpunit/DbUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2) phpunit/PHP_CodeCoverage requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5) phpunit/PHP_TokenStream requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) No valid packages found install failed preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install --alldeps phpunit/PHPUnit Unknown remote channel: pear.symfony-project.com Unknown remote channel: pear.symfony-project.com Unknown remote channel: components.ez.no Failed to download pear/HTTP_Request2 within preferred state "stable", latest release is version 2.0.0RC1, stability "beta", use "channel://pear.php.net/HTTP_Request2-2.0.0RC1" to install Unknown remote channel: components.ez.no phpunit/PHPUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2) phpunit/PHPUnit can optionally use PHP extension "curl" phpunit/PHPUnit can optionally use PHP extension "dbus" phpunit/DbUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2) phpunit/PHP_CodeCoverage requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5) pear/XML_RPC2 requires package "pear/HTTP_Request2" (version >= 0.6.0) phpunit/PHP_TokenStream requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) downloading Cache_Lite-1.7.12.tar ... Starting to download Cache_Lite-1.7.12.tar (Unknown size) ....................................done: 165,888 bytes install ok: channel://pear.php.net/Cache_Lite-1.7.12 preinheimer@debian:/var/www/committee/zf/tests$ phpunit -bash: phpunit: command not found preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install phpunit/PHPUnit Unknown remote channel: pear.symfony-project.com Did not download optional dependencies: pear/XML_RPC2, use --alldeps to download automatically Unknown remote channel: pear.symfony-project.com Unknown remote channel: components.ez.no Unknown remote channel: components.ez.no phpunit/PHPUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2) phpunit/PHPUnit can optionally use package "pear/XML_RPC2" phpunit/PHPUnit can optionally use PHP extension "curl" phpunit/PHPUnit can optionally use PHP extension "dbus" phpunit/DbUnit requires package "channel://pear.symfony-project.com/YAML" (version >= 1.0.2) phpunit/PHP_CodeCoverage requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5) phpunit/PHP_TokenStream requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) No valid packages found install failed Maybe I can play dependency whack-a-mole? preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install pear/XML_RPC2 Failed to download pear/HTTP_Request2 within preferred state "stable", latest release is version 2.0.0RC1, stability "beta", use "channel://pear.php.net/HTTP_Request2-2.0.0RC1" to install pear/XML_RPC2 requires package "pear/HTTP_Request2" (version >= 0.6.0) No valid packages found install failed but they're not going to make it easy on me preinheimer@debian:/var/www/committee/zf/tests$ pear channel://pear.php.net/HTTP_Request2-2.0.0RC1 Command 'channel://pear.php.net/HTTP_Request2-2.0.0RC1' is not valid, try 'pear help' preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install channel://pear.php.net/HTTP_Request2-2.0.0RC1 Failed to download pear/Net_URL2 within preferred state "stable", latest release is version 0.3.1, stability "beta", use "channel://pear.php.net/Net_URL2-0.3.1" to install pear/HTTP_Request2 requires package "pear/Net_URL2" (version >= 0.3.0) pear/HTTP_Request2 can optionally use PHP extension "curl" pear/HTTP_Request2 can optionally use PHP extension "zlib" pear/HTTP_Request2 can optionally use PHP extension "openssl" No valid packages found install failed preinheimer@debian:/var/www/committee/zf/tests$ sudo pear upgrade pear Nothing to upgrade maybe I need to add that channel? preinheimer@debian:/var/www/committee/zf/tests$ sudo pear discover channel://pear.symfony-project.com/ Command 'discover' is not valid, try 'pear help' preinheimer@debian:/var/www/committee/zf/tests$ sudo pear channel channel://pear.symfony-project.com/ Command 'channel' is not valid, try 'pear help' preinheimer@debian:/var/www/committee/zf/tests$ sudo pear channel-discover channel://pear.symfony-project.com/ Discovering channel channel://pear.symfony-project.com/ over http:// failed with message: channel-add: Cannot open "http://channel://pear.symfony-project.com//channel.xml" (Connection to `channel:80' failed: php_network_getaddresses: getaddrinfo failed: Name or service not known) Trying to discover channel channel://pear.symfony-project.com/ over https:// instead Discovery of channel "channel://pear.symfony-project.com/" failed (channel-add: Cannot open "https://channel://pear.symfony-project.com//channel.xml" (Connection to `channel:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)) preinheimer@debian:/var/www/committee/zf/tests$ sudo pear channel-discover pear.symfony-project.com Adding Channel "pear.symfony-project.com" succeeded Discovery of channel "pear.symfony-project.com" succeeded preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install YAML No releases available for package "pear.php.net/YAML" - package pecl/YAML can be installed with "pecl install YAML" install failed umm? maybe I need channel/package? preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install pear.symfony-project.com/YAML downloading YAML-1.0.6.tar ... Starting to download YAML-1.0.6.tar (46,592 bytes) .............done: 46,592 bytes install ok: channel://pear.symfony-project.com/YAML-1.0.6 boughyeah! preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install phpunit/PHPUnit Did not download optional dependencies: pear/XML_RPC2, use --alldeps to download automatically Unknown remote channel: components.ez.no Unknown remote channel: components.ez.no phpunit/PHPUnit can optionally use package "pear/XML_RPC2" phpunit/PHPUnit can optionally use PHP extension "curl" phpunit/PHPUnit can optionally use PHP extension "dbus" phpunit/PHP_CodeCoverage requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5) phpunit/PHPUnit requires package "phpunit/PHP_CodeCoverage" (version >= 1.0.2) phpunit/PHP_TokenStream requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) downloading DbUnit-1.0.3.tar ... Starting to download DbUnit-1.0.3.tar (505,856 bytes) .....................................................................................................done: 505,856 bytes install ok: channel://pear.phpunit.de/DbUnit-1.0.3 preinheimer@debian:/var/www/committee/zf/tests$ phpunit -bash: phpunit: command not found crap :( preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install phpunit/PHPUnit Did not download optional dependencies: pear/XML_RPC2, use --alldeps to download automatically Unknown remote channel: components.ez.no Unknown remote channel: components.ez.no phpunit/PHPUnit can optionally use package "pear/XML_RPC2" phpunit/PHPUnit can optionally use PHP extension "curl" phpunit/PHPUnit can optionally use PHP extension "dbus" phpunit/PHP_CodeCoverage requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5) phpunit/PHPUnit requires package "phpunit/PHP_CodeCoverage" (version >= 1.0.2) phpunit/PHP_TokenStream requires package "channel://components.ez.no/ConsoleTools" (version >= 1.6) No valid packages found install failed lets look for more dependencies, first the channel, that seems to be important preinheimer@debian:/var/www/committee/zf/tests$ sudo pear channel-discover components.ez.no Adding Channel "components.ez.no" succeeded Discovery of channel "components.ez.no" succeeded preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install components.ez.no/ConsoleTools downloading ConsoleTools-1.6.1.tar ... Starting to download ConsoleTools-1.6.1.tar (1,605,632 bytes) .............................................................................................................................................................................................................................................................................................................................done: 1,605,632 bytes downloading Base-1.8.tar ... Starting to download Base-1.8.tar (410,112 bytes) ...done: 410,112 bytes install ok: channel://components.ez.no/Base-1.8 install ok: channel://components.ez.no/ConsoleTools-1.6.1 preinheimer@debian:/var/www/committee/zf/tests$ sudo pear install phpunit/PHPUnit Did not download optional dependencies: pear/XML_RPC2, use --alldeps to download automatically phpunit/PHPUnit can optionally use package "pear/XML_RPC2" phpunit/PHPUnit can optionally use PHP extension "curl" phpunit/PHPUnit can optionally use PHP extension "dbus" phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5) downloading PHPUnit-3.5.15.tar ... Starting to download PHPUnit-3.5.15.tar (1,105,408 bytes) ...........................................................................................................................................................................................................................done: 1,105,408 bytes downloading PHP_CodeCoverage-1.0.5.tar ... Starting to download PHP_CodeCoverage-1.0.5.tar (594,432 bytes) ...done: 594,432 bytes downloading PHP_TokenStream-1.0.1.tar ... Starting to download PHP_TokenStream-1.0.1.tar (51,712 bytes) .............done: 51,712 bytes install ok: channel://pear.phpunit.de/PHP_TokenStream-1.0.1 install ok: channel://pear.phpunit.de/PHP_CodeCoverage-1.0.5 install ok: channel://pear.phpunit.de/PHPUnit-3.5.15 this is looking good! preinheimer@debian:/var/www/committee/zf/tests$ phpunit ^C SUCCESS! preinheimer@debian:/var/www/committee/zf/tests$ ./runtests.sh ++ phpunit --verbose AllTests PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4864 bytes) in /var/www/committee/ZendFramework-1.11.10/tests/Zend/Service/ReCaptcha/ReCaptchaTest.php on line 287 crap. Please don't get me wrong, I think PHPUnit is a fantastic tool, that said, I've never spent less than 20 minutes installing it. I think it was more like an hour the first time (on a mac at that point)