From: Alexandre Emsenhuber Date: Thu, 5 Nov 2009 17:55:01 +0000 (+0000) Subject: svn:eol-style native X-Git-Tag: 1.31.0-rc.0~38964 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=c8e564751e7c33d9e83fa56e978ace49097efdbe;p=lhc%2Fweb%2Fwiklou.git svn:eol-style native --- diff --git a/t/inc/SearchUpdate.t b/t/inc/SearchUpdate.t index da061f7c02..b670f2d64e 100644 --- a/t/inc/SearchUpdate.t +++ b/t/inc/SearchUpdate.t @@ -1,61 +1,61 @@ -#!/usr/bin/env php -doUpdate(); - return array( MockSearch::$title, MockSearch::$text ); -} - -function updateText( $text ) { - list( $title, $resultText ) = update( $text ); - $resultText = trim( $resultText ); // abstract from some implementation details - return $resultText; -} - -is( updateText( '
TeSt
' ), 'test', 'HTML stripped, text lowercased' ); - -is( updateText( << -
foo
bar - bozquux - -EOT -), 'foo bar boz quux', 'Stripping HTML tables' ); - -is( updateText( 'a > b' ), 'a b', 'Handle unclosed tags' ); - -$text = str_pad( "foo doUpdate(); + return array( MockSearch::$title, MockSearch::$text ); +} + +function updateText( $text ) { + list( $title, $resultText ) = update( $text ); + $resultText = trim( $resultText ); // abstract from some implementation details + return $resultText; +} + +is( updateText( '
TeSt
' ), 'test', 'HTML stripped, text lowercased' ); + +is( updateText( << +
foo
bar + bozquux + +EOT +), 'foo bar boz quux', 'Stripping HTML tables' ); + +is( updateText( 'a > b' ), 'a b', 'Handle unclosed tags' ); + +$text = str_pad( "foo