PHP code example of clippings / phpunit-extensions

1. Go to this page and download the library: Download clippings/phpunit-extensions library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

clippings / phpunit-extensions example snippets


use CL\PHPUnitExtensions\Constraint\ConstrainArray;

class ExampleTest extends PHPUnit_Framework_TestCase
{
    use ConstrainArrayTrait;

    public function testTest()
    {
        $this->assertArrayConstrained(
            array('test' => $this->equalTo('12')),
            array('test' => 12)
        );
    }
}