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

Test Cases

Base abstraction classes for your test-classes can inherit from.

UnitTestCase

A basic unit test-case that setup Fakeropen in new window, before each test and closes Mockeryopen in new window after each test.

use \Aedart\Testing\TestCases\UnitTestCase;

class MyTest extends UnitTestCase
{
    /**
     * @test
     */
    public function isFakerAvailable()
    {
        $value = $this->faker->address;

        $this->assertNotEmpty($value);
    }
}