PHP code example of aedart / athenaeum-testing

1. Go to this page and download the library: Download aedart/athenaeum-testing library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aedart / athenaeum-testing example snippets


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