public function DocParserTest::getAnnotationVarTypeArrayProviderInvalid

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/DocParserTest.php, line 470

Class

DocParserTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function getAnnotationVarTypeArrayProviderInvalid() {

  //({attribute name}, {type declared type}, {attribute value} , {given type or class})
  return array(
    array(
      'arrayOfIntegers',
      'integer',
      'true',
      'boolean',
    ),
    array(
      'arrayOfIntegers',
      'integer',
      'false',
      'boolean',
    ),
    array(
      'arrayOfIntegers',
      'integer',
      '{true,true}',
      'boolean',
    ),
    array(
      'arrayOfIntegers',
      'integer',
      '{1,true}',
      'boolean',
    ),
    array(
      'arrayOfIntegers',
      'integer',
      '{1,2,1.2}',
      'double',
    ),
    array(
      'arrayOfIntegers',
      'integer',
      '{1,2,"str"}',
      'string',
    ),
    array(
      'arrayOfAnnotations',
      'Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationTargetAll',
      'true',
      'boolean',
    ),
    array(
      'arrayOfAnnotations',
      'Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationTargetAll',
      'false',
      'boolean',
    ),
    array(
      'arrayOfAnnotations',
      'Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationTargetAll',
      '{@Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationTargetAll,true}',
      'boolean',
    ),
    array(
      'arrayOfAnnotations',
      'Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationTargetAll',
      '{@Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationTargetAll,true}',
      'boolean',
    ),
    array(
      'arrayOfAnnotations',
      'Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationTargetAll',
      '{@Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationTargetAll,1.2}',
      'double',
    ),
    array(
      'arrayOfAnnotations',
      'Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationTargetAll',
      '{@Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationTargetAll,@AnnotationExtendsAnnotationTargetAll,"str"}',
      'string',
    ),
  );
}