Php Data Tester

This library is a wrapper around PHPUnit Assert class to be able to use a fluent interface on the data you want to test.

The library can be install via Composer/Packagist.

Here is a quick example of how to use it in a PHPUnit TestCase:


namespace Your\Project\Name;

use PHPUnit\Framework\TestCase;
use Draw\DataTester\Tester;

class SimpleTest extends TestCase
    public function test()
        $data = [
          'key1' => 'value1',
          'key2' => (object)['toto' => 'value']

        $tester = new Tester($data);

There is a lot more features available, just Read the Docs!