Registry / testing / helmich-phpunit-json-assert

helmich-phpunit-json-assert

JSON →
library3.5.5phppackagistunverified

PHPUnit assertions for validating JSON documents.

composer require helmich/phpunit-json-assert
INSTALL
IMPORT
SIG · HELMICH-PHPUNIT-JS
H
helmich-phpunit-json-assert
testingphpv3.5.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JsonAssertions
use Helmich\JsonAssert\JsonAssertions;

Assert JSON document structure in PHPUnit tests

use Helmich\JsonAssert\JsonAssertions; class MyTest extends \PHPUnit\Framework\TestCase { use JsonAssertions; public function testJson() { $this->assertJsonDocumentMatches('{"foo":"bar"}', [ '$.foo' => 'bar' ]); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.5.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
helmich-phpunit-json-assert — pip install helmich-phpunit-json-assert · libregistry