Changeset View
Changeset View
Standalone View
Standalone View
src/filesystem/__tests__/FileFinderTestCase.php
<?php | <?php | ||||
final class FileFinderTestCase extends PhutilTestCase { | final class FileFinderTestCase extends PhutilTestCase { | ||||
private function newFinder($directory = null) { | private function newFinder($directory = null) { | ||||
if (!$directory) { | if (!$directory) { | ||||
$directory = dirname(__FILE__).'/data'; | $directory = __DIR__.'/data'; | ||||
} | } | ||||
return id(new FileFinder($directory)) | return id(new FileFinder($directory)) | ||||
->excludePath('./exclude') | ->excludePath('./exclude') | ||||
->excludePath('subdir.txt'); | ->excludePath('subdir.txt'); | ||||
} | } | ||||
public function testFinderWithChecksums() { | public function testFinderWithChecksums() { | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0