Skip to content

Commit 926bb73

Browse files
Move test cases
1 parent fcd6982 commit 926bb73

File tree

3 files changed

+38
-20
lines changed

3 files changed

+38
-20
lines changed

tests/Drupal/WhiteSpace/ScopeIndentUnitTest.inc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,3 +203,22 @@ $has_index_value_scalar['foo']['value'] = array (
203203
EXPECTED
204204
],
205205
];
206+
207+
/**
208+
* Test PHP attributes.
209+
*/
210+
class TestPhpAttributes {
211+
212+
/**
213+
* Bar property.
214+
*/
215+
#[NotBlank]
216+
private bool $bar;
217+
218+
/**
219+
* Tests method with PHP attribute and docblock.
220+
*/
221+
#[\ReturnTypeWillChange]
222+
public function attributes(): void {}
223+
224+
}

tests/Drupal/WhiteSpace/ScopeIndentUnitTest.inc.fixed

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,22 @@ $has_index_value_scalar['foo']['value'] = array (
215215
EXPECTED
216216
],
217217
];
218+
219+
/**
220+
* Test PHP attributes.
221+
*/
222+
class TestPhpAttributes {
223+
224+
/**
225+
* Bar property.
226+
*/
227+
#[NotBlank]
228+
private bool $bar;
229+
230+
/**
231+
* Tests method with PHP attribute and docblock.
232+
*/
233+
#[\ReturnTypeWillChange]
234+
public function attributes(): void {}
235+
236+
}

tests/Drupal/bad/bad.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -838,26 +838,6 @@ function test28() {
838838
enum aBad_NameForAnEnum {
839839
}
840840

841-
/**
842-
* Test PHP attributes.
843-
*/
844-
class TestPhpAttributes {
845-
846-
/**
847-
* Bar property.
848-
*/
849-
#[NotBlank]
850-
private bool $bar;
851-
852-
/**
853-
* Tests method with PHP attribute and docblock.
854-
*/
855-
#[\ReturnTypeWillChange]
856-
public function attributes(): void {
857-
}
858-
859-
}
860-
861841
/**
862842
* A test class.
863843
*/

0 commit comments

Comments
 (0)