phpunit
phpunit copied to clipboard
The PHP Unit Testing framework.
Linked to issue: #4051 I first test if the method checks the existence of both the expected and actual files. I then test if the method correctly asserts that the...
In AssertTest.php I have added a function that tests assertStringNotEqualsFileCanonicalizing() by comparing the contents of a test xml file with some test strings.
When a test fails because of a Throwable the error was not helping to locate the problem.
As discussed in https://github.com/sebastianbergmann/phpunit/issues/4091, there is a valid use case for having an assertion ensuring two DOM sub trees are structurally identical. This PR re-implements the main aspect of the...
## Summary Export via `--list-tests-xml` and cut and slice as wanted, to feed it back via `--tests-xml`. Works with PHPUnit tests as well as PHPT tests. A cheap slicing script...
Closes #4053 **Comments on the code:** `assertStringEqualsFileCanonicalizing` consists of 2 parts: the assertion that the provided file exists and then the assertion that the file contant is actually equal to...
- [x] implements #3567 ability to toggle buffering - [ ] implements #3900 reduce data provider noise - [x] improve unit test coverage in general - [x] Testdox buffering mechanism...
As phpunit command path seems a poor default: - will result on vendor/bin/phpunit in most case - will result on some global directory when global phpunit is used (phar) thus...
One thing that ReturnValueMap lacked was flexibility regarding the arguments the method was invoked with. It works only with exact match As a side effect, if you have floats as...