12 KiB
12 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.18 - 2019-12-06
Fixed
- Fixed #3967: Cannot double interface that extends interface that extends
\Throwable - Fixed #3968: Test class run in a separate PHP process are passing when
exitcalled inside
7.5.17 - 2019-10-28
Fixed
- Fixed #3727: Problem hidden by PHPUnit's error handler
- Fixed #3863:
\Countableneeds to be checked before\EmptyIterator
7.5.16 - 2019-09-14
Fixed
- Fixed #3801: Class constant as default parameter is undefined
- Fixed #3834: Trailing slash breaks code coverage on Windows
7.5.15 - 2019-08-21
Changed
- Implemented #3765: Use
ReflectionType::getName()instead ofReflectionType::__toString()(which is deprecated in PHP 7.4)
7.5.14 - 2019-07-15
Fixed
- Fixed #3743:
EmptyIteratorinstances are not handled correctly byCountandIsEmptyconstraints
7.5.13 - 2019-06-19
Fixed
- Fixed #3722:
getObjectForTrait()does not work for traits that declare a constructor - Fixed #3723: Unescaped dash in character group in regular expression
7.5.12 - 2019-05-28
Changed
- After each test,
libxml_clear_errors()is now called to clear the libxml error buffer
Fixed
- Fixed #3694: Constructor arguments for
ThrowableandExceptionare ignored - Fixed #3709: Method-level
@coversNothingannotation does not prevent code coverage data collection
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.