hskrasek / phpunit-jsonschema-assertions
0.1.0
2018-01-10 21:34 UTC
Requires
- php: ^7.1
- league/json-guard: ^1.0
- league/json-reference: ^1.0
- phpunit/phpunit: ^6.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-02-25 01:13:17 UTC
README
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
Install
Via Composer
$ composer require hskrasek/phpunit-jsonschema-assertions
Usage
<?php use HSkrasek\JsonSchema\SchemaAssertions; use PHPUnit\Framework\TestCase; class JsonTest extends TestCase { use SchemaAssertions; public function setUp() { parent::setUp(); $this->setupSchemaAssertions(); } public function assertMyJsonApiMatchesSchema() { $this->assertJsonMatchesSchema($json, $pathToSchema); } }
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email hunterskrasek@me.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.