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 #3967: Cannot double interface that extends interface that extends
\Throwable
- Fixed #3968: Test class run in a separate PHP process are passing when
exit
called inside
7.5.17 - 2019-10-28
- Fixed #3727: Problem hidden by PHPUnit's error handler
- Fixed #3863:
\Countable
needs to be checked before\EmptyIterator
7.5.16 - 2019-09-14
- Fixed #3801: Class constant as default parameter is undefined
- Fixed #3834: Trailing slash breaks code coverage on Windows
7.5.15 - 2019-08-21
- Implemented #3765: Use
ReflectionType::getName()
instead ofReflectionType::__toString()
(which is deprecated in PHP 7.4)
7.5.14 - 2019-07-15
- Fixed #3743:
EmptyIterator
instances are not handled correctly byCount
andIsEmpty
constraints
7.5.13 - 2019-06-19
- 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
- After each test,
libxml_clear_errors()
is now called to clear the libxml error buffer
- Fixed #3694: Constructor arguments for
Throwable
andException
are ignored - Fixed #3709: Method-level
@coversNothing
annotation does not prevent code coverage data collection
7.5.11 - 2019-05-14
- Fixed #3683: Regression in PHPUnit 7.5.10 with regard to Exception stubbing/mocking
7.5.10 - 2019-05-09
- Fixed #3414:
willThrowException()
only acceptsException
, notThrowable
- Fixed #3587:
.phpunit.result.cache
file is all over the place - Fixed #3596: Mocking an interface that extends another interface forgets to mock its own methods
- Fixed #3674:
TypeError
when an incorrect file path is given
7.5.9 - 2019-04-19
- Fixed #3607: Return value generation interferes with proxying to original method
7.5.8 - 2019-03-26
- Fixed #3564: Production code uses class from test suite's fixture
7.5.7 - 2019-03-16
- 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 #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 #3011: Unsupported PHPT
--SECTION--
throws unhandled exception - Fixed #3461:
StringEndsWith
matches 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 #3352: Using
phpunit.phar
with PHPDBG does not work withauto_globals_jit=On
- Fixed #3502: Numeric
@ticket
or@group
annotations no longer work
7.5.3 - 2019-02-01
- Fixed #3490: Exceptions in
tearDownAfterClass()
kill PHPUnit
- 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 #3456: Generator for Xdebug filter script does not handle directories with leading
.
correctly - Fixed #3459:
@requires
function swallows digits at the end of function name
7.5.1 - 2018-12-12
- Fixed #3441: Call to undefined method
DataProviderTestSuite::usesDataProvider()
7.5.0 - 2018-12-07
- Implemented #3340: Added
assertEqualsCanonicalizing()
,assertEqualsIgnoringCase()
,assertEqualsWithDelta()
,assertNotEqualsCanonicalizing()
,assertNotEqualsIgnoringCase()
, andassertNotEqualsWithDelta()
as alternatives to usingassertEquals()
andassertNotEquals()
with the$delta
,$canonicalize
, or$ignoreCase
parameters - 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
TestHook
that 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()
- 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$ignoreCase
ofassertEquals()
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@expectedExceptionMessageRegExp
are 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()
onstring
haystacks is now deprecated. There is no behavioral change in this version of PHPUnit. Using these methods onstring
haystacks will trigger a deprecation warning in PHPUnit 8 and in PHPUnit 9 these methods cannot be used on onstring
haystacks anymore. - The optional parameters
$ignoreCase
,$checkForObjectIdentity
, and$checkForNonObjectIdentity
ofassertContains()
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.