PHPackages                             serendipity\_hq/phpunit\_helper - 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. serendipity\_hq/phpunit\_helper

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

serendipity\_hq/phpunit\_helper
===============================

PHPUnit helper to manage tested resource, mocked objects and test values.

8.0.0(4y ago)118.7k[3 issues](https://github.com/SerendipityHQ/SHQ_PHPUnit_Helper/issues)MITPHPPHP ^7.4|^8.0CI failing

Since Jan 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/SerendipityHQ/SHQ_PHPUnit_Helper)[ Packagist](https://packagist.org/packages/serendipity_hq/phpunit_helper)[ Docs](https://github.com/SerendipityHQ/SHQ_PHPUnit_Helper)[ RSS](/packages/serendipity-hq-phpunit-helper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (35)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/742cbc1c25f7fa5d53bb92a4a2620c4b877bd743c364a964b54416a5ff5a8885/68747470733a2f2f706f7365722e707567782e6f72672f736572656e6469706974795f68712f706870756e69745f68656c7065722f762f737461626c65)](https://packagist.org/packages/serendipity_hq/phpunit_helper)[![Build Status](https://camo.githubusercontent.com/d0d8d60365bc37ced54137265daf7869d63a955b1ded05f71daad0a89f05e3c9/68747470733a2f2f7472617669732d63692e6f72672f536572656e64697069747948512f5348515f504850556e69745f48656c7065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/SerendipityHQ/SHQ_PHPUnit_Helper)[![Total Downloads](https://camo.githubusercontent.com/03c347b001805eb8b26729253200322b3f9aa7028d22b3121d0ac5f78bc93271/68747470733a2f2f706f7365722e707567782e6f72672f736572656e6469706974795f68712f706870756e69745f68656c7065722f646f776e6c6f616473)](https://packagist.org/packages/serendipity_hq/phpunit_helper)[![License](https://camo.githubusercontent.com/0f30163267fb6f0514f1a91f8ae42f54836174276a5d333ff9f8f0e3b00d97b7/68747470733a2f2f706f7365722e707567782e6f72672f736572656e6469706974795f68712f706870756e69745f68656c7065722f6c6963656e7365)](https://packagist.org/packages/serendipity_hq/phpunit_helper)[![Code Climate](https://camo.githubusercontent.com/7e5bcfd078c99f82a53b1317bb6417d047e72ae70b1734e16c2c71e993142451/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f536572656e64697069747948512f5348515f504850556e69745f48656c7065722f6261646765732f6770612e737667)](https://codeclimate.com/github/SerendipityHQ/SHQ_PHPUnit_Helper)[![Test Coverage](https://camo.githubusercontent.com/abed2124d7a551369e187099b63891e38de6ea2da8b17c23a205e7ed1fca73fe/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f536572656e64697069747948512f5348515f504850556e69745f48656c7065722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/SerendipityHQ/SHQ_PHPUnit_Helper/coverage)[![Issue Count](https://camo.githubusercontent.com/22597e68b1872e3f751fd42fefdb068e1f1248747a987e270a73164d3ba1b83f/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f536572656e64697069747948512f5348515f504850556e69745f48656c7065722f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/SerendipityHQ/SHQ_PHPUnit_Helper)[![StyleCI](https://camo.githubusercontent.com/3d8f4e20519b7f4621705e7f1117e9dd0b5d3a2f28307aee6257450a05a5472c/68747470733a2f2f7374796c6563692e696f2f7265706f732f34393531323439382f736869656c64)](https://styleci.io/repos/49512498)[![SensioLabsInsight](https://camo.githubusercontent.com/19f24f53453409bdd02ef32a22bf07e62d310262abbf8d1b4280211d4edf1b45/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34346336353365632d646537622d343663652d613434392d6462393531636162616134312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/44c653ec-de7b-46ce-a449-db951cabaa41)[![Dependency Status](https://camo.githubusercontent.com/7c082b098dbccd4c6bc7660e0fbc52d249d5d12be7ed6c8f9e24c999d9418be9/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536616532613830376530336337303033373765303065372f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/56ae2a807e03c700377e00e7)[![Coverage Status](https://camo.githubusercontent.com/18d71344441c4ca581043814963b2906e0f830805c3ec017ba32eb0dae1f75e8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f536572656e64697069747948512f5348515f504850556e69745f48656c7065722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/SerendipityHQ/SHQ_PHPUnit_Helper?branch=master)

SHQ\_PHPUnit\_Helper
====================

[](#shq_phpunit_helper)

! DOCUMENTATION NOT YET UPDATED !

This helper permits you to tear down your tests in an easy way.

It can also print some info about memory usage before and after tear down.

How to install `PHPUnit_Helper`
-------------------------------

[](#how-to-install-phpunit_helper)

To install `PHPUnit_Helper` use Composer:

```
composer require serendipity_hq/phpunit_helper

```

Quick use
---------

[](#quick-use)

To quickly use PHPUnit\_Helper, create a `TestCase.php` file and extend all your tests from this.

The helper is built as a `trait`, so you can use it in conjuction with other test cases (for example, the `WebTestCase`provided by LiipFunctionalTestBundle or the Symfony's `WebTestCase`.

```
