All notable changes to this project will be documented in this file, in reverse chronological order by release.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
-
#76 adds support for PHPUnit 8
Undesired PHPUnit update to ^8.0 can happen on PHP 7.2 and newer when relying on PHPUnit installation as an indirect dependency via zend-test. Please always declare direct dependency on
phpunit/phpunit
with suitable versions alongside withzendframework/zend-test
.PHPUnit 8 incompatible test suite typically would error after the update with messages like "Fatal error: Declaration of *::setUp() must be compatible with *::setUp(): void" for any of the following methods:
setUpBeforeClass()
tearDownAfterClass()
setUp()
tearDown()
Following command can be used to declare explicit dependency on older PHPUnit versions:
composer require --dev phpunit/phpunit:"^7.5.12 || ^6.5.14 || ^5.7.14" --update-with-dependencies
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #75 adds support for PHP 7.3.
- Nothing.
- Nothing.
- Nothing.
- #74 reverts changes introduced in version 3.2.1 to how superglobals are reset between tests, primarily by fixing the root problem -- base URL detection -- by requiring a zend-http version that fixes that detection.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
-
#70 fixes a memory leak in controller test cases.
-
#66 Fixes globals not cleared for controller tests
- #60 Added support for PHPUnit 7
- #65 Added support for query parameters in DELETE request in AbstractControllerTestCase
- Nothing.
- Nothing.
- #63 Fixed compatibility with PHP 7.2
- Nothing.
- Nothing.
- Nothing.
- #55 Fixes compatibility with PHPUnit 5.7.23 where empty expected exception message no longer means message is not checked.
- #49 Fixes missing alias for compatibility with PHPUnit <6.0
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #33 fixes
queryContentRegexAssertion()
(used byassertQueryContentRegex()
andassertXpathQueryContentRegex()
) properly checks all matching nodes for content matching the regular expression, instead of only the first. The prevents false negative assertions from occuring. - #21 updates the
sebastian/version
dependency to also allow v2.0 releases. - #31 fixes an issue with
the
AbstractControllerTestCase
when used to test a console request. Previously, routes with multiple literal flags were never matched; they now are.
- Nothing.
- Nothing.
- Nothing.
- #26 fixes how
$traceErrors
works under PHP 7 and PHPUnit 5. Any zend-test-specific assertion failures now append a list of all exception messages to the base message when the flag is enabled.
- This release adds support for zend-mvc v3.
- Nothing.
- This release removes support for PHP versions
< 5.6
. - This release removes support for zend-mvc v2.
- Nothing.
- #22 adds and publishes the documentation to https://zendframework.github.io/zend-test/
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- Nothing.
- #20 updates the zend-mvc requirement to 2.7.1, ensuring deprecation notices will not occur in the majority of circumstances.
- Nothing.
- Nothing.
- Nothing.
- #19 updates the
code to be forwards compatible with:
- zend-eventmanager v3
- zend-servicemanager v3
- zend-stdlib v3
- zend-mvc v2.7
- Nothing.
- Nothing.
- Nothing.
- #6 updates the
AbstractControllerTestCase
to mark a test as failed if no route match occurs in a number of assertions that require a route match. - #7 modifies the
reset()
method of theAbstractControllerTestCase
to prevent rewriting the$_SESSION
superglobal if it has not previously been enabled.
- #4 PHPUnit v5 Support.
- Nothing.
- Nothing.
- Nothing.