Skip to content

Commit f02eca3

Browse files
committed
Add more fixture files and get 100% coverage again.
1 parent 9cf2028 commit f02eca3

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

src/NsDirUtil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private static function doIterateRecursively(string $dir, string $terminatedName
9595
}
9696
else {
9797
if (!is_dir($path)) {
98-
continue;
98+
continue; // @codeCoverageIgnore
9999
}
100100
if (!preg_match(self::CLASS_NAME_REGEX, $candidate)) {
101101
continue;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
// This file should be ignored because it is in a badly named directory.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
// This file should be ignored in scans.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
// This file should be ignored because it is in a badly named directory.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This file should be ignored because it does not end with '.php'.

0 commit comments

Comments
 (0)