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
Requires
- php: ^7.2
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^8 | ^9
README
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