All notable changes of the PHPUnit 5.4 release series are documented in this file using the Keep a CHANGELOG principles.
phpunit/php-code-coverage to 4.0.1@testWith annotationexpectException() accepts non-string argumentsetlocale() with 0 as second argument to not affect current settingC:\Program Files) on Microsoft Windowsphpunit\framework\TestCase to PHPUnit\Framework\TestCasePHPUnit_Framework_TestCase::getMockBuilder() should be public, not protectedPHPUnit\Framework\TestCase::createMock() method for creating test doubles using best practice defaultsregisterMockObjectsFromTestArgumentsRecursively configuration directive for optionally registering mock objects from test arguments recursivelyENV, STDIN, ARGS, FILEEOF, FILE_EXTERNAL, EXPECT_EXTERNAL, EXPECTF_EXTERNAL, EXPECTREGEX_EXTERNAL, and XFAIL sections to PHPT test runnerphpunit\framework\TestCase as an alias for PHPUnit_Framework_TestCase for forward compatibilityPHPUnit_Framework_TestCase::getMock() method has been deprecated. Please use PHPUnit_Framework_TestCase::createMock() or PHPUnit_Framework_TestCase::getMockBuilder() instead.PHPUnit_Framework_TestCase::getMockWithoutInvokingTheOriginalConstructor() method has been deprecated. Please use PHPUnit_Framework_TestCase::createMock() instead.--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.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).