Library base on phpunit to test your data with a fluent interface.

0.4.0 2018-08-13 00:27 UTC

This package is auto-updated.

Last update: 2023-03-05 23:13:55 UTC



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!