phpunit icon indicating copy to clipboard operation
phpunit copied to clipboard

The PHP Unit Testing framework.

Results 382 phpunit issues
Sort by recently updated
recently updated
newest added

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...

type/tests

In AssertTest.php I have added a function that tests assertStringNotEqualsFileCanonicalizing() by comparing the contents of a test xml file with some test strings.

type/tests

When a test fails because of a Throwable the error was not helping to locate the problem.

type/enhancement

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...

type/enhancement
feature/assertion

## 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...

type/enhancement
feature/test-runner

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...

type/tests
feature/assertion

- [x] implements #3567 ability to toggle buffering - [ ] implements #3900 reduce data provider noise - [x] improve unit test coverage in general - [x] Testdox buffering mechanism...

type/enhancement
feature/testdox

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...

type/enhancement
feature/test-runner

By issue #4049

type/tests
feature/assertion

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...

type/enhancement
feature/test-doubles