Fix a few code standards errors.

This commit is contained in:
mark_story 2012-04-06 22:56:01 -04:00
parent ff35762e92
commit a24aca6ffc
4 changed files with 4 additions and 5 deletions

View file

@ -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>';