cvs: pear(PHPUNIT_2_2) /PHPUnit2/Framework Assert.php
| From: | Sebastian Bergmann | Date: | Thu, 23 Dec 2004 07:13:00 +0000 |
| Subject: | cvs: pear(PHPUNIT_2_2) /PHPUnit2/Framework Assert.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-27777@lists.php.net to get a copy of this message | ||
sebastian Thu Dec 23 02:13:00 2004 EDT
Modified files: (Branch: PHPUNIT_2_2)
/pear/PHPUnit2/Framework Assert.php
Log:
MFH: Correct error message.
http://cvs.php.net/diff.php/pear/PHPUnit2/Framework/Assert.php?r1=1.22.2.4&r2=1.22.2.5&ty=u
Index: pear/PHPUnit2/Framework/Assert.php
diff -u pear/PHPUnit2/Framework/Assert.php:1.22.2.4 pear/PHPUnit2/Framework/Assert.php:1.22.2.5
--- pear/PHPUnit2/Framework/Assert.php:1.22.2.4 Thu Dec 23 02:09:12 2004
+++ pear/PHPUnit2/Framework/Assert.php Thu Dec 23 02:13:00 2004
@@ -12,7 +12,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: Assert.php,v 1.22.2.4 2004/12/23 07:09:12 sebastian Exp $
+// $Id: Assert.php,v 1.22.2.5 2004/12/23 07:13:00 sebastian Exp $
//
require_once 'PHPUnit2/Framework/AssertionFailedError.php';
@@ -443,7 +443,13 @@
}
else {
- throw new Exception('Unsupported parameter passed to assertContains().');
+ throw new Exception(
+ sprintf(
+ 'Unsupported parameter passed to %s().',
+
+ $condition ? 'assertContains' : 'assertNotContains'
+ )
+ );
}
if ($condition && !$found) {