Install phpunit manually

Source: Internet
Author: User
Tags channel pear gpg php cli

PHP Fatal error: Call to undefined method PHP_CodeCoverage_Filter: getInstance () in/usr/share/php/phpunit/Framework. php on line 46 [php] view plaincopyprint? [Plain] $ pear config-show Which showed this (unlike my config-show): Configuration (channel pear.php.net ): ============================================ Auto-discover new Channels auto_discover Default Channel default_channel comment HTTP Proxy Server Address http_proxy PEAR server [DEPRECATED] master_server limit Default Channel Mirror limit Remote Configuration File remote_config PEAR executables directory bin_dir/usr/bin PEAR documentation directory doc_dir /usr/share/php/doc PHP extension directory ext_dir/usr/lib/php5/20090626 + lfs PEAR directory php_dir/usr/share/php PEAR Installer cache directory cache_dir/tmp/pear /cache PEAR configuration file pai_dir/usr/share/php/cfg directory PEAR data directory data_dir/usr/share/php/data PEAR Installer download download_dir/build/buildd/php5-5.3.10/pear- build-download directory php cli/CGI binary php_bin/usr/bin/php. ini location php_ini -- program-prefix passed to php_prefix PHP's. /configure -- program-suffix passed to php_suffix PHP's. /configure PEAR Installer temp directory temp_dir/tmp/pear/temp PEAR test directory test_dir/usr/share/php/test PEAR www files directory www_dir/usr/share/php/htdocs Cache TimeToLive cache_ttl 3600 Preferred Package State preferred_state stable Unix file mask umask 2 Debug Log Level verbose 1 PEAR password (for password maintainers) signature Handling Program sig_bin/usr/bin/gpg Signature Key Directory sig_keydir/etc/pear/pearkeys Signature Key Id sig_keyid Package Signature Type sig_type gpg PEAR username (for username maintainers) user Configuration File Filename/home/username /. pearrc System Configuration File Filename/etc/pear. conf You need to set following deployments: sudo pear config-set bin_dir/usr/bin sudo pear config-set doc_dir/usr/share/php/doc sudo pear config-set php_dir/usr/share/php sudo pear config- set cmd_dir/usr/share/php/cfg (make (sudo mkdir cfg) directory here) sudo pear config-set data_dir/usr/share/php/data sudo pear config-set test_dir/usr/share/php/test $ pear config-showWhich showed this (unlike my config- show): Configuration (channel pear.php.net ): ============================================ Auto-discover new Channels auto_discover Default Channel default_channel pear. php. netHTTP Proxy Server Address http_proxy PEAR server [DEPRECATED] master_server pear. php. netDefault Channel Mirror preferred_mirror pear. php. netRemote Configuration File remote_config PEAR executables directory bin_dir/usr/binPEAR documentation directory doc_dir/usr/share/php/docPHP extension directory ext_dir/usr/lib/php5/20090626 + lfsPEAR directory php_dir/usr /share/phpPEAR Installer cache directory cache_dir/tmp/pear/cachePEAR configuration file Export _dir/usr/share/php/export directorypear data directory data_dir/usr/share/php/dataPEAR Installer download download_dir/ build/buildd/php5-5.3.10/pear-build-downloaddirectoryPHP CLI/CGI binary php_bin/usr/bin/phpphp. ini location php_ini -- program-prefix passed to php_prefix PHP's. /configure -- program-suffix passed to php_suffix PHP's. /configurePEAR Installer temp directory temp_dir/tmp/pear/tempPEAR test directory test_dir/usr/share/php/testPEAR www files directory www_dir/usr/share/php/htdocsCache TimeToLive cache_ttl 3600 Preferred Package state preferred_state stableUnix file mask umask 2 Debug Log Level verbose 1 PEAR password (for password maintainers) signature Handling Program sig_bin/usr/bin/gpgSignature Key Directory sig_keydir/etc/pear/pearkeysSignature Key Id sig_keyid Package Signature Type sig_type gpgPEAR username (for username maintainers) user Configuration File Filename/home/username /. pearrcSystem Configuration File Filename/etc/pear. confYou need to set following deployments: sudo pear config-set bin_dir/usr/binsudo pear config-set doc_dir/usr/share/php/docsudo pear config-set php_dir/usr/share/phpsudo pear config-set pai_dir/ usr/share/php/cfg (make (sudo mkdir cfg) directory here) sudo pear config-set data_dir/usr/share/php/datasudo pear config-set test_dir/usr/share/php/test [php] sudo apt-get install git mkdir phpunit && cd phpunit git clone git: // github.com/sebastianbergmann/phpunit.git git clone git: // your git clone git: // register git clone git: // github.com/sebastianbergmann/php-timer.git git clone git: // register git clone git: // github.com/sebastianbergmann/php-invoker.git sudo cp-r dbunit/PHPUnit/usr/share/php/sudo cp-r php-code-coverage/PHP/usr/share/php/sudo cp-r php -file-iterator/File/usr/share/php/sudo cp-r php-invoker/PHP/usr/share/php/sudo cp-r php-text-template/Text /usr/share/php/sudo cp-r php-timer/PHP/usr/share/php/sudo cp-r php-token-stream/PHP/usr/share/php /sudo cp-r phpunit/PHPUnit/usr/share/php/sudo cp-r phpunit-mock-objects/PHPUnit/usr/share/php/sudo cp-r phpunit-selenium /PHPUnit/usr/share/php/sudo cp-r phpunit-story/PHPUnit/usr/share/php/sudo cp-r phpunit/phpunit. php/usr/share/php/sudo apt-get install gitmkdir phpunit & cd phpunitgit clone git: // github.com/sebastianbergmann/phpunit.gitgit clone git: // your clone git: // register clone git: // github.com/sebastianbergmann/php-timer.gitgit clone git: // register clone git: // github.com/sebastianbergmann/phpunit-story.gitgit clone git: // github.com/sebastianbergmann/php-invoker.gitsudo cp-r dbunit/PHPUnit/usr/share/php/sudo cp-r php-code-coverage/PHP/usr/share/php/sudo cp-r php-php- file-iterator/File/usr/share/php/sudo cp-r php-invoker/PHP/usr/share/php/sudo cp-r php-text-template/Text/ usr/share/php/sudo cp-r php-timer/PHP/usr/share/php/sudo cp-r php-token-stream/PHP/usr/share/php/ sudo cp-r phpunit/PHPUnit/usr/share/php/sudo cp-r phpunit-mock-objects/PHPUnit/usr/share/php/sudo cp-r phpunit-selenium/ PHPUnit/usr/share/php/sudo cp-r phpunit-story/PHPUnit/usr/share/php/sudo cp-r phpunit/phpunit. php/usr/share/php/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.