cvs: pear /PHPUnit2/Framework Assert.php

From: Date: Fri, 17 Feb 2006 16:10:33 +0000
Subject: cvs: pear /PHPUnit2/Framework Assert.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38331@lists.php.net to get a copy of this message
sebastian Fri Feb 17 16:10:33 2006 UTC Modified files: /pear/PHPUnit2/Framework Assert.php Log: Implement RFE #6816: never() expectation. http://cvs.php.net/viewcvs.cgi/pear/PHPUnit2/Framework/Assert.php?r1=1.73&r2=1.74&diff_format=u Index: pear/PHPUnit2/Framework/Assert.php diff -u pear/PHPUnit2/Framework/Assert.php:1.73 pear/PHPUnit2/Framework/Assert.php:1.74 --- pear/PHPUnit2/Framework/Assert.php:1.73 Thu Jan 26 08:27:27 2006 +++ pear/PHPUnit2/Framework/Assert.php Fri Feb 17 16:10:33 2006 @@ -41,7 +41,7 @@ * @author Sebastian Bergmann <sb@sebastian-bergmann.de> * @copyright 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de> * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: Assert.php,v 1.73 2006/01/26 08:27:27 sebastian Exp $ + * @version CVS: $Id: Assert.php,v 1.74 2006/02/17 16:10:33 sebastian Exp $ * @link http://pear.php.net/package/PHPUnit2 * @since File available since Release 2.0.0 */ @@ -648,6 +648,19 @@ /** * * + * @return PHPUnit2_Extensions_MockObject_Matcher_InvokedCount + * @access public + * @since Method available since Release 3.0.0 + * @static + */ + public static function never() + { + return new PHPUnit2_Extensions_MockObject_Matcher_InvokedCount(0); + } + + /** + * + * * @return PHPUnit2_Extensions_MockObject_Matcher_InvokedAtLeastOnce * @access public * @since Method available since Release 3.0.0

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