4.9 KiB
4.9 KiB
Changes in PHPUnit 7.5
All notable changes of the PHPUnit 7.5 release series are documented in this file using the Keep a CHANGELOG principles.
7.5.1 - 2018-12-12
Fixed
- Fixed #3441: Call to undefined method
DataProviderTestSuite::usesDataProvider()
7.5.0 - 2018-12-07
Added
- Implemented #3340: Added
assertEqualsCanonicalizing(),assertEqualsIgnoringCase(),assertEqualsWithDelta(),assertNotEqualsCanonicalizing(),assertNotEqualsIgnoringCase(), andassertNotEqualsWithDelta()as alternatives to usingassertEquals()andassertNotEquals()with the$delta,$canonicalize, or$ignoreCaseparameters - Implemented #3368: Added
assertIsArray(),assertIsBool(),assertIsFloat(),assertIsInt(),assertIsNumeric(),assertIsObject(),assertIsResource(),assertIsString(),assertIsScalar(),assertIsCallable(),assertIsIterable(),assertIsNotArray(),assertIsNotBool(),assertIsNotFloat(),assertIsNotInt(),assertIsNotNumeric(),assertIsNotObject(),assertIsNotResource(),assertIsNotString(),assertIsNotScalar(),assertIsNotCallable(),assertIsNotIterable()as alternatives toassertInternalType()andassertNotInternalType() - Implemented #3391: Added a
TestHookthat fires after each test, regardless of result - Implemented #3417: Refinements related to test suite sorting and TestDox result printer
- Implemented #3422: Added
assertStringContainsString(),assertStringContainsStringIgnoringCase(),assertStringNotContainsString(), andassertStringNotContainsStringIgnoringCase()
Deprecated
- The methods
assertInternalType()andassertNotInternalType()are now deprecated. There is no behavioral change in this version of PHPUnit. Using these methods will trigger a deprecation warning in PHPUnit 8 and in PHPUnit 9 these methods will be removed. - The methods
assertAttributeContains(),assertAttributeNotContains(),assertAttributeContainsOnly(),assertAttributeNotContainsOnly(),assertAttributeCount(),assertAttributeNotCount(),assertAttributeEquals(),assertAttributeNotEquals(),assertAttributeEmpty(),assertAttributeNotEmpty(),assertAttributeGreaterThan(),assertAttributeGreaterThanOrEqual(),assertAttributeLessThan(),assertAttributeLessThanOrEqual(),assertAttributeSame(),assertAttributeNotSame(),assertAttributeInstanceOf(),assertAttributeNotInstanceOf(),assertAttributeInternalType(),assertAttributeNotInternalType(),attributeEqualTo(),readAttribute(),getStaticAttribute(), andgetObjectAttribute()are now deprecated. There is no behavioral change in this version of PHPUnit. Using these methods will trigger a deprecation warning in PHPUnit 8 and in PHPUnit 9 these methods will be removed. - The optional parameters
$delta,$maxDepth,$canonicalize, and$ignoreCaseofassertEquals()andassertNotEquals()are now deprecated. There is no behavioral change in this version of PHPUnit. Using these parameters will trigger a deprecation warning in PHPUnit 8 and in PHPUnit 9 these parameters will be removed. - The annotations
@expectedException,@expectedExceptionCode,@expectedExceptionMessage, and@expectedExceptionMessageRegExpare now deprecated. There is no behavioral change in this version of PHPUnit. Using these annotations will trigger a deprecation warning in PHPUnit 8 and in PHPUnit 9 these annotations will be removed. - Using the methods
assertContains()andassertNotContains()onstringhaystacks is now deprecated. There is no behavioral change in this version of PHPUnit. Using these methods onstringhaystacks will trigger a deprecation warning in PHPUnit 8 and in PHPUnit 9 these methods cannot be used on onstringhaystacks anymore. - The optional parameters
$ignoreCase,$checkForObjectIdentity, and$checkForNonObjectIdentityofassertContains()andassertNotContains()are now deprecated. There is no behavioral change in this version of PHPUnit. Using these parameters will trigger a deprecation warning in PHPUnit 8 and in PHPUnit 9 these parameters will be removed.