
🚀 Lion-Test library to implement testing with helpers that allow easy testing with PHPUnit.
✔️ Easy-to-use assertions beyond the default PHPUnit set.
✔️ Custom helper functions for common test patterns.
✔️ Integration with PHPUnit for seamless test execution.
Install the test using Composer:
composer require --dev phpunit/phpunit lion/test<?phpdeclare(strict_types=1);
namespaceTests;
useLion\Test\Test;
usePHPUnit\Framework\Attributes\TestasTesting;
class ExampleTest extends Test
{
protectedfunctionsetUp(): void
{
$this->initReflection(newExampleController());
}
#[Testing]
publicfunctionexample(): void
{
$this->assertPropertyValue('id', 1);
}
}The test is open-sourced software licensed under the MIT License.