File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
src/Symfony/Component/Finder/Tests 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()
248
248
__DIR__ .DIRECTORY_SEPARATOR .'BsdFinderTest.php ' ,
249
249
__DIR__ .DIRECTORY_SEPARATOR .'FinderTest.php ' ,
250
250
__DIR__ .DIRECTORY_SEPARATOR .'GnuFinderTest.php ' ,
251
+ __DIR__ .DIRECTORY_SEPARATOR .'GlobTest.php ' ,
251
252
);
252
253
253
254
$ 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