aesonus/test-lib

This package is abandoned and no longer maintained. No replacement package was suggested.

Defines a base test case with some nice methods

v4.01 2020-07-20 17:34 UTC

This package is auto-updated.

Last update: 2024-10-21 03:47:44 UTC


README

Build Status

Test Lib

This package contains a base class for testing purposes. It also includes phpunit version 8, and a virtual file system to mock the real file system.

Installation

composer require aesonus/test-lib

Usage

You can use this to assert that an array contains only the values in expected. The keys are completely disregarded.

Use inside your test cases

class TestCase extends Aesonus\TestLib\BaseTestCase
{
    public function testCase() {
        $this->assertArrayContainsValues($expected, $actual);
        $this->assertArrayContainsAtLeastValues($expected, $actual);
    }
}

Bugs

Feel free to email me with bug reports or open an issue