cvs: pear /PHPUnit PHPUnit_Assert.php

From: Date: Thu, 11 Jul 2002 15:02:38 +0000
Subject: cvs: pear /PHPUnit PHPUnit_Assert.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5034@lists.php.net to get a copy of this message
sebastian Thu Jul 11 11:02:38 2002 EDT Modified files: /pear/PHPUnit PHPUnit_Assert.php Log: Add default message. Index: pear/PHPUnit/PHPUnit_Assert.php diff -u pear/PHPUnit/PHPUnit_Assert.php:1.7 pear/PHPUnit/PHPUnit_Assert.php:1.8 --- pear/PHPUnit/PHPUnit_Assert.php:1.7 Thu Jul 11 11:01:07 2002 +++ pear/PHPUnit/PHPUnit_Assert.php Thu Jul 11 11:02:37 2002 @@ -17,7 +17,7 @@ // | M@rms <marms@marms.com> | // +----------------------------------------------------------------------+ // -// $Id: PHPUnit_Assert.php,v 1.7 2002/07/11 15:01:07 sebastian Exp $ +// $Id: PHPUnit_Assert.php,v 1.8 2002/07/11 15:02:37 sebastian Exp $ // require_once 'PEAR.php'; @@ -121,6 +121,10 @@ * @access public */ function assertSame($expected, $actual, $message = '') { + if (empty($message)) { + $message = 'expected two variables to reference the same object'; + } + if (PEAR_ZE2) { if ($expected !== $actual) { return $this->fail($message);

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