cvs: pear /File_SearchReplace/tests 04normal_bof.phpt

From: Date: Fri, 11 Mar 2005 16:49:12 +0000
Subject: cvs: pear /File_SearchReplace/tests 04normal_bof.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30208@lists.php.net to get a copy of this message
techtonik Fri Mar 11 11:49:12 2005 EDT Added files: /pear/File_SearchReplace/tests 04normal_bof.phpt Log: * Bug or feature test with search string and replace array http://cvs.php.net/co.php/pear/File_SearchReplace/tests/04normal_bof.phpt?r=1.1&p=1 Index: pear/File_SearchReplace/tests/04normal_bof.phpt +++ pear/File_SearchReplace/tests/04normal_bof.phpt --TEST-- File_SearchReplace bug or feature with search string and replace array --SKIPIF-- <?php include('./setup.php'); print $status; ?> --FILE-- <?php require_once('./setup.php'); $search = "Copyright (c) 2002-2003,"; $replace[] = "Copyprotected."; $replace[] = "Copystuff 2005"; $replace[] = "Eat upon perusal"; $snr = new File_SearchReplace( $search, $replace, $files); $snr -> doSearch() ; foreach($files as $f) { readfile($f); }; echo "\n------[Occurences]: " . $snr->getNumOccurences(); echo "\n------[Last Error]: " , ($snr->getLastError() !== '') ? var_dump($snr->getLastError()) : "N/A"; ?> --EXPECT-- <?php // +-----------------------------------------------------------------------+ // | Copyprotected. Richard Heyes | // | All rights reserved. | // | |/** // +-----------------------------------------------------------------------+ // | Copyprotected. Richard Heyes | ... * * Search and Replace Utility * * @version 1.0 * @package File */ ------[Occurences]: 2 ------[Last Error]: N/A

« previous php.pear.cvs (#30208) next »