9.1 KiB
9.1 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.11 - 2019-05-14
Fixed
- Fixed #3683: Regression in PHPUnit 7.5.10 with regard to Exception stubbing/mocking
7.5.10 - 2019-05-09
Fixed
- Fixed #3414:
willThrowException()only acceptsException, notThrowable - Fixed #3587:
.phpunit.result.cachefile is all over the place - Fixed #3596: Mocking an interface that extends another interface forgets to mock its own methods
- Fixed #3674:
TypeErrorwhen an incorrect file path is given
7.5.9 - 2019-04-19
Fixed
- Fixed #3607: Return value generation interferes with proxying to original method
7.5.8 - 2019-03-26
Fixed
- Fixed #3564: Production code uses class from test suite's fixture
7.5.7 - 2019-03-16
Fixed
- Fixed #3480: Wrong return type declaration for
TestCase::getExpectedExceptionMessage()andTestCase::getExpectedExceptionMessageRegExp() - Fixed #3550: Check for valid attribute names in
assertObjectHasAttribute()is too strict
7.5.6 - 2019-02-18
Fixed
- Fixed #3530:
generateClassFromWsdl()does not handle methods with multiple output values - Fixed #3531: Test suite fails on warning
- Fixed #3534: Wrong message in
ConstraintTestCase
7.5.5 - 2019-02-15
Fixed
- Fixed #3011: Unsupported PHPT
--SECTION--throws unhandled exception - Fixed #3461:
StringEndsWithmatches too loosely - Fixed #3515: Random order seed is only printed in verbose mode
- Fixed #3517: Useless error message when depending on test that does not exist
7.5.4 - 2019-02-07
Fixed
- Fixed #3352: Using
phpunit.pharwith PHPDBG does not work withauto_globals_jit=On - Fixed #3502: Numeric
@ticketor@groupannotations no longer work
7.5.3 - 2019-02-01
Fixed
- Fixed #3490: Exceptions in
tearDownAfterClass()kill PHPUnit
Deprecated
- The method
assertArraySubset()is now deprecated. There is no behavioral change in this version of PHPUnit. Using this method will trigger a deprecation warning in PHPUnit 8 and in PHPUnit 9 this method will be removed.
7.5.2 - 2019-01-15
Fixed
- Fixed #3456: Generator for Xdebug filter script does not handle directories with leading
.correctly - Fixed #3459:
@requiresfunction swallows digits at the end of function name
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.