4.4 KiB
4.4 KiB
Changes in PHPUnit 5.4
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
Changed
- Bumped required version of
phpunit/php-code-coverageto4.0.1
5.4.7 - 2016-07-21
Fixed
- Fixed #1968: Invalid data sets are not handled correctly for
@testWithannotation - Fixed #2200: No warnings when test runs in separate process
- Fixed #2221:
expectException()accepts non-string argument
5.4.6 - 2016-06-16
Fixed
- Fixed #2219: PHAR does not contain all dependencies
5.4.5 - 2016-06-15
Fixed
- Fixed #2181: Use
setlocale()with0as 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
Fixed
- Blacklisted phpdocumentor/reflection-docblock 3.0.2 due to https://github.com/phpDocumentor/ReflectionDocBlock/pull/77
5.4.3 - 2016-06-09
Changed
- Renamed
phpunit\framework\TestCasetoPHPUnit\Framework\TestCase
5.4.2 - 2016-06-03
Fixed
- Reverted the JUnit XML logfile format change to restore backward compatibility
5.4.1 - 2016-06-03
Fixed
- Fixed #2186:
PHPUnit_Framework_TestCase::getMockBuilder()should bepublic, notprotected
5.4.0 - 2016-06-03
Added
- 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
registerMockObjectsFromTestArgumentsRecursivelyconfiguration 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, andXFAILsections to PHPT test runner - Added TestDox XML logger
- Added
phpunit\framework\TestCaseas an alias forPHPUnit_Framework_TestCasefor forward compatibility
Changed
- 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-junitoption 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).