Provides additional constraints for phpunit/phpunit.
Run
$ composer require ergebnis/phpunit-framework-constraintImport the Ergebnis\PHPUnit\Framework\Constraint\Provider trait into your test class:
<?php
declare(strict_types=1);
namespace Foo\Bar\Test\Unit;
use Ergebnis\PHPUnit\Framework\Constraint\Provider;
use PHPUnit\Framework\TestCase;
final class BazTest extends TestCase
{
use Provider;
}In addition to the assertions made available by extending from PHPUnit\Framework\TestCase,
the Provider trait provides the following assertions:
assertJsonStringSameAsJsonString(string $expected, string $actual, string $message = ''): void
Please have a look at CHANGELOG.md.
Please have a look at CONTRIBUTING.md.
Please have a look at CODE_OF_CONDUCT.md.
This package is licensed using the MIT License.
Please have a look at LICENSE.md.
📬 Subscribe to my list, and I will occasionally send you an email to let you know what I am working on.