@@ -175,6 +175,7 @@ public function testAddStringDirectoryRecursive(): void
175175 $ this ->directory . 'fig_3.php ' ,
176176 $ this ->directory . 'prune_ripe.php ' ,
177177 SUPPORTPATH . 'Files/baker/banana.php ' ,
178+ SUPPORTPATH . 'Files/baker/fig_3.php.txt ' ,
178179 ];
179180
180181 $ files ->add (SUPPORTPATH . 'Files ' );
@@ -227,6 +228,7 @@ public function testAddArrayRecursive(): void
227228 $ this ->directory . 'fig_3.php ' ,
228229 $ this ->directory . 'prune_ripe.php ' ,
229230 SUPPORTPATH . 'Files/baker/banana.php ' ,
231+ SUPPORTPATH . 'Files/baker/fig_3.php.txt ' ,
230232 SUPPORTPATH . 'Log/Handlers/TestHandler.php ' ,
231233 ];
232234
@@ -392,6 +394,7 @@ public function testAddDirectoryRecursive(): void
392394 $ this ->directory . 'fig_3.php ' ,
393395 $ this ->directory . 'prune_ripe.php ' ,
394396 SUPPORTPATH . 'Files/baker/banana.php ' ,
397+ SUPPORTPATH . 'Files/baker/fig_3.php.txt ' ,
395398 ];
396399
397400 $ collection ->addDirectory (SUPPORTPATH . 'Files ' , true );
@@ -407,6 +410,7 @@ public function testAddDirectories(): void
407410 $ this ->directory . 'fig_3.php ' ,
408411 $ this ->directory . 'prune_ripe.php ' ,
409412 SUPPORTPATH . 'Files/baker/banana.php ' ,
413+ SUPPORTPATH . 'Files/baker/fig_3.php.txt ' ,
410414 ];
411415
412416 $ collection ->addDirectories ([
@@ -425,6 +429,7 @@ public function testAddDirectoriesRecursive(): void
425429 $ this ->directory . 'fig_3.php ' ,
426430 $ this ->directory . 'prune_ripe.php ' ,
427431 SUPPORTPATH . 'Files/baker/banana.php ' ,
432+ SUPPORTPATH . 'Files/baker/fig_3.php.txt ' ,
428433 SUPPORTPATH . 'Log/Handlers/TestHandler.php ' ,
429434 ];
430435
@@ -471,6 +476,7 @@ public function testRemovePatternPseudo(): void
471476 $ expected = [
472477 $ this ->directory . 'apple.php ' ,
473478 SUPPORTPATH . 'Files/baker/banana.php ' ,
479+ SUPPORTPATH . 'Files/baker/fig_3.php.txt ' ,
474480 ];
475481
476482 $ collection ->removePattern ('*_*.php ' );
@@ -485,6 +491,7 @@ public function testRemovePatternScope(): void
485491
486492 $ expected = [
487493 SUPPORTPATH . 'Files/baker/banana.php ' ,
494+ SUPPORTPATH . 'Files/baker/fig_3.php.txt ' ,
488495 ];
489496
490497 $ collection ->removePattern ('*.php ' , $ this ->directory );
@@ -512,6 +519,7 @@ public function testRetainPatternRegex(): void
512519 $ expected = [
513520 $ this ->directory . 'fig_3.php ' ,
514521 $ this ->directory . 'prune_ripe.php ' ,
522+ SUPPORTPATH . 'Files/baker/fig_3.php.txt ' ,
515523 ];
516524
517525 $ collection ->retainPattern ('#[a-z]+_.*# ' );
@@ -541,6 +549,7 @@ public function testRetainPatternScope(): void
541549 $ expected = [
542550 $ this ->directory . 'fig_3.php ' ,
543551 SUPPORTPATH . 'Files/baker/banana.php ' ,
552+ SUPPORTPATH . 'Files/baker/fig_3.php.txt ' ,
544553 ];
545554
546555 $ collection ->retainPattern ('*_?.php ' , $ this ->directory );
@@ -553,7 +562,7 @@ public function testCount(): void
553562 $ collection = new FileCollection ();
554563 $ collection ->addDirectory (SUPPORTPATH . 'Files ' , true );
555564
556- $ this ->assertCount (4 , $ collection );
565+ $ this ->assertCount (5 , $ collection );
557566 }
558567
559568 public function testIterable (): void
@@ -568,6 +577,6 @@ public function testIterable(): void
568577 $ count ++;
569578 }
570579
571- $ this ->assertSame ($ count , 4 );
580+ $ this ->assertSame ($ count , 5 );
572581 }
573582}
0 commit comments