Skip to content

Commit ace4e57

Browse files
committed
Update test cases
1 parent 43096e6 commit ace4e57

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

tests/Sniffs/CompositeCodeElementSniffTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,13 @@ public function dataProcess(): array
7777

7878
// #3
7979
$dataSets[] = [
80-
[],
80+
[
81+
'useReflection' => true,
82+
],
8183
__DIR__.'/fixtures/Class3.php',
8284
[
8385
'007 Add type declaration for parameter $arg1 or create PHPDoc with type hint',
86+
'022 Missing @inheritDoc tag',
8487
'027 Add "null" type hint in PHPDoc for parameter $arg1',
8588
'042 Add "null" type hint in PHPDoc for return value',
8689
]

tests/Sniffs/fixtures/Class3.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,27 @@ public function func4(): int
4444
public function func5(): ?int
4545
{
4646
}
47+
48+
/**
49+
* Description
50+
* @return int
51+
*/
52+
public function func6(): int
53+
{
54+
}
55+
56+
57+
/**
58+
* @param int $param1 description
59+
*/
60+
public function func7(int $param1): void
61+
{
62+
}
63+
64+
/**
65+
* @return int|string
66+
*/
67+
public function func8(): int
68+
{
69+
}
4770
}

0 commit comments

Comments
 (0)