lion / test
Library to implement testing with helpers that allow easy testing with PHPUnit
Installs: 5 925
Dependents: 15
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
- lion/exceptions: ^2.0
- overtrue/phplint: ^9.5
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^12.0
- squizlabs/php_codesniffer: ^3.11
This package is auto-updated.
Last update: 2025-04-22 13:02:05 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.