Download the PHP package digitalrevolution/phpunit-extensions without Composer
On this page you can find all versions of the php package digitalrevolution/phpunit-extensions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digitalrevolution/phpunit-extensions
More information about digitalrevolution/phpunit-extensions
Files in digitalrevolution/phpunit-extensions
Package phpunit-extensions
Short Description A library for phpunit utility and support classes
License MIT
Informations about the package phpunit-extensions
PHPUnit extensions
Utility classes to make unit testing life easier.
Features
withConsecutive
In PHPUnit 10 withConsecutive method was removed. To still be able to migrate existing codebases a replacement method:
PHPUnit <= 9.5:
PHPUnit >= 9.6:
Symfony controller tests
Testing a Symfony controller internally invokes the dependency container. A utility class to mock these classes more easily.
Methods
expectGetUser
expectDenyAccessUnlessGranted
expectCreateForm
expectAddFlash
expectGenerateUrl
expectRedirectToRoute
expectForward
expectRender
Symfony ConstraintValidator tests
TestCase for testing Symfony ConstraintValidators.
Methods
assertHandlesIncorrectConstraintType
expectNoViolations
expectBuildViolation(): ConstraintViolationBuilderAssertion
ConstraintViolationBuilderAssertion
expectSetInvalidValue
expectSetPlural
expectSetCode
expectSetCause
expectSetTranslationDomain
expectSetParameters
expectSetParameter
expectSetParameterWithConsecutive
expectAtPath
expectAddViolation
ResponseAssertions trait
The ResponseAssertions trait provides a set of assertion methods designed to streamline the testing of Symfony HTTP responses. This trait includes methods for verifying the status code, response message content and specific types of responses such as JSON responses
Methods
assertJsonResponse
assertResponse
assertResponseIsSuccessful
assertResponseIsRedirection
assertResponseIsClientError
assertResponseIsServerError
About us
At 123inkt (Part of Digital Revolution B.V.), every day more than 50 development professionals are working on improving our internal ERP and our several shops. Do you want to join us? We are looking for developers.