cvs: pear /DB_QueryTool/tests UnitTest.php

From: Date: Tue, 23 Sep 2003 11:18:40 +0000
Subject: cvs: pear /DB_QueryTool/tests UnitTest.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13005@lists.php.net to get a copy of this message
cain Tue Sep 23 07:18:40 2003 EDT Modified files: /pear/DB_QueryTool/tests UnitTest.php Log: + assertStringEquals() Index: pear/DB_QueryTool/tests/UnitTest.php diff -u pear/DB_QueryTool/tests/UnitTest.php:1.1 pear/DB_QueryTool/tests/UnitTest.php:1.2 --- pear/DB_QueryTool/tests/UnitTest.php:1.1 Fri Jun 6 10:39:44 2003 +++ pear/DB_QueryTool/tests/UnitTest.php Tue Sep 23 07:18:39 2003 @@ -1,6 +1,6 @@ <?php // -// $Id: UnitTest.php,v 1.1 2003/06/06 14:39:44 cain Exp $ +// $Id: UnitTest.php,v 1.2 2003/09/23 11:18:39 cain Exp $ // class tests_UnitTest extends PhpUnit_TestCase @@ -28,6 +28,13 @@ } */ } + + function assertStringEquals($expected,$actual,$msg='') + { + $expected = '~^\s*'.preg_replace('~\s+~','\s*',trim(preg_quote($expected))).'\s*$~i'; + $this->assertRegExp($expected,$actual,$msg); + } + } ?>

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