friendsofcake / fixturize
CakePHP Fixture classes to help increase productivity or performance
Package info
github.com/FriendsOfCake/fixturize
Type:cakephp-plugin
pkg:composer/friendsofcake/fixturize
3.0.1
2024-08-09 14:12 UTC
Requires
- php: >=8.1
- cakephp/cakephp: ^5.0.0
Requires (Dev)
This package is auto-updated.
Last update: 2026-03-09 17:44:11 UTC
README
Installation
composer require friendsofcake/fixturize
Introduction
The fixturize plugin will help improve performance of your fixture based tests.
This plugin currently only work with MySQL/MariaDB/Percona databases.
Usage
Instead of
use Cake\TestSuite\Fixture\TestFixture;
simply use
use FriendsOfCake\Fixturize\TestSuite\Fixture\ChecksumTestFixture as TestFixture;
Re-run your tests and enjoy the speed!
Real life improvements
| Who | # Tests | Before | After |
|---|---|---|---|
| Bownty Content Importer | 364 | 15s | 5s |
| Apacta REST API (110 fixtures) | 318 | 180s | 30s |
Feel free to submit your own results above.