cvs: pear /PHPUnit2/Framework Assert.php

From: Date: Thu, 23 Dec 2004 07:12:39 +0000
Subject: cvs: pear /PHPUnit2/Framework Assert.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-27776@lists.php.net to get a copy of this message
sebastian Thu Dec 23 02:12:39 2004 EDT Modified files: /pear/PHPUnit2/Framework Assert.php Log: Correct error message. http://cvs.php.net/diff.php/pear/PHPUnit2/Framework/Assert.php?r1=1.26&r2=1.27&ty=u Index: pear/PHPUnit2/Framework/Assert.php diff -u pear/PHPUnit2/Framework/Assert.php:1.26 pear/PHPUnit2/Framework/Assert.php:1.27 --- pear/PHPUnit2/Framework/Assert.php:1.26 Thu Dec 23 02:08:39 2004 +++ pear/PHPUnit2/Framework/Assert.php Thu Dec 23 02:12:39 2004 @@ -12,7 +12,7 @@ // | license@php.net so we can mail you a copy immediately. | // +------------------------------------------------------------------------+ // -// $Id: Assert.php,v 1.26 2004/12/23 07:08:39 sebastian Exp $ +// $Id: Assert.php,v 1.27 2004/12/23 07:12:39 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) {

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