cvs: pear /PHPUnit2/Framework Assert.php

From: Date: Thu, 07 Oct 2004 09:05:26 +0000
Subject: cvs: pear /PHPUnit2/Framework Assert.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-24653@lists.php.net to get a copy of this message
sebastian Thu Oct 7 05:05:26 2004 EDT Modified files: /pear/PHPUnit2/Framework Assert.php Log: Add type check for $delta. http://cvs.php.net/diff.php/pear/PHPUnit2/Framework/Assert.php?r1=1.18&r2=1.19&ty=u Index: pear/PHPUnit2/Framework/Assert.php diff -u pear/PHPUnit2/Framework/Assert.php:1.18 pear/PHPUnit2/Framework/Assert.php:1.19 --- pear/PHPUnit2/Framework/Assert.php:1.18 Tue Oct 5 10:32:44 2004 +++ pear/PHPUnit2/Framework/Assert.php Thu Oct 7 05:05:23 2004 @@ -12,7 +12,7 @@ // | license@php.net so we can mail you a copy immediately. | // +------------------------------------------------------------------------+ // -// $Id: Assert.php,v 1.18 2004/10/05 14:32:44 sebastian Exp $ +// $Id: Assert.php,v 1.19 2004/10/07 09:05:23 sebastian Exp $ // require_once 'PHPUnit2/Framework/AssertionFailedError.php'; @@ -186,7 +186,8 @@ } if ((is_double($expected) || is_float($expected)) && - (is_double($actual) || is_float($actual))) { + (is_double($actual) || is_float($actual)) && + (is_double($delta) || is_float($delta))) { if (!(abs($expected - $actual) <= $delta)) { self::failNotEquals($expected, $actual, $message); }

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