[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执行

posted @ 2015-03-19 16:25  zaric  阅读(286)  评论(0编辑  收藏  举报