lion / test
Library to implement testing with helpers that allow easy testing with PHPUnit
Installs: 6 747
Dependents: 14
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: >=8.4
- ext-gd: *
Requires (Dev)
- infection/infection: ^0.29.14 || ^0.31.0
- lion/exceptions: ^2.0
- overtrue/phplint: ^9.5
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^12.0
- squizlabs/php_codesniffer: ^3.11 || ^4.0
- 3.x-dev
- v3.11.0
- v3.10.0
- v3.9.0
- v3.8.0
- v3.7.0
- v3.6.0
- v3.5.0
- v3.4.0
- v3.3.0
- v3.2.0
- v3.1.0
- v3.0.0
- 2.x-dev
- v2.2.0
- v2.1.0
- v2.0.0
- 1.x-dev
- v1.6.0
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.0
- dev-main
- dev-Sleon4-patch-1
- dev-support
- dev-dependabot/composer/squizlabs/php_codesniffer-tw-3.11or-tw-4.0
- dev-dependabot/composer/infection/infection-tw-0.29.14or-tw-0.31.0
This package is auto-updated.
Last update: 2025-10-01 21:33:45 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.