lion / test
Library to implement testing with helpers that allow easy testing with PHPUnit.
Installs: 7 463
Dependents: 14
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/lion/test
Requires
- php: >=8.5
- ext-gd: *
Requires (Dev)
- infection/infection: ^0.29.14 || ^0.31.0 || ^0.32.0
- lion/exceptions: ^2.0 || ^3.0
- overtrue/phplint: ^9.5
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^12.0
- squizlabs/php_codesniffer: ^3.11 || ^4.0
This package is auto-updated.
Last update: 2026-01-01 13:59:49 UTC
README
🚀 Lion-Test library to implement testing with helpers that allow easy testing with PHPUnit.
📖 Features
✔️ Easy-to-use assertions beyond the default PHPUnit set.
✔️ Custom helper functions for common test patterns.
✔️ Integration with PHPUnit for seamless test execution.
📦 Installation
Install the test using Composer:
composer require --dev phpunit/phpunit lion/test
Usage Example
<?php declare(strict_types=1); namespace Tests; use Lion\Test\Test; use PHPUnit\Framework\Attributes\Test as Testing; class ExampleTest extends Test { protected function setUp(): void { $this->initReflection(new ExampleController()); } #[Testing] public function example(): void { $this->assertPropertyValue('id', 1); } }
📝 License
The test is open-sourced software licensed under the MIT License.