[laravel]phpunit

step1.install phpunit

  composer.json require中增加 

"phpunit/phpunit":"4.0.*"

   执行

1 composer update

  phpunit将被安装在vender/bin/目录下

vendor/bin/phpunit

  便执行所有单元测试,如果执行单个

vendor/bin/phpunit app/tests/ExampleTest

  将查找app/tests/ExampleTest.php执行

你可能感兴趣的:(laravel)