public function MethodTagTest::getTestSignatures in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlock/Tag/MethodTagTest.php \phpDocumentor\Reflection\DocBlock\Tag\MethodTagTest::getTestSignatures()
File
- vendor/
phpdocumentor/ reflection-docblock/ tests/ phpDocumentor/ Reflection/ DocBlock/ Tag/ MethodTagTest.php, line 72
Class
- MethodTagTest
- Test class for \phpDocumentor\Reflection\DocBlock\Tag\MethodTag
Namespace
phpDocumentor\Reflection\DocBlock\TagCode
public function getTestSignatures() {
return array(
// TODO: Verify this case
// array(
// 'foo',
// false, 'foo', '', false, 0, ''
// ),
array(
'foo()',
true,
'foo',
'void',
false,
0,
'',
),
array(
'foo() description',
true,
'foo',
'void',
false,
0,
'description',
),
array(
'int foo()',
true,
'foo',
'int',
false,
0,
'',
),
array(
'int foo() description',
true,
'foo',
'int',
false,
0,
'description',
),
array(
'int foo($a, $b)',
true,
'foo',
'int',
false,
2,
'',
),
array(
'int foo() foo(int $a, int $b)',
true,
'foo',
'int',
false,
2,
'',
),
array(
'int foo(int $a, int $b)',
true,
'foo',
'int',
false,
2,
'',
),
array(
'null|int foo(int $a, int $b)',
true,
'foo',
'null|int',
false,
2,
'',
),
array(
'int foo(null|int $a, int $b)',
true,
'foo',
'int',
false,
2,
'',
),
array(
'\\Exception foo() foo(Exception $a, Exception $b)',
true,
'foo',
'\\Exception',
false,
2,
'',
),
array(
'int foo() foo(Exception $a, Exception $b) description',
true,
'foo',
'int',
false,
2,
'description',
),
array(
'int foo() foo(\\Exception $a, \\Exception $b) description',
true,
'foo',
'int',
false,
2,
'description',
),
array(
'void()',
true,
'void',
'void',
false,
0,
'',
),
array(
'static foo()',
true,
'foo',
'static',
false,
0,
'',
),
array(
'static void foo()',
true,
'foo',
'void',
true,
0,
'',
),
array(
'static static foo()',
true,
'foo',
'static',
true,
0,
'',
),
);
}