tester
tester copied to clipboard
Tester: enjoyable unit testing in PHP with code coverage reporter. 🍏🍏🍎🍏
As the php gettype() function returns 'boolean' and 'double' as types, it would be nice, if i can test the type of vars with these names: ```php $float = 42.0;...
This is similar to the `test()` function, which is actually used by all Nette libraries. In addition, the test name is passed to the function and it lists results. ...
Can run multiple TestCase tests: ```php /** * @testCase */ declare(strict_types=1); namespace Tester; require __DIR__ . '/../src/bootstrap.php'; (new TestCaseRunner) ->findTests(__DIR__ . '/Test*.php') ->run(); ``` ~~The next step could be removal...
- new feature - BC break? no - doc PR: todo Snapshot testing is a technique which allows users to instruct the testing framework to generate and store a snapshot...
- bug fix? no - new feature? yes - BC break? no This refactor Dumper::dumpException in the way that part maintaining storing Assert diff is callable from other test libraries.
One of the popular strategies for marking deprecated code in libraries is to use `@trigger_error('...', E_USER_DEPRECATED)` call, see: - https://github.com/doctrine/deprecations - https://github.com/symfony/deprecation-contracts The main advantage and also its main disadvantage...
Would it be possible to add coverage export in Cobertura xml format due to use visualization in gitlab (see https://docs.gitlab.com/ee/user/project/merge_requests/test_coverage_visualization.html)?