Skip to content

Commit 67b5756

Browse files
authored
test(DocComment): Add camelCase inheritDoc example to test file (#2904801)
1 parent 65dd500 commit 67b5756

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

tests/Drupal/Commenting/DocCommentUnitTest.inc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,12 @@ function test14(array $matches, array $sub_key, $to) {
125125
/**
126126
* {@inheritdoc}
127127
*/
128-
function test15_this_inheritdoc_is_correct();
128+
function test15_lower_case_inheritdoc();
129+
130+
/**
131+
* {@inheritDoc}
132+
*/
133+
function test15_camel_case_inheritdoc();
129134

130135
/**
131136
* @inheritdoc

tests/Drupal/Commenting/DocCommentUnitTest.inc.fixed

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,12 @@ function test14(array $matches, array $sub_key, $to) {
134134
/**
135135
* {@inheritdoc}
136136
*/
137-
function test15_this_inheritdoc_is_correct();
137+
function test15_lower_case_inheritdoc();
138+
139+
/**
140+
* {@inheritDoc}
141+
*/
142+
function test15_camel_case_inheritdoc();
138143

139144
/**
140145
* {@inheritdoc}

tests/Drupal/Commenting/DocCommentUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ protected function getErrorList(string $testFile): array
3333
66 => 1,
3434
100 => 4,
3535
101 => 1,
36-
131 => 1,
3736
136 => 1,
37+
141 => 1,
3838
];
3939

4040
case 'DocCommentUnitTest.1.inc':

0 commit comments

Comments
 (0)