1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace JsonSchema\Tests;
- class RequiredPropertyTest extends BaseTestCase
- {
- public function getInvalidTests()
- {
- return array(
- array(
- '{}',
- '{
- "type":"object",
- "properties":{
- "number":{"type":"string","required":true}
- }
- }'
- )
- );
- }
- public function getValidTests()
- {
- return array(
- array(
- '{
- "number": "1.4"
- }',
- '{
- "type":"object",
- "properties":{
- "number":{"type":"string","required":true}
- }
- }'
- ),
- array(
- '{}',
- '{
- "type":"object",
- "properties":{
- "number":{"type":"string"}
- }
- }'
- )
- );
- }
- }
|