Home » Testing » PHPUnit » Bug #3265
assertNull()/assertNotNull() broken in 1.2.0
Details
| Submitted | 2005-01-22 01:25 UTC |
|---|---|
| From | php040604 at awks dot org |
| Status | Closed |
| Package | PHPUnit |
| PHP Version | Irrelevant |
| 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