Skip to content

puzzle-org/assert

Repository files navigation

Puzzle Assert PHP >= 5.6

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