Fixed the testsuite

This commit is contained in:
Christophe Coevoet 2012-06-20 23:19:34 +02:00
parent cf36b414b1
commit 32b40deda8
3 changed files with 15 additions and 14 deletions

View File

@ -17,6 +17,7 @@ class Test
{ {
/** /**
* @Assert\MinLength("foo"); * @Assert\MinLength("foo");
* @Assert\NotBlank
*/ */
public $a; public $a;

View File

@ -64,6 +64,11 @@ _create test_
#### Parameters #### #### Parameters ####
c:
* type: boolean
* required: true
a: a:
* type: string * type: string
@ -73,12 +78,7 @@ a:
b: b:
* type: string * type: string
* required: true * required: false
c:
* type: boolean
* required: true
### `POST` /tests ### ### `POST` /tests ###
@ -87,6 +87,11 @@ _create test_
#### Parameters #### #### Parameters ####
c:
* type: boolean
* required: true
a: a:
* type: string * type: string
@ -96,12 +101,7 @@ a:
b: b:
* type: string * type: string
* required: true * required: false
c:
* type: boolean
* required: true

View File

@ -94,7 +94,7 @@ class SimpleFormatterTest extends WebTestCase
'b' => 'b' =>
array( array(
'dataType' => 'string', 'dataType' => 'string',
'required' => true, 'required' => false,
'description' => '', 'description' => '',
), ),
'c' => 'c' =>
@ -124,7 +124,7 @@ class SimpleFormatterTest extends WebTestCase
'b' => 'b' =>
array( array(
'dataType' => 'string', 'dataType' => 'string',
'required' => true, 'required' => false,
'description' => '', 'description' => '',
), ),
'c' => 'c' =>