Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 1.28 KB

File metadata and controls

18 lines (15 loc) · 1.28 KB

PHPUnit 3.6

This is the list of changes for the PHPUnit 3.6 release series.

PHPUnit 3.6.0

  • Added assertCount() and assertNotCount() to assert the number of elements in an array as well as Countable or Iterator objects.
  • Added returnSelf() to ease the mocking and stubbing of fluent interfaces.
  • Implemented GH-82: Test Skeleton Generator should create @covers annotations.
  • Implemented GH-83: Test errors and failures as well as incomplete and skipped tests now get coloured letters in the test progress.
  • Implemented GH-88: @expectedException (and setExpectedException()) no longer accept Exception as the expected exception class.
  • assertEquals() now looks for (and invokes) a __toString() method when an object and string are compared.
  • @ticket is now an alias for @group.
  • assertType() and assertNotType() as well as assertAttributeType() and assertAttributeNotType() have been removed. assertInternalType() should be used for asserting internal types such as integer or string whereas assertInstanceOf() should be used for asserting that an object is an instance of a specified class or interface.
  • The PHPUnit_Extensions_Story_TestCase functionality has been removed.
  • The syntax check functionality has been removed.