mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 21:12:41 +00:00
Fix a few code standards errors.
This commit is contained in:
parent
ff35762e92
commit
a24aca6ffc
4 changed files with 4 additions and 5 deletions
|
@ -454,7 +454,7 @@ podeís adquirirla.</span></p>
|
|||
$result = $this->Text->highlight($text, $phrases, array('format' => '<b>\1</b>'));
|
||||
$expected = '<b>This</b> is a test <b>text</b>';
|
||||
$this->assertEquals($expected, $result);
|
||||
|
||||
|
||||
$phrases = array('is', 'text');
|
||||
$result = $this->Text->highlight($text, $phrases, array('format' => '<b>\1</b>', 'regex' => "|\b%s\b|iu"));
|
||||
$expected = 'This <b>is</b> a test <b>text</b>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue