Skip to content

Commit

Permalink
Merge pull request #1 from atoum/release
Browse files Browse the repository at this point in the history
Prepare for first release
  • Loading branch information
jubianchi committed Dec 1, 2014
2 parents ddc4e24 + 852e664 commit 1282a85
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 32 deletions.
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# atoum/json-schema-extension
# atoum/json-schema-extension [![Build Status](https://travis-ci.org/atoum/json-schema-extension.svg?branch=master)](https://travis-ci.org/atoum/json-schema-extension)

![atoum](http://downloads.atoum.org/images/logo.png)

Expand All @@ -8,19 +8,8 @@ Install extension using [composer](https://getcomposer.org):

```json
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/jubianchi/atoum"
},
{
"type": "vcs",
"url": "https://github.com/jubianchi/json-schema-extension"
}
],
"require-dev": {
"atoum/atoum": "dev-extension",
"atoum/bdd-extension": "dev-master"
"atoum/json-schema-extension": "~1.0"
},
}

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "atoum/",
"name": "atoum/json-schema-extension",
"type": "library",
"description": "JSON Schema extension for atoum, the simple modern and intuitive unit testing framework for PHP 5.3+",
"keywords": ["TDD","atoum","test","unit testing","json"],
Expand All @@ -12,7 +12,7 @@
}
],
"require": {
"atoum/atoum": "dev-extension",
"atoum/atoum": "~1.0",
"justinrainbow/json-schema": "*"
},
"require-dev": {
Expand Down
34 changes: 17 additions & 17 deletions tests/units/classes/asserters/json.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,22 @@ protected function testValidatesJsonArrayGrammarDataProvider()
return $this->sampleMany($this->realdom->grammar(__DIR__ . '/../../../resources/json/array.pp'));
}

public function testNotValidatesJsonArrayGrammar($json)
{
$this
->assert($json)
->if($asserter = new testedClass())
->then
->object($asserter->setWith($json))->isIdenticalTo($asserter)
->exception(function() use ($asserter) {
$asserter->validates('{"title": "test", "type": "array"}');
}
)
;
}
public function testNotValidatesJsonArrayGrammar($json)
{
$this
->assert($json)
->if($asserter = new testedClass())
->then
->object($asserter->setWith($json))->isIdenticalTo($asserter)
->exception(function() use ($asserter) {
$asserter->validates('{"title": "test", "type": "array"}');
}
)
;
}

protected function testNotValidatesJsonArrayGrammarDataProvider()
{
return $this->sampleMany($this->realdom->grammar(__DIR__ . '/../../../resources/json/noarray.pp'));
}
protected function testNotValidatesJsonArrayGrammarDataProvider()
{
return $this->sampleMany($this->realdom->grammar(__DIR__ . '/../../../resources/json/noarray.pp'));
}
}

0 comments on commit 1282a85

Please sign in to comment.