sorge-it/phpunit-pest-html-assertions
HTML assertion helpers for PHPUnit and Pest. Assert the structure and content of HTML responses with readable, chainable methods instead of brittle string matching, ideal for Laravel feature tests and works with both PHPUnit and Pest suites.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ssddanbrown/asserthtml | 0.84 | PHPUnit assertions for testing HTML output. Adds helpers to assert elements exist, contain expected text, or are absent, using CSS selectors with clear failure messages—useful for Laravel feature tests and any PHP suite checking rendered markup. | 0 | 0 | — | 11K | — | 0.0 | 55.3 | — | — | |
| phpunit/phpunit-dom-assertions | 0.83 | Adds expressive DOM assertions to PHPUnit for testing HTML and XML output, letting you assert elements, attributes, text content, and structure using a fluent, readable API built on Symfony's DomCrawler and CssSelector components. | 29 | — | 13 | — | 1 | 6.3 | — | NOASSERTION | 8 months ago |
|
| nunomaduro/pest | 0.82 | Pest is an elegant PHP testing framework focused on simplicity. Built on top of PHPUnit, it offers a clean, expressive syntax that makes writing tests enjoyable, with readable expectations and a developer-friendly API. | 343 | 359 | 3 | 2 | 9 | 2.2 | 1.9 | — | — | |
| pestphp/pest | 0.82 | Pest is an elegant PHP testing framework with a clean, expressive syntax built on PHPUnit. Write readable tests with higher-order expectations, datasets, and architecture testing, plus first-class Laravel support. | 11,758 | 11,782 | 560 | 10M | 170 | 94.8 | 74.4 | MIT | 5 days ago | |
| testo/assert | 0.81 | Assertion plugin for the Testo PHP testing framework. Adds a fluent assert/expect facade, expectation lifecycle, and helpers for matching thrown exceptions. Reports comparisons through Testo’s standard pipeline. Install via Composer: testo/assert. | 0 | 0 | 0 | 16K | 0 | 0.0 | 55.3 | — | — | |
| phpstan/phpstan-webmozart-assert | 0.81 | PHPStan extension for webmozart/assert that teaches PHPStan how Assert::* calls narrow types. Supports many assertions (including nullOr*/all*) so values become non-null, specific scalars, instances, arrays, etc. after validation, improving static analysis accuracy. | 185 | 185 | 33 | 639K | 5 | 12.3 | 50.1 | MIT | 1 year ago |
How can I help you explore Laravel packages today?