File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 77 * Time: 21:40
88 */
99
10- use Toolkit \FsUtil \ModifyWatcher ;
10+ use Toolkit \FsUtil \Extra \ ModifyWatcher ;
1111
12- require dirname (__DIR__ ) . '/test/boot .php ' ;
12+ require dirname (__DIR__ ) . '/test/bootstrap.php .php ' ;
1313
1414$ mw = new ModifyWatcher ();
1515$ ret = $ mw
Original file line number Diff line number Diff line change 88
99use Toolkit \FsUtil \FileFinder ;
1010
11- require dirname (__DIR__ ) . '/test/boot .php ' ;
11+ require dirname (__DIR__ ) . '/test/bootstrap .php ' ;
1212
1313// var_dump(fnmatch('.*', ".gitkeep"));die;
1414// var_dump(glob(__DIR__ . '/{t,T}ests', GLOB_BRACE | GLOB_ONLYDIR));
Original file line number Diff line number Diff line change @@ -48,11 +48,13 @@ public function testIsExclude_isInclude(): void
4848 $ this ->assertTrue (FS ::isInclude ('./abc.php ' , []));
4949 $ this ->assertTrue (FS ::isInclude ('./abc.php ' , ['* ' ]));
5050 $ this ->assertTrue (FS ::isInclude ('./abc.php ' , ['*.php ' ]));
51+ $ this ->assertTrue (FS ::isInclude ('path/to/abc.php ' , ['*.php ' ]));
5152 $ this ->assertFalse (FS ::isInclude ('./abc.php ' , ['*.xml ' ]));
5253
5354 $ this ->assertFalse (FS ::isExclude ('./abc.php ' , []));
5455 $ this ->assertTrue (FS ::isExclude ('./abc.php ' , ['* ' ]));
5556 $ this ->assertTrue (FS ::isExclude ('./abc.php ' , ['*.php ' ]));
57+ $ this ->assertTrue (FS ::isExclude ('path/to/abc.php ' , ['*.php ' ]));
5658 $ this ->assertFalse (FS ::isExclude ('./abc.php ' , ['*.yml ' ]));
5759 }
5860
You can’t perform that action at this time.
0 commit comments