1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- namespace JsonSchema\Tests;
- class MinimumMaximumTest extends BaseTestCase
- {
- public function getInvalidTests()
- {
- return array(
- array(
- '{
- "value":2
- }',
- '{
- "type":"object",
- "properties":{
- "value":{"type":"integer","minimum":4}
- }
- }'
- ),
- array(
- '{
- "value":16
- }',
- '{
- "type":"object",
- "properties":{
- "value":{"type":"integer","maximum":8}
- }
- }'
- )
- );
- }
- public function getValidTests()
- {
- return array(
- array(
- '{
- "value":6
- }',
- '{
- "type":"object",
- "properties":{
- "value":{"type":"integer","minimum":4}
- }
- }'
- ),
- array(
- '{
- "value":6
- }',
- '{
- "type":"object",
- "properties":{
- "value":{"type":"integer","maximum":8}
- }
- }'
- )
- );
- }
- }
|