cvs: pear(ZEND_ENGINE_2) /PHPUnit/Framework Assert.php
| From: | Sebastian Bergmann | Date: | Mon, 09 Jun 2003 10:52:09 +0000 |
| Subject: | cvs: pear(ZEND_ENGINE_2) /PHPUnit/Framework Assert.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-10796@lists.php.net to get a copy of this message | ||
sebastian Mon Jun 9 06:52:09 2003 EDT
Modified files: (Branch: ZEND_ENGINE_2)
/pear/PHPUnit/Framework Assert.php
Log:
Make fail()'s $message parameter optional.
Index: pear/PHPUnit/Framework/Assert.php
diff -u pear/PHPUnit/Framework/Assert.php:1.1.2.4 pear/PHPUnit/Framework/Assert.php:1.1.2.5
--- pear/PHPUnit/Framework/Assert.php:1.1.2.4 Sun Jun 8 06:16:33 2003
+++ pear/PHPUnit/Framework/Assert.php Mon Jun 9 06:52:09 2003
@@ -12,7 +12,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: Assert.php,v 1.1.2.4 2003/06/08 10:16:33 sebastian Exp $
+// $Id: Assert.php,v 1.1.2.5 2003/06/09 10:52:09 sebastian Exp $
//
require_once 'PHPUnit/Framework/AssertionFailedError.php';
@@ -305,17 +305,17 @@
}
// }}}
- // {{{ public static function fail($message)
+ // {{{ public static function fail($message = '')
/**
* Fails a test with the given message.
*
- * @param string $message
+ * @param optional string $message
* @throws PHPUnit_Framework_AssertionFailedError
* @access public
* @static
*/
- public static function fail($message) {
+ public static function fail($message = '') {
throw new PHPUnit_Framework_AssertionFailedError($message);
}