Manual Assembly PHPUnit

Source: Internet
Author: User
Tags channel pear
Manual installation of PHPUnit

PHPUnit Error under ubuntu12.04

PHPFatalError:  Pager toundefinedMethod Php_codecoverage_filter::getinstance() inch /usr/Share/PHP/PHPUnit/Framework.PHP on line $

$ 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 cfg_dir/usr/share/php/ Cfgdirectorypear 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/test PEAR www files directory www_dir/usr/share/php/htdocscache TimeToLive cache_ttl 3600Preferred Package State Preferred_st Ate Stableunix file mask umask 2Debug Log level verbose 1PEAR password (for password maintainers) Signature handling Progra M sig_bin/usr/bin/gpgsignature key Directory sig_keydir/etc/pear/pearkeyssignature key Id Sig_keyid package Signature Ty PE sig_type gpgpear username (for username maintainers) User Configuration File Filename/home/username/.pearrcsystem Conf Iguration File filename/etc/pear/pear.confyou need to set following Configurations:sudo pear Config-set bin_dir/usr/bins Udo Pear config-set doc_dir/usr/share/php/docsudo pear config-set php_dir/usr/share/phpsudo pear config-set cfg_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 


sudo apt-get install gitmkdir phpunit && CD phpunitgit clone git://github.com/sebastianbergmann/phpunit.gitgit Clone Git://github.com/sebastianbergmann/dbunit.gitgit Clone git://github.com/sebastianbergmann/ Php-file-iterator.gitgit Clone Git://github.com/sebastianbergmann/php-text-template.gitgit Clone git://github.com/ Sebastianbergmann/php-code-coverage.gitgit Clone Git://github.com/sebastianbergmann/php-token-stream.gitgit Clone Git://github.com/sebastianbergmann/php-timer.gitgit Clone git://github.com/sebastianbergmann/ Phpunit-mock-objects.gitgit Clone Git://github.com/sebastianbergmann/phpunit-selenium.gitgit 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-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 Phpuni T-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.