| Package Data | |
|---|---|
| Maintainer Username: | kopiteken |
| Maintainer Contact: | kopiteken@163.com (Kwan) |
| Package Create Date: | 2017-08-08 |
| Package Last Update: | 2017-08-08 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-12-11 03:00:42 |
| Package Statistics | |
|---|---|
| Total Downloads: | 13 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 0 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
用法
composer require szzmzb/hasher
或者在composer.json的require部分添加
"szzmzb/hasher": "~1.0"
下载完毕之后,直接配置app/config.php的providers
\Szzmzb\Hasher\MD5HasherProvider::class,
单元测试
"require-dev": {
"phpunit/phpunit": "5.5.*"
}
tests
setUp()初始化测试类,作用相当于__construct()
test开头,例如testXXX()
vendor/bin/phpunit tests/testClassName命令执行测试phpunit.xml文件,配置文件以后可直接运行phpunit执行测试