puzzle/assert

Assert for PHP Unit

1.2.0 2017-07-11 15:09 UTC

This package is auto-updated.

Last update: 2020-06-05 09:08:39 UTC


README

Assertions for PHPUnit

QA

SensioLabsInsight

Service Result
Travis CI (PHP 5.6 .. 7.1) Build Status
Scrutinizer Scrutinizer Code Quality
Code coverage codecov
Packagist Latest Stable Version Total Downloads

Example

<?php

class PonyTest extends \PHPUnit_Framework_TestCase
{
    use \Puzzle\Assert\ArrayRelated;
    
    public function testRetrieveUnicorn()
    {
        // ...
        $this->assertSameArrayExceptOrder([1, 2, 3, 4], $result);
    }
}

Changelog

No BC breaks yet