123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace JsonSchema\Tests;
- class EnumTest extends BaseTestCase
- {
- public function getInvalidTests()
- {
- return array(
- array(
- '{
- "value":"Morango"
- }',
- '{
- "type":"object",
- "properties":{
- "value":{"type":"string","enum":["Abacate","Manga","Pitanga"]}
- },
- "additionalProperties":false
- }'
- )
- );
- }
- public function getValidTests()
- {
- return array(
- array(
- '{
- "value":"Abacate"
- }',
- '{
- "type":"object",
- "properties":{
- "value":{"type":"string","enum":["Abacate","Manga","Pitanga"]}
- },
- "additionalProperties":false
- }'
- )
- );
- }
- }
|