<?php/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */namespaceSymfony\Component\Finder\Tests;useSymfony\Component\Finder\Glob;classGlobTestextends\PHPUnit_Framework_TestCase{publicfunctiontestGlobToRegexDelimiters(){$this->assertEquals('#^\.[^/]*$#',Glob::toRegex('.*'));$this->assertEquals('^\.[^/]*$',Glob::toRegex('.*',true,true,''));$this->assertEquals('/^\.[^/]*$/',Glob::toRegex('.*',true,true,'/'));}}