Skip to content

andanyoung/PHPUnitDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

单元测试是几个现代敏捷开发方法的基础,使得PHPUnit成为许多大型PHP项目的关键工具。这个工具也可以被Xdebug扩展用来生成代码覆盖率报告 ,并且可以与phing集成来自动测试,最后它还可以和Selenium整合来完成大型的自动化集成测试。 这是对PHPUnit的一个Demo。一步步带你走入PHPUnit。基础文档

Getting started

# clone the project
git clone https://github.com/AndyYoungCN/PHPUnitDemo

# install dependency
composer install

# install phpunit if uninstall
wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
mv phpunit.phar /usr/local/bin/phpunit
phpunit -V

cd PHPUnitDemo
phpunit

  • 运行最终结果

文档引导

文档引导

  

Releases

No releases published

Packages

No packages published

Languages