PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Testing » PHPUnit » Bug #1169

assertEquals error

Details

Submitted2004-04-09 09:42 UTC
Fromminakov at bas-net dot by
StatusClosed
PackagePHPUnit
PHP Version4.3.4
OSwinxp
Roadmaps(Not assigned)

Comments

[2004-04-09 09:42 UTC] minakov at bas-net dot by

Description:
------------
$Id: Assert.php,v 1.10.2.2 2003/06/21 05:05:14 sebastian Exp $

replace in line 85
else {
to
elseif (is_string($expected)) {

replace in line 94
if ($actual != $expected) {
to
if (strVal($actual) != strVal($expected)) {

Reproduce code:
---------------
PHPUnit_Assert::assertEquals('qwerty', 0);

Expected result:
----------------
FALSE

Actual result:
--------------
TRUE