Вход Регистрация
Файл: gapps/vendor/symfony/finder/Tests/GlobTest.php
Строк: 23
<?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.
 */

namespace SymfonyComponentFinderTests;

use 
SymfonyComponentFinderGlob;

class 
GlobTest extends PHPUnit_Framework_TestCase
{
    public function 
testGlobToRegexDelimiters()
    {
        
$this->assertEquals('#^(?=[^.])#$#'Glob::toRegex('#'));
        
$this->assertEquals('#^.[^/]*$#'Glob::toRegex('.*'));
        
$this->assertEquals('^.[^/]*$'Glob::toRegex('.*'truetrue''));
        
$this->assertEquals('/^.[^/]*$/'Glob::toRegex('.*'truetrue'/'));
    }
}
Онлайн: 0
Реклама