Download the PHP package pmvc-plugin/unit without Composer
On this page you can find all versions of the php package pmvc-plugin/unit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pmvc-plugin/unit
More information about pmvc-plugin/unit
Files in pmvc-plugin/unit
Download pmvc-plugin/unit
More information about pmvc-plugin/unit
Files in pmvc-plugin/unit
Vendor pmvc-plugin
Package unit
Short Description PMVC Test Framework
License MIT
Homepage https://github.com/pmvc/pmvc
Package unit
Short Description PMVC Test Framework
License MIT
Homepage https://github.com/pmvc/pmvc
Please rate this library. Is it a good library?
Informations about the package unit
A simple phpunit wrapper let it support phpunt 4.8.35, 6.5.5, 9.5.0
In another word.
You could use is cross php version 5.5 -> 8.x
function mapping table
phpunit | PMVC/unit |
---|---|
__construct | pmvc_init |
setup | pmvc_setup |
teardown | pmvc_teardown |
assertContains | haveString |
assertStringContainsString | haveString |
assertStringContainsString | haveString |
getMockBuilder | getPMVCMockBuilder |
setMethods | pmvc_onlyMethods |
onlyMethods | pmvc_onlyMethods |
Code example
tests/include.php example
Php TestCase code example
CI config example
- Simple plugin
- More php version
- Real CircleCI example
PHPUnit Tip
-
Show event
-
show deprecations
-
output debug info
-
trigger PMVC dev dump
- Further integration with the [dev] plugin.
Install with Composer
1. Download composer
- mkdir test_folder
- curl -sS https://getcomposer.org/installer | php
2. Install by composer.json or use command-line directly
2.1 Install by composer.json
-
vim composer.json
- php composer.phar install
2.2 Or use composer command-line
- php composer.phar require pmvc-plugin/unit
- or
- composer require pmvc-plugin/unit
Other Polyfills
All versions of unit with dependencies
PHP Build Version
Package Version
The package pmvc-plugin/unit contains the following files
Loading the files please wait ....