Releases: dereuromark/cakephp-test-helper
Releases · dereuromark/cakephp-test-helper
2.7.0
2.6.0
2.5.0
What's Changed
- Clickable path for the IDE using -v verbose mode
- Add some more linters with auto-fixing
- Enable CI run via
bin/cake linter --ci - Enable plugin mode
Full Changelog: 2.4.0...2.5.0
2.4.0
Improvements
Custom Linter Tasks System
Added a flexible linter system for running project-specific code quality checks that don't fit into standard static analysis tools (phpcs, phpstan, rector).
Run them in locally and in your CI.
Key Highlights:
- Extensible: Create custom tasks in App\Command\Linter\Task\
- Fast: Designed for quick validation (completes in seconds)
- Configurable: Enable/disable tasks via FQCN-based config
Included Default Tasks
Four production-ready linter tasks are included and enabled by default:
- no-mixed-in-templates - Enforce specific type annotations in templates (not mixed)
- use-orm-query - Detect incorrect Cake\Database\Query imports (should be Cake\ORM\Query\SelectQuery)
- use-base-migration - Flag deprecated AbstractMigration/AbstractSeed usage
- single-request-per-test - Validate controller tests have only one request per method
Usage Examples
# Run all tasks
bin/cake linter
# Run with verbose output (shows paths)
bin/cake linter -v
# Run specific task
bin/cake linter --task use-orm-query
# List available tasks
bin/cake linter --list
Configuration
Customize tasks in config/app.php:
'TestHelper' => [
'Linter' => [
'tasks' => [
// Add custom tasks
\App\Command\Linter\Task\MyCustomTask::class,
// Disable default tasks
\TestHelper\Command\Linter\Task\UseOrmQueryTask::class => false,
],
],
],Full Changelog: 2.3.0...2.4.0
2.3.0
Improvements
- Standalone layout by @dereuromark in #26
It is now standalone and with 0 dependencies. No more leaking issues from the application.
- Test your code from the browser, also directly show coverage
- Bake your test case classes from the browser
- More helper tooling
Full Changelog: 2.2.1...2.3.0
2.2.1
Fixes
- Fixed IO error usage
2.2.0
Improvements
- Added FixtureFactory into fixture comparison
- Added Model comparison with Table/Entity classes and DB tables.
2.1.0
Improvements
- Added Migrations backend to allow resetting migrations: A multi-step process to ensure a fresh migration file replacing your current ones (merging all together).
2.0.4
2.0.3
Fixes
Fixed coverage run in case xdebug is not installed by using PHP 8 pcov

