08/08
2017
dev-master
9999999-devLaravel framework haser
MIT
The Development Requires
by kwan
Laravel framework haser
用法, (*1)
composer require szzmzb/hasher
或者在composer.json
的require部分添加, (*2)
"szzmzb/hasher": "~1.0"
下载完毕之后,直接配置app/config.php
的providers, (*3)
\Szzmzb\Hasher\MD5HasherProvider::class,
单元测试 1. 修改composer.json,加入以下配置, (*4)
"require-dev": { "phpunit/phpunit": "5.5.*" }
tests
setUp()
初始化测试类,作用相当于__construct()
test
开头,例如testXXX()
vendor/bin/phpunit tests/testClassName
命令执行测试phpunit.xml
文件,配置文件以后可直接运行phpunit
执行测试Laravel framework haser
MIT