Re: [PHP-DEV] PHPUnit_Assert::assert*Not*Equals()?

2002-10-20 Thread Sebastian Bergmann
Matthew Bogosian wrote: > This may be a really dumb question, but why isn't there a > PHPUnit_Assert::assertNotEquals() method? The PHPUnit API is modelled after the JUnit API, so there are two options: Either I overlooked it at the time, or it's not in JUnit. I agree with you that it's han

[PHP-DEV] PHPUnit_Assert::assert*Not*Equals()?

2002-10-19 Thread Matthew Bogosian
This may be a really dumb question, but why isn't there a PHPUnit_Assert::assertNotEquals() method? Equality is a complex enough operation, I'd hate to have to do this in my PHPUnit tests: function equals($a_Actual, $a_Expected) { $equivalent = false; // All the inverse logic of P