sudo apt-get install phpunit //安装phpunit
phpunit --version //会出错,表明没有安装完全

sudo pear upgrade pear
sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover components.ez.no
sudo pear channel-discover pear.symfony.com
sudo pear install --alldeps phpunit/PHPUnit
phpunit --version //出现版本号,表示安装成功
which phpunit 
sudo pear install phpunit/PHPUnit_SkeletonGenerator //安装PHPUnit_Skeleton


sudo pear install phpunit/PHPUnit_Selenium //安装selenium

通过安装,我们就可以在ubuntu下载使用单元测试我们的程序了。

 

相关文章:

  • 2021-07-21
  • 2021-09-08
  • 2021-05-22
  • 2021-09-08
  • 2022-01-02
  • 2022-02-28
  • 2021-10-18
猜你喜欢
  • 2021-07-05
  • 2021-08-18
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
相关资源
相似解决方案