You are here

public function CollectionTest::provideTypesToExpand in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlock/Type/CollectionTest.php \phpDocumentor\Reflection\DocBlock\Type\CollectionTest::provideTypesToExpand()

Returns the types and their expected values to test the retrieval of types.

Parameters

string $method Name of the method consuming this data provider.:

string $namespace Name of the namespace to user as basis.:

Return value

string[]

1 call to CollectionTest::provideTypesToExpand()
CollectionTest::provideTypesToExpandWithoutNamespace in vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlock/Type/CollectionTest.php
Returns the types and their expected values to test the retrieval of types when no namespace is available.

File

vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlock/Type/CollectionTest.php, line 147

Class

CollectionTest
Test class for \phpDocumentor\Reflection\DocBlock\Type\Collection

Namespace

phpDocumentor\Reflection\DocBlock\Type

Code

public function provideTypesToExpand($method, $namespace = '\\My\\Space\\') {
  return array(
    array(
      '',
      array(),
    ),
    array(
      ' ',
      array(),
    ),
    array(
      'int',
      array(
        'int',
      ),
    ),
    array(
      'int ',
      array(
        'int',
      ),
    ),
    array(
      'string',
      array(
        'string',
      ),
    ),
    array(
      'DocBlock',
      array(
        $namespace . 'DocBlock',
      ),
    ),
    array(
      'DocBlock[]',
      array(
        $namespace . 'DocBlock[]',
      ),
    ),
    array(
      ' DocBlock ',
      array(
        $namespace . 'DocBlock',
      ),
    ),
    array(
      '\\My\\Space\\DocBlock',
      array(
        '\\My\\Space\\DocBlock',
      ),
    ),
    array(
      'Alias\\DocBlock',
      array(
        '\\My\\Space\\Aliasing\\DocBlock',
      ),
    ),
    array(
      'DocBlock|Tag',
      array(
        $namespace . 'DocBlock',
        $namespace . 'Tag',
      ),
    ),
    array(
      'DocBlock|null',
      array(
        $namespace . 'DocBlock',
        'null',
      ),
    ),
    array(
      '\\My\\Space\\DocBlock|Tag',
      array(
        '\\My\\Space\\DocBlock',
        $namespace . 'Tag',
      ),
    ),
    array(
      'DocBlock[]|null',
      array(
        $namespace . 'DocBlock[]',
        'null',
      ),
    ),
    array(
      'DocBlock[]|int[]',
      array(
        $namespace . 'DocBlock[]',
        'int[]',
      ),
    ),
  );
}