PHPackages                             pmvc-plugin/unit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. pmvc-plugin/unit

ActiveLibrary[Testing &amp; Quality](/categories/testing)

pmvc-plugin/unit
================

PMVC Test Framework

0.5.2(1mo ago)07.3k—1.9%[1 issues](https://github.com/pmvc-plugin/unit/issues)20MITPHP

Since Apr 6Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/pmvc-plugin/unit)[ Packagist](https://packagist.org/packages/pmvc-plugin/unit)[ Docs](https://github.com/pmvc/pmvc)[ RSS](/packages/pmvc-plugin-unit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (10)Used By (20)

[![Latest Stable Version](https://camo.githubusercontent.com/64eb876a0b5298c4ae5de69c9e3b460310e7077a9d3efa91dc4f3881fcf1b6e4/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f756e69742f762f737461626c65)](https://packagist.org/packages/pmvc-plugin/unit)[![Latest Unstable Version](https://camo.githubusercontent.com/3eb05f5f4303adf2aab0eefecc3a80923110a5259787ffd9b6fc63a17838fa80/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f756e69742f762f756e737461626c65)](https://packagist.org/packages/pmvc-plugin/unit)[![CircleCI](https://camo.githubusercontent.com/1f26f3610a27644e9ffcd6b4831baad2e1eb0d6c3139f01185a3e062a073c0d4/68747470733a2f2f636972636c6563692e636f6d2f67682f706d76632d706c7567696e2f756e69742f747265652f6d61696e2e7376673f7374796c653d737667)](https://circleci.com/gh/pmvc-plugin/unit/tree/main)[![License](https://camo.githubusercontent.com/1255873992e75f9e60402f3ed4e1ce545ecf23b50b8b01c5598e50c5ad8305d0/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f756e69742f6c6963656e7365)](https://packagist.org/packages/pmvc-plugin/unit)[![Total Downloads](https://camo.githubusercontent.com/a7caa9d053b79110f1ba3cc7ec8e9f487db71c0ad2e0e84488e8772463aec824/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f756e69742f646f776e6c6f616473)](https://packagist.org/packages/pmvc-plugin/unit)

A simple phpunit wrapper let it support phpunit 4.8.36, 8.5.52, ^9.6, ^10.5, ^11.5
==================================================================================

[](#a-simple-phpunit-wrapper-let-it-support-phpunit-4836-8552-96-105-115)

In another word.
----------------

[](#in-another-word)

You could use is cross php version 5.6 -&gt; 8.x+

function mapping table
----------------------

[](#function-mapping-table)

phpunitPMVC/unit\_\_constructpmvc\_initsetuppmvc\_setupteardownpmvc\_teardownassertContainshaveStringassertStringContainsStringhaveStringassertStringContainsStringhaveStringgetMockBuildergetPMVCMockBuildersetMethodspmvc\_onlyMethodsonlyMethodspmvc\_onlyMethodsCode example
------------

[](#code-example)

### tests/include.php example

[](#testsincludephp-example)

```
