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-02-06 03:03:43 |
Package Statistics | |
---|---|
Total Downloads: | 11 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
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
执行测试