Skip to content

Latest commit

 

History

History
84 lines (52 loc) · 4.39 KB

ChangeLog-5.4.md

File metadata and controls

84 lines (52 loc) · 4.39 KB

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-coverage to 4.0.1

5.4.7 - 2016-07-21

Fixed

  • 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

  • Fixed #2219: PHAR does not contain all dependencies

5.4.5 - 2016-06-15

Fixed

  • Fixed #2181: Use setlocale() with 0 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

Fixed

5.4.3 - 2016-06-09

Changed

  • Renamed phpunit\framework\TestCase to PHPUnit\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 be public, not protected

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 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, and XFAIL sections to PHPT test runner
  • Added TestDox XML logger
  • Added phpunit\framework\TestCase as an alias for PHPUnit_Framework_TestCase for forward compatibility

Changed

  • The PHPUnit_Framework_TestCase::getMock() method has been deprecated. Please use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead.
  • The PHPUnit_Framework_TestCase::getMockWithoutInvokingTheOriginalConstructor() method has been deprecated. Please use PHPUnit_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() and PHPUnit_Framework_TestCase::getMockForTrait() are now protected (they were public before).