Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/finder/Tests/FinderTest.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 5fb285c0d0e3 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
420 */ | 420 */ |
421 public function testCountWithoutIn() | 421 public function testCountWithoutIn() |
422 { | 422 { |
423 $finder = Finder::create()->files(); | 423 $finder = Finder::create()->files(); |
424 count($finder); | 424 count($finder); |
425 } | |
426 | |
427 public function testHasResults() | |
428 { | |
429 $finder = $this->buildFinder(); | |
430 $finder->in(__DIR__); | |
431 $this->assertTrue($finder->hasResults()); | |
432 } | |
433 | |
434 public function testNoResults() | |
435 { | |
436 $finder = $this->buildFinder(); | |
437 $finder->in(__DIR__)->name('DoesNotExist'); | |
438 $this->assertFalse($finder->hasResults()); | |
425 } | 439 } |
426 | 440 |
427 /** | 441 /** |
428 * @dataProvider getContainsTestData | 442 * @dataProvider getContainsTestData |
429 */ | 443 */ |