mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
test: add escape bracket.
Signed-off-by: ytetsuro <phper.0o0@gmail.com>
This commit is contained in:
parent
d4716726f5
commit
a4f634354c
@ -550,8 +550,8 @@ class ValidationTest extends \CIUnitTestCase
|
||||
{
|
||||
$method = $this->getPrivateMethodInvoker($this->validation, 'splitRules');
|
||||
|
||||
$result = $method('required|regex_match[/^[0-9]{4}[\-\.\/][0-9]{2}[\-\.\/][0-9]{2}/]|max_length[10]');
|
||||
$result = $method('required|regex_match[/^[0-9]{4}[\-\.\[\/][0-9]{2}[\-\.\[\/][0-9]{2}/]|max_length[10]');
|
||||
|
||||
$this->assertEquals('regex_match[/^[0-9]{4}[\-\.\/][0-9]{2}[\-\.\/][0-9]{2}/]', $result[1]);
|
||||
$this->assertEquals('regex_match[/^[0-9]{4}[\-\.\[\/][0-9]{2}[\-\.\[\/][0-9]{2}/]', $result[1]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user