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\NotBlank
*/
public $a;

View File

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

View File

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

View File

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