File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,7 @@ public function testIn()
248248 __DIR__ .DIRECTORY_SEPARATOR .'BsdFinderTest.php ' ,
249249 __DIR__ .DIRECTORY_SEPARATOR .'FinderTest.php ' ,
250250 __DIR__ .DIRECTORY_SEPARATOR .'GnuFinderTest.php ' ,
251+ __DIR__ .DIRECTORY_SEPARATOR .'GlobTest.php ' ,
251252 );
252253
253254 $ this ->assertIterator ($ expected , $ iterator );
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the Symfony package.
5+ *
6+ * (c) Fabien Potencier <fabien@symfony.com>
7+ *
8+ * For the full copyright and license information, please view the LICENSE
9+ * file that was distributed with this source code.
10+ */
11+
12+ namespace Symfony \Component \Finder \Tests ;
13+
14+ use Symfony \Component \Finder \Glob ;
15+
16+ class GlobTest extends \PHPUnit_Framework_TestCase
17+ {
18+ public function testGlobToRegexDelimiters ()
19+ {
20+ $ this ->assertEquals ('#^(?=[^\.])\#$# ' , Glob::toRegex ('# ' ));
21+ $ this ->assertEquals ('#^\.[^/]*$# ' , Glob::toRegex ('.* ' ));
22+ }
23+ }
You can’t perform that action at this time.
0 commit comments