Skip to content

Commit

Permalink
Add test with Windows path
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Apr 1, 2024
1 parent 4d231f1 commit 93b9b89
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions moodle/Tests/Sniffs/Commenting/ValidTagsSniffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ public static function provider(): array {
],
'warnings' => [],
],
'Unit test file - Windows paths' => [
'fixturePath' => 'filter\synhi\tests\toolbox_test.php',
'fixtureSource' => 'unit_test',
'errors' => [
12 => 'Incorrect docblock tag "@returns". Should be "@return"',
13 => 'Invalid docblock tag "@void"',
58 => 'Invalid docblock tag "@small"',
59 => 'Invalid docblock tag "@zzzing"',
60 => 'Invalid docblock tag "@inheritdoc"',
],
'warnings' => [],
],
'Standard file' => [
'fixturePath' => 'lib/classes/example.php',
'fixtureSource' => 'general',
Expand Down

0 comments on commit 93b9b89

Please sign in to comment.