summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-11-08 21:17:01 +0100
committerAndreas Gohr <andi@splitbrain.org>2005-11-08 21:17:01 +0100
commit9d9c165e7ecacec0b02ab8137c7c34e66a589ff4 (patch)
tree6ff053fce89c8b6393f797659c6b8bbfe8e381c6 /_test
parentf949a01c56e1f2c993e6b1f04ad3d57c382b6b06 (diff)
downloadrpg-9d9c165e7ecacec0b02ab8137c7c34e66a589ff4.tar.gz
rpg-9d9c165e7ecacec0b02ab8137c7c34e66a589ff4.tar.bz2
html_hilight test cases fixed
darcs-hash:20051108201701-7ad00-956b228ad91dbc0f8b6c8abfaecfc5fce273b012.gz
Diffstat (limited to '_test')
-rw-r--r--_test/cases/inc/html_hilight.test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/_test/cases/inc/html_hilight.test.php b/_test/cases/inc/html_hilight.test.php
index 1baec416a..944c90f1e 100644
--- a/_test/cases/inc/html_hilight.test.php
+++ b/_test/cases/inc/html_hilight.test.php
@@ -62,8 +62,8 @@ class html_hilight_test extends UnitTestCase{
function testHighlightPHP() {
$html = 'Foo $_GET[\'bar\'] Foo';
- $this->assertPattern(
- '/Foo <span.*>'.preg_quote('$_GET[\'bar\']').'<\/span> Foo/',
+ $this->assertEqual(
+ 'Foo <span class="search_hit">$_GET</span>[\'<span class="search_hit">bar</span>\'] Foo',
html_hilight($html,'$_GET[\'bar\']')
);
}
@@ -78,8 +78,8 @@ class html_hilight_test extends UnitTestCase{
function testMatchAttributeWord() {
$html = 'Foo <b class="x">bar</b> Foo';
- $this->assertPattern(
- '/Foo <b class="x">bar<\/b> Foo/',
+ $this->assertEqual(
+ 'Foo <b class="x"><span class="search_hit">bar</span></b> Foo',
html_hilight($html,'class="x">bar')
);
}