Feature showcase: Unittest & equality

at 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:-)



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES
Unicode
Language
5.9-SERIES

Related

Find related articles by a search for «Feature».