ubuntu下安裝phpunit

錯誤信息:php

Call to undefined method PHP_CodeCoverage_Filter::getInstance()

第一種:curl

If you have problems with accessing components try another way. 
Install pearurl

sudo apt - get install php - pear spa

Install  phpunit  by using pear. code

pear config - set auto_discover 1 pear install pear . phpunit . de / PHPUnitcomponent

Install  phpunit /Selenium, but first you need to install  curl  module orm

sudo apt - get install php5 - curl symfony

pear install phpunit/PHPUnit_Selenium
第二種:

sudo apt-get remove phpunit ci

sudo pear channel-discover pear.phpunit.de rem

sudo pear channel-discover pear.symfony-project.com 

sudo pear channel-discover components.ez.no 

sudo pear update-channels 

sudo pear upgrade-all 

sudo pear install --alldeps phpunit/PHPUnit 

sudo pear install --force --alldeps phpunit/PHPUnit

相關文章
相關標籤/搜索