cvs: pear /PHPUnit2/Framework TestResult.php

From: Date: Thu, 26 May 2005 09:41:34 +0000
Subject: cvs: pear /PHPUnit2/Framework TestResult.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-32130@lists.php.net to get a copy of this message
sebastian Thu May 26 05:41:34 2005 EDT Modified files: /pear/PHPUnit2/Framework TestResult.php Log: Simplify wasSuccessful(). http://cvs.php.net/diff.php/pear/PHPUnit2/Framework/TestResult.php?r1=1.29&r2=1.30&ty=u Index: pear/PHPUnit2/Framework/TestResult.php diff -u pear/PHPUnit2/Framework/TestResult.php:1.29 pear/PHPUnit2/Framework/TestResult.php:1.30 --- pear/PHPUnit2/Framework/TestResult.php:1.29 Thu May 26 04:47:26 2005 +++ pear/PHPUnit2/Framework/TestResult.php Thu May 26 05:41:34 2005 @@ -15,7 +15,7 @@ * @author Sebastian Bergmann <sb@sebastian-bergmann.de> * @copyright 2002-2005 Sebastian Bergmann <sb@sebastian-bergmann.de> * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: TestResult.php,v 1.29 2005/05/26 08:47:26 sebastian Exp $ + * @version CVS: $Id: TestResult.php,v 1.30 2005/05/26 09:41:34 sebastian Exp $ * @link http://pear.php.net/package/PHPUnit2 * @since File available since Release 2.0.0 */ @@ -400,11 +400,7 @@ * @access public */ public function wasSuccessful() { - if (empty($this->errors) && empty($this->failures)) { - return TRUE; - } else { - return FALSE; - } + return empty($this->errors) && empty($this->failures); } }

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