Skip to content

library to implement testing with helpers that allow easy testing with PHPUnit.

License

Notifications You must be signed in to change notification settings

lion-packages/test

presentation-lion-packages

Latest Stable Version Total Downloads License PHP Version Require

🚀 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.

About

library to implement testing with helpers that allow easy testing with PHPUnit.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 10