This is the list of changes for the PHPUnit 3.6 release series.
- Added
assertCount()andassertNotCount()to assert the number of elements in an array as well asCountableorIteratorobjects. - Added
returnSelf()to ease the mocking and stubbing of fluent interfaces. - Implemented GH-82: Test Skeleton Generator should create
@coversannotations. - 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(andsetExpectedException()) no longer acceptExceptionas the expected exception class. assertEquals()now looks for (and invokes) a__toString()method when an object and string are compared.@ticketis now an alias for@group.assertType()andassertNotType()as well asassertAttributeType()andassertAttributeNotType()have been removed.assertInternalType()should be used for asserting internal types such asintegerorstringwhereasassertInstanceOf()should be used for asserting that an object is an instance of a specified class or interface.- The
PHPUnit_Extensions_Story_TestCasefunctionality has been removed. - The syntax check functionality has been removed.