Feature showcase: Unittest & equalityat 2009-03-28 in Unittests by friebe (0 comments) With the 5.7.2 release out, the unittest API now shows errors more concisely. Assume we have the following:$this->assertEquals(1, 1.0); Before, this used to show { expected: [1] but was: [1] } (this is because the AssertionFailedError class uses string casts). The new output now is { expected: [integer:1] but was: [double:1] }, which is positively better readable |
|