All notable changes of the PHPUnit 5.4 release series are documented in this file using the Keep a CHANGELOG principles.
5.4.8 - 2016-07-26
- Bumped required version of
phpunit/php-code-coverage
to4.0.1
5.4.7 - 2016-07-21
- Fixed #1968: Invalid data sets are not handled correctly for
@testWith
annotation - Fixed #2200: No warnings when test runs in separate process
- Fixed #2221:
expectException()
accepts non-string argument
5.4.6 - 2016-06-16
- Fixed #2219: PHAR does not contain all dependencies
5.4.5 - 2016-06-15
- Fixed #2181: Use
setlocale()
with0
as second argument to not affect current setting - Fixed #2211: Correctly handle paths to PHP binary that contain spaces (
C:\Program Files
) on Microsoft Windows
5.4.4 - 2016-06-09
- Blacklisted phpdocumentor/reflection-docblock 3.0.2 due to phpDocumentor/ReflectionDocBlock#77
5.4.3 - 2016-06-09
- Renamed
phpunit\framework\TestCase
toPHPUnit\Framework\TestCase
5.4.2 - 2016-06-03
- Reverted the JUnit XML logfile format change to restore backward compatibility
5.4.1 - 2016-06-03
- Fixed #2186:
PHPUnit_Framework_TestCase::getMockBuilder()
should bepublic
, notprotected
5.4.0 - 2016-06-03
- Implemented #2037: Log more information about failures in JSON output
- Implemented #2152: Filter for which tests TestDox output is generated
- Added the
PHPUnit\Framework\TestCase::createMock()
method for creating test doubles using best practice defaults - Added
registerMockObjectsFromTestArgumentsRecursively
configuration directive for optionally registering mock objects from test arguments recursively - Added support for the
ENV
,STDIN
,ARGS
,FILEEOF
,FILE_EXTERNAL
,EXPECT_EXTERNAL
,EXPECTF_EXTERNAL
,EXPECTREGEX_EXTERNAL
, andXFAIL
sections to PHPT test runner - Added TestDox XML logger
- Added
phpunit\framework\TestCase
as an alias forPHPUnit_Framework_TestCase
for forward compatibility
- The
PHPUnit_Framework_TestCase::getMock()
method has been deprecated. Please usePHPUnit_Framework_TestCase::createMock()
orPHPUnit_Framework_TestCase::getMockBuilder()
instead. - The
PHPUnit_Framework_TestCase::getMockWithoutInvokingTheOriginalConstructor()
method has been deprecated. Please usePHPUnit_Framework_TestCase::createMock()
instead. - The logfile format generated using the
--log-junit
option and the<log type="junit" target="..."/>
configuration directive has been updated to match the current format used by JUnit. Due to this change you may need to update how your continuous integration server processes test result logfiles generated by PHPUnit. - The methods
PHPUnit_Framework_TestCase::getMockBuilder()
,PHPUnit_Framework_TestCase::createTestDouble()
,PHPUnit_Framework_TestCase::getMock()
,PHPUnit_Framework_TestCase::getMockWithoutInvokingTheOriginalConstructor()
,PHPUnit_Framework_TestCase::getMockForAbstractClass()
andPHPUnit_Framework_TestCase::getMockForTrait()
are now protected (they were public before).