2017 © Pedro Peláez
 

library json-schema-extension

JSON Schema extension for atoum, the simple modern and intuitive unit testing framework for PHP 5.3+

image

atoum/json-schema-extension

JSON Schema extension for atoum, the simple modern and intuitive unit testing framework for PHP 5.3+

  • Monday, September 25, 2017
  • by agallou
  • Repository
  • 9 Watchers
  • 9 Stars
  • 1,335 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 7 Versions
  • 2 % Grown

The README.md

atoum/json-schema-extension Build Status

This extension validates your JSON strings against a JSON-Schema specification., (*1)

It also checks if a string a valid JSON string., (*2)

Example

<?php
namespace jubianchi\example\json;

use atoum;

class foo extends atoum\test
{
    public function testIsJson()
    {
        $this
            ->given($string = '{"foo": "bar"}')
            ->then
                ->json($string)
        ;
    }

    public function testValidatesSchema()
    {
        $this
            ->given($string = '["foo", "bar"]')
            ->then
                ->json($string)->validates('{"title": "test", "type": "array"}')
                ->json($string)->validates('/path/to/json.schema')
        ;
    }
}

Install it

Install extension using composer:, (*3)

composer require --dev atoum/json-schema-extension

Enable the extension using atoum configuration file:, (*4)

<?php

// .atoum.php

require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

use mageekguy\atoum\jsonSchema;

$runner->addExtension(new jsonSchema\extension($script));

License

json-schema-extension is released under the BSD-3-Clause License. See the bundled LICENSE file for details., (*5)

atoum, (*6)

The Versions

25/09 2017

dev-master

9999999-dev http://www.atoum.org

JSON Schema extension for atoum, the simple modern and intuitive unit testing framework for PHP 5.3+

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test json unit testing atoum atoum-extension

25/09 2017

2.1.0

2.1.0.0 http://www.atoum.org

JSON Schema extension for atoum, the simple modern and intuitive unit testing framework for PHP 5.3+

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test json unit testing atoum atoum-extension

30/08 2017

2.0

2.0.0.0 http://www.atoum.org

JSON Schema extension for atoum, the simple modern and intuitive unit testing framework for PHP 5.3+

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test json unit testing atoum atoum-extension

13/11 2016

1.2

1.2.0.0 http://www.atoum.org

JSON Schema extension for atoum, the simple modern and intuitive unit testing framework for PHP 5.3+

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test json unit testing atoum atoum-extension

13/11 2016

dev-improve-ci

dev-improve-ci http://www.atoum.org

JSON Schema extension for atoum, the simple modern and intuitive unit testing framework for PHP 5.3+

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test json unit testing atoum atoum-extension

21/02 2015

1.1.0

1.1.0.0 http://www.atoum.org

JSON Schema extension for atoum, the simple modern and intuitive unit testing framework for PHP 5.3+

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test json unit testing atoum

01/12 2014

1.0.0

1.0.0.0 http://www.atoum.org

JSON Schema extension for atoum, the simple modern and intuitive unit testing framework for PHP 5.3+

  Sources   Download

BSD

The Requires

 

The Development Requires

by Avatar jubianchi

tdd test json unit testing atoum