aedart/athenaeum-testing

Testing utilities built on top of Orchestra Testbench and Codeception

6.2.0 2022-04-27 10:57 UTC

README

The Testing package offers various testing utilities, built on top of Codeception and Orchestra Testbench. It allows you to test Laravel specific components, Laravel's application and offers a few utilities for testing the Athenaeum Core Application.

Lastly, this package also comes with Mockery and Faker.

Exaxmple

use \Aedart\Testing\TestCases\UnitTestCase;

class FuelConsumptionTest extends UnitTestCase
{
    /**
     * @test 
     */
    public function calculatesFuel()
    {
        $faker = $this->getFaker();
        $kilometers = $faker->numberBetween(1, 25);

        $consumption = FuelConsumption::calculate($kilometers);
        
        // ... remaining not shown ...
    }
}

Documentation

Please read the official documentation for additional information.

Repository

The mono repository is located at github.com/aedart/athenaeum

Versioning

This package follows Semantic Versioning 2.0.0

License

BSD-3-Clause, Read the LICENSE file included in this package