2017 © Pedro Peláez
 

library phpunit-jsonschema-assertions

image

hskrasek/phpunit-jsonschema-assertions

  • Friday, February 16, 2018
  • by hskrasek
  • Repository
  • 2 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHPUnit JSON Schema Assertions

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

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., (*2)

Install

Via Composer, (*3)

``` bash $ composer require hskrasek/phpunit-jsonschema-assertions, (*4)


## Usage ``` php <?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., (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*7)

Security

If you discover any security related issues, please email hunterskrasek@me.com instead of using the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions