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 7
7
* Time: 21:40
8
8
*/
9
9
10
- use Toolkit \FsUtil \ModifyWatcher ;
10
+ use Toolkit \FsUtil \Extra \ ModifyWatcher ;
11
11
12
- require dirname (__DIR__ ) . '/test/boot .php ' ;
12
+ require dirname (__DIR__ ) . '/test/bootstrap.php .php ' ;
13
13
14
14
$ mw = new ModifyWatcher ();
15
15
$ ret = $ mw
Original file line number Diff line number Diff line change 8
8
9
9
use Toolkit \FsUtil \FileFinder ;
10
10
11
- require dirname (__DIR__ ) . '/test/boot .php ' ;
11
+ require dirname (__DIR__ ) . '/test/bootstrap .php ' ;
12
12
13
13
// var_dump(fnmatch('.*', ".gitkeep"));die;
14
14
// 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
48
48
$ this ->assertTrue (FS ::isInclude ('./abc.php ' , []));
49
49
$ this ->assertTrue (FS ::isInclude ('./abc.php ' , ['* ' ]));
50
50
$ this ->assertTrue (FS ::isInclude ('./abc.php ' , ['*.php ' ]));
51
+ $ this ->assertTrue (FS ::isInclude ('path/to/abc.php ' , ['*.php ' ]));
51
52
$ this ->assertFalse (FS ::isInclude ('./abc.php ' , ['*.xml ' ]));
52
53
53
54
$ this ->assertFalse (FS ::isExclude ('./abc.php ' , []));
54
55
$ this ->assertTrue (FS ::isExclude ('./abc.php ' , ['* ' ]));
55
56
$ this ->assertTrue (FS ::isExclude ('./abc.php ' , ['*.php ' ]));
57
+ $ this ->assertTrue (FS ::isExclude ('path/to/abc.php ' , ['*.php ' ]));
56
58
$ this ->assertFalse (FS ::isExclude ('./abc.php ' , ['*.yml ' ]));
57
59
}
58
60
You can’t perform that action at this time.
0 commit comments