Merge pull request #27 from stof/fix_testsuite

Fixed the bootstrap of the testsuite
This commit is contained in:
William Durand 2012-06-20 14:24:41 -07:00
commit c127a1c4bf
4 changed files with 19 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' =>

View File

@ -12,3 +12,7 @@ if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php')) && (!$loader
'curl -s http://getcomposer.org/installer | php'.PHP_EOL. 'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
'php composer.phar install'.PHP_EOL); 'php composer.phar install'.PHP_EOL);
} }
if (class_exists('Doctrine\Common\Annotations\AnnotationRegistry')) {
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
}