PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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