//composer.json "require-dev":{ "phpunit/phpunit": "^5.4" }
class MyPHPClassTest extends \PHPUnit_Framework_TestCase{//class must end with Test and extend class PHPUnit_Framework_TestCase public function testMethod()//method must start with test { $this->assertTrue(True); } }
原文:http://www.cnblogs.com/flytome/p/6397326.html