Fix param order of assertEquals (expected, actual) in test for Finder\Glob
This commit is contained in:
parent
b6dbfa4b73
commit
8e41a5b22a
@ -15,11 +15,10 @@ use Symfony\Component\Finder\Glob;
|
||||
|
||||
class GlobTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
public function testGlobToRegexDelimiters()
|
||||
{
|
||||
$this->assertEquals(Glob::toRegex('.*'), '#^\.[^/]*$#');
|
||||
$this->assertEquals(Glob::toRegex('.*', true, true, ''), '^\.[^/]*$');
|
||||
$this->assertEquals(Glob::toRegex('.*', true, true, '/'), '/^\.[^/]*$/');
|
||||
$this->assertEquals('#^\.[^/]*$#', Glob::toRegex('.*'));
|
||||
$this->assertEquals('^\.[^/]*$', Glob::toRegex('.*', true, true, ''));
|
||||
$this->assertEquals('/^\.[^/]*$/', Glob::toRegex('.*', true, true, '/'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user