@@ -267,11 +267,13 @@ public function testRemovingADirectoryFromTheWhitelistWorks()
267
267
*/
268
268
public function testIsFile ()
269
269
{
270
- $ this ->assertfalse ($ this ->filter ->isFile ('eval() \'d code ' ));
271
- $ this ->assertfalse ($ this ->filter ->isFile ('runtime-created function ' ));
272
- $ this ->assertfalse ($ this ->filter ->isFile ('assert code ' ));
273
- $ this ->assertfalse ($ this ->filter ->isFile ('regexp code ' ));
274
- $ this ->asserttrue ($ this ->filter ->isFile ('filename ' ));
270
+ $ this ->assertFalse ($ this ->filter ->isFile ('vfs://root/a/path ' ));
271
+ $ this ->assertFalse ($ this ->filter ->isFile ('xdebug://debug-eval ' ));
272
+ $ this ->assertFalse ($ this ->filter ->isFile ('eval() \'d code ' ));
273
+ $ this ->assertFalse ($ this ->filter ->isFile ('runtime-created function ' ));
274
+ $ this ->assertFalse ($ this ->filter ->isFile ('assert code ' ));
275
+ $ this ->assertFalse ($ this ->filter ->isFile ('regexp code ' ));
276
+ $ this ->assertTrue ($ this ->filter ->isFile ('filename ' ));
275
277
}
276
278
277
279
/**
@@ -280,7 +282,7 @@ public function testIsFile()
280
282
public function testBlacklistedFileIsFiltered ()
281
283
{
282
284
$ this ->filter ->addFileToBlacklist ($ this ->files [0 ]);
283
- $ this ->asserttrue ($ this ->filter ->isFiltered ($ this ->files [0 ]));
285
+ $ this ->assertTrue ($ this ->filter ->isFiltered ($ this ->files [0 ]));
284
286
}
285
287
286
288
/**
@@ -289,7 +291,7 @@ public function testBlacklistedFileIsFiltered()
289
291
public function testWhitelistedFileIsNotFiltered ()
290
292
{
291
293
$ this ->filter ->addFileToWhitelist ($ this ->files [0 ]);
292
- $ this ->assertfalse ($ this ->filter ->isFiltered ($ this ->files [0 ]));
294
+ $ this ->assertFalse ($ this ->filter ->isFiltered ($ this ->files [0 ]));
293
295
}
294
296
295
297
/**
@@ -298,7 +300,7 @@ public function testWhitelistedFileIsNotFiltered()
298
300
public function testNotWhitelistedFileIsFiltered ()
299
301
{
300
302
$ this ->filter ->addFileToWhitelist ($ this ->files [0 ]);
301
- $ this ->asserttrue ($ this ->filter ->isFiltered ($ this ->files [1 ]));
303
+ $ this ->assertTrue ($ this ->filter ->isFiltered ($ this ->files [1 ]));
302
304
}
303
305
304
306
/**
@@ -307,6 +309,8 @@ public function testNotWhitelistedFileIsFiltered()
307
309
*/
308
310
public function testNonFilesAreFiltered ()
309
311
{
312
+ $ this ->assertTrue ($ this ->filter ->isFiltered ('vfs://root/a/path ' ));
313
+ $ this ->assertTrue ($ this ->filter ->isFiltered ('xdebug://debug-eval ' ));
310
314
$ this ->assertTrue ($ this ->filter ->isFiltered ('eval() \'d code ' ));
311
315
$ this ->assertTrue ($ this ->filter ->isFiltered ('runtime-created function ' ));
312
316
$ this ->assertTrue ($ this ->filter ->isFiltered ('assert code ' ));
0 commit comments