🚀 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
<?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);
}
}
The test is open-sourced software licensed under the MIT License.