Manual Installation phpunit_php Tutorial

Source: Internet
Author: User
Tags channel pear deprecated gpg pear php cli
Under ubuntu12.04 phpunit error PHP Fatal error:call to undefined method php_codecoverage_filter::getinstance () in/usr/share/p hp/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 pear.php.net HTTP Proxy Server Address http_proxy PEAR server [DEPRECATED] master_server pear.php.net Default Channel Mirror preferred_mirror PEAR . php.net 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 cfg_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 php.ini location Php_ini- -program-prefix passed to Php_prefix PHP's./configure--program-suffix passed to Php_suffix php ' s./configure PEAR instal Ler Temp directory temp_dir/tmp/pear/temp pear test directory test_dir/usr/share/php/test pear www files directory www_d Ir/usr/share/php/htdocs Cache TimeToLive Cache_ttl 3600 Preferred package State preferred_state stable Unix file mask uma SK 2 Debug Log level verbose 1 PEAR password (for password maintainers) Signature handling program SIG_BIN/USR/BIN/GPG Si Gnature key Directory Sig_keydir/etc/pear/pearkeys Signature key Id Sig_keyid package Signature Type sig_type gpg Pear US Ername (for username maintainers) User configuration file FILENAME/HOME/USERNAME/.PEARRC System Configuration file Filena Me/etc/pear/pear.conf need to set following Configurations:sudo pear config-set bin_dir/usr/bin sudo pear config-se T doc_dir/usr/share/php/dOC sudo pear config-set php_dir/usr/share/php sudo pear config-set cfg_dir/usr/share/php/cfg (make (sudo mkdir cfg) dire ctory here) sudo pear config-set data_dir/usr/share/php/data sudo pear config-set test_dir/usr/share/php/test $ pear con Fig-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 htt P_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/sha re/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 P HP ' 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 3600Preferred Package State Preferre D_state Stableunix File Mask umask 2Debug Log level verbose 1PEAR password (for password maintainers) Signature handling Pr Ogram sig_bin/usr/bin/gpgsignature key Directory sig_keydir/etc/pear/pearkeyssignature key Id Sig_keyid Package Signatu Re Type sig_type gpgpear username (for username maintainers) User Configuration File Filename/home/username/.pearrcsystem Configuration File filename/etc/pear/pear.confyou need to set following Configurations:sudo pear Config-set bin_dir/us R/binsudo 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 CF g) 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 gi T clone git://github.com/sebastianbergmann/dbunit.git git clone git://github.com/sebastianbergmann/ Php-file-iterator.git git clone git://github.com/sebastianbergmann/php-text-template.git git clone git://github.com/ Sebastianbergmann/php-code-coverage.git git clone git://github.com/sebastianbergmann/php-token-stream.git git clone Git://github.com/sebastianbergmann/php-timer.git git clone git://github.com/sebastianbergmann/ Phpunit-mock-objects.git git clone git://github.com/sebastianbergmann/phpunit-selenium.git git clone git:// Github.com/sebastianbergmann/phpunit-story.git 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-iterat Or/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 phpun It && 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 ph Punit-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/

http://www.bkjia.com/PHPjc/477846.html www.bkjia.com true http://www.bkjia.com/PHPjc/477846.html techarticle Under ubuntu12.04 phpunit error PHP Fatal error:call to undefined method php_codecoverage_filter::getinstance () in/usr/ share/php/phpunit/framework.php on line 46[php] View plain ...

  • 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.