Skip to content

Commit

Permalink
Merge pull request jsonrainbow#100 from alexmmm/fix-basic-types-test
Browse files Browse the repository at this point in the history
minor fix of BasicTypeTests
  • Loading branch information
justinrainbow committed Aug 25, 2014
2 parents c7aca89 + e4721bf commit ac8a330
Showing 1 changed file with 73 additions and 13 deletions.
86 changes: 73 additions & 13 deletions tests/JsonSchema/Tests/Constraints/BasicTypesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,83 @@ public function getInvalidTests()
return array(
array(
'{
"string":null,
"number":null,
"integer":null,
"boolean":null,
"object":null,
"array":null,
"string":null
}',
'{
"type":"object",
"properties": {
"string":{"type":"string"}
},
"additionalProperties":false
}'
),
array(
'{
"number":null
}',
'{
"type":"object",
"properties": {
"number":{"type":"number"}
},
"additionalProperties":false
}'
),
array(
'{
"integer":null
}',
'{
"type":"object",
"properties": {
"integer":{"type":"integer"}
},
"additionalProperties":false
}'
),
array(
'{
"boolean":null
}',
'{
"type":"object",
"properties": {
"boolean":{"type":"boolean"}
},
"additionalProperties":false
}'
),
array(
'{
"object":null
}',
'{
"type":"object",
"properties": {
"object":{"type":"object"}
},
"additionalProperties":false
}'
),
array(
'{
"array":null
}',
'{
"type":"object",
"properties": {
"array":{"type":"array"}
},
"additionalProperties":false
}'
),
array(
'{
"null":1
}',
'{
"type":"object",
"properties":{
"string":{"type":"string"},
"number":{"type":"number"},
"integer":{"type":"integer"},
"boolean":{"type":"boolean"},
"object":{"type":"object"},
"array":{"type":"array"},
"properties": {
"null":{"type":"null"}
},
"additionalProperties":false
Expand Down

0 comments on commit ac8a330

Please sign in to comment.