You are viewing documentation for an outdated version. It is no longer supported!

Introduction

The Testing package offers various testing utilities, built on top of Codeceptionopen in new window and Orchestra Testbenchopen in new window. 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 Mockeryopen in new window and Fakeropen in new window.

Example

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