PHPackages                             gulaandrij/phpunit-accelerator - 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. gulaandrij/phpunit-accelerator

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

gulaandrij/phpunit-accelerator
==============================

PHPUnit accelerator

3.0.1(7y ago)1894MITPHPPHP &gt;=7.2

Since Mar 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/gulaandrij/phpunit-accelerator)[ Packagist](https://packagist.org/packages/gulaandrij/phpunit-accelerator)[ RSS](/packages/gulaandrij-phpunit-accelerator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (9)Used By (0)

PHPUnit Accelerator
===================

[](#phpunit-accelerator)

[![Build Status](https://camo.githubusercontent.com/bd55feb3cb2e81fab5c023e1a8b3affc57f95571827699572735b36804ac0865/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d796275696c6465722f706870756e69742d616363656c657261746f722e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/mybuilder/phpunit-accelerator)

Inspired by [Kris Wallsmith faster PHPUnit article](http://kriswallsmith.net/post/18029585104/faster-phpunit), we've created a [PHPUnit](http://phpunit.de) test listener that speeds up PHPUnit tests about 20% by freeing memory.

Installation
------------

[](#installation)

To install this library, run the command below and you will get the latest version

```
composer require mybuilder/phpunit-accelerator --dev
```

Usage
-----

[](#usage)

Just add to your `phpunit.xml` configuration

```

```

### Ignoring Tests

[](#ignoring-tests)

Sometimes it is necessary to ignore specific tests, where freeing their properties is undesired. For this use case, you have the ability to *extend the behaviour* of the listener by implementing the `IgnoreTestPolicy` interface.

As an example, if we hypothetically wanted to ignore all tests which include "Legacy" in their test filename, we could create a custom ignore policy as follows

```
