namespace Symfony\Component\Finder\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\Glob;
class GlobTest extends TestCase
{ public function testGlobToRegexDelimiters() { $this->
assertEquals('#^(?=[^\.])\#$#', Glob::
toRegex('#'
));
$this->
assertEquals('#^\.[^/]*$#', Glob::
toRegex('.*'
));
$this->
assertEquals('^\.[^/]*$', Glob::
toRegex('.*', true, true, ''
));
$this->
assertEquals('/^\.[^/]*$/', Glob::
toRegex('.*', true, true, '/'
));
} public function testGlobToRegexDoubleStarStrictDots() { $finder =
new Finder();
$finder->
ignoreDotFiles(false
);
$regex = Glob::
toRegex('/**/*.neon'
);