Releases: nette/tester
Releases · nette/tester
Released version 2.6.1
- PhpInterpreter now passes the command to
proc_open()as an array, so PHP handles argument escaping itself and the subshell is bypassed on Linux too – fewer surprises with paths and arguments containing spaces or special characters - Test::getResult() throws a
LogicExceptioninstead of silently returning an unset value when the test hasn't finished running yet – mistakes surface immediately rather than turning into puzzling downstream errors - Improved PHPDoc types and descriptions throughout the framework for better IDE hints and static analysis
Released version 2.6.0
This release brings true parallel test execution on Windows, smarter PHP configuration handling, and a bunch of quality-of-life improvements. The headline: Tester now respects your system php.ini by default, which is a breaking change but makes the "it works on my machine" debugging sessions a lot shorter.
Breaking Changes
- Tester now uses system
php.iniby default (#465)
Improvements
- Parallel execution on Windows finally works properly – PHP 8.5's
stream_select()fix means Windows users can now enjoy actual parallelism, not just the illusion of it. - Fixed output loss on fast-exiting processes – A race condition could swallow test output when processes finished too quickly. Your test results now survive speed.
New Features
test()andtestException()lifecycle improvements – Both functions now properly callsetUp()andtearDown(), andtearDown()runs even when tests fail. Your cleanup code will actually clean up.- Added global function
testNoError()
Released version 2.5.7
support for PHP 8.5
Released version 2.5.6
- support for PHP 8.5
- added HttpAssert
- added Assert::notMatch()
Released version 2.5.5
Dumper::toPhp()prints enum case directly (#457)- DomQuery: uses PHP 8.4 HTML DOM
- added
DomQuery::closest() - DomQuery:: fixed UTF-8 handling
- DomQuery:: supports :scope
- optimized global function calls
Released version v2.5.4
- supports PHP 8.4
- TestHandler: improve cache file uniqueness (#454)
- DataProvider: parses INI files using INI_SCANNER_TYPED mode (BC break)
Released version 2.5.3
Released version 2.5.2
- Implemented
console-linesmode which prints each test on separate line. (#443) - DomQuery: searches starting from current node
Environment::setupFunctions()creates global functionstestException()
Released version 2.5.1
Released version 2.5.0
- requires PHP 8.0
- added PHP 8 typehints
- Capture stderr of test via temp file and output it in test results [Closes #420] (#438)
- Environment::setupFunctions() creates global functions test(), setUp() & tearDown()
- TestCase: lists the running methods
- Assert::equal() added flags $matchOrder & $matchIdentity
- constants are PascalCase
- Dumper & Assert: dumps true/false/null in lowercase