From c8e564751e7c33d9e83fa56e978ace49097efdbe Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 5 Nov 2009 17:55:01 +0000 Subject: [PATCH] svn:eol-style native --- t/inc/SearchUpdate.t | 120 +++++++++++++++++++++---------------------- 1 file changed, 60 insertions(+), 60 deletions(-) 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