Skip to content

Disk defrag output for PHPUnit tests

License

Notifications You must be signed in to change notification settings

benholmen/defrag

Repository files navigation

Defragment your PHPUnit tests

This package generates a satisfying Defrag-style output when running your PHPUnit test suite.

Sample output

Inspired by

MS-DOS 6.x included a defrag utility that honestly was just so satisfying to watch. The 90s were a different time, folks. Disk defragmentation took about an hour and physically rearranged the data on your hard drive so it was more efficient to read off the disk.

Defrag Running in MS-DOS 6.22

Defrag Running in MS-DOS 6.22

Installation

Install the package via composer:

composer require benholmen/defrag --dev

Add the following lines to your phpunit.xml file:

<extensions>
    <bootstrap class="BenHolmen\Defrag\Extension"/>
</extensions>

Usage

Run PHPUnit as usual:

vendor/bin/phpunit

Testing

Of course, this produces the defrag output you'd expect.

composer test

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.