12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace JsonSchema\Tests;
- class RequireTest extends BaseTestCase
- {
- public function getInvalidTests()
- {
- return array(
- array(
- '{
- "state":"DF"
- }',
- '{
- "type":"object",
- "properties":{
- "state":{"type":"string","requires":"city"},
- "city":{"type":"string"}
- }
- }'
- )
- );
- }
- public function getValidTests()
- {
- return array(
- array(
- '{
- "state":"DF",
- "city":"Brasília"
- }',
- '{
- "type":"object",
- "properties":{
- "state":{"type":"string","requires":"city"},
- "city":{"type":"string"}
- }
- }'
- )
- );
- }
- }
|