sebastianbergmann/phpunit — Issue #381: assertNotEquals not type-safe
Author: gregbair
Created: 2011-10-17 21:05:30+00:00
State: open

```php
class NullTest extends PHPUnit_Framework_TestCase
{
public function testNullEqualsFalse()
{
$this->assertNotEquals(FALSE,NULL);
}
}
```

greg@debian:~$ phpunit NullTest.php
PHPUnit 3.5.15 by Sebastian Bergmann.

F

Time: 0 seconds, Memory: 3.50Mb

There was 1 failure:

1) NullTest::testNullEqualsFalse
Failed asserting that <null> is not equal to <boolean:false>.

/home/greg/NullTest.php:7

FAILURES!
Tests: 1, Assertions: 1, Failures: 1.

This should not fail.