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 #3265

assertNull()/assertNotNull() broken in 1.2.0

Details

Submitted2005-01-22 01:25 UTC
Fromphp040604 at awks dot org
StatusClosed
PackagePHPUnit
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2005-01-22 01:25 UTC] php040604 at awks dot org

Description:
------------
What is the reason for the change in assertNull() and
assertNotNull()?

After upgrading to 1.2.0 a large number of my tests are
now suddenly failing. NULL is often used with values
that go in/out of the database and are not always
objects!

assertNotNull()/assertNull() should do exactly what the
names imply.. they should check is_null($arg).

Reproduce code:
---------------
Here are the changes I made to get the old behavior back:

http://bnt.com/~awk/PHPUnit.patch