k2gl/phpunit-fluent-assertions
A PHPUnit extension that adds fluent, chainable assertions to your tests, making expectations more readable and expressive while reducing verbose assertion code and keeping familiar PHPUnit workflows.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| jchook/phpunit-assert-throws | 0.88 | A PHPUnit assertion helper for testing that code throws exceptions. It adds assertThrows to verify exception types and messages in a single call, keeping tests compact and readable while confirming the expected error is actually raised. | 11 | — | 3 | — | 0 | 0.1 | — | MIT | — |
|
| richcongress/test-tools | 0.87 | richcongress/test-tools is a small Laravel/PHP package offering testing helpers and utilities to simplify test setup and assertions, helping you write cleaner, more maintainable tests with less boilerplate. | 0 | 0 | 0 | 261 | 1 | 0.1 | 33.4 | MIT | 4 years ago | |
| draw/tester | 0.87 | Tools for testing PHP apps: DataTester wraps PHPUnit assertions with a fluent, path-based API for arrays/objects. Includes PHPUnit extensions like CarbonReset to reset Carbon state between tests and SetUpAutowire to autowire test properties via attributes. | 0 | 0 | 0 | 1K | 0 | 0.0 | 43.0 | MIT | — | |
| phpfui/phpunit-syntax-coverage | 0.87 | A PHPUnit extension that measures PHP syntax coverage, showing which language constructs and parser nodes your test suite actually exercises. Use it to spot untested syntax like new operators, match expressions, or traits, then close those gaps with focused tests. | 2 | 3 | 0 | 154 | 0 | 16.2 | 27.1 | MIT | 2 months ago | |
| vladahejda/phpunit-assert-exception | 0.87 | A PHPUnit helper that adds an assertException() assertion for testing exceptions thrown inside callbacks. Specify the expected exception class, message, and code in one concise call, reducing boilerplate and making exception tests clearer in PHP projects. | 18 | 20 | 6 | 13 | 0 | 0.3 | 3.1 | — | — | |
| phpspec/prophecy-phpunit | 0.87 | Integrates the Prophecy mocking library with PHPUnit for simpler, cleaner test doubles. Install via Composer and use the ProphecyTrait to call prophesize() inside your TestCase, set method predictions/returns, and reveal mocks for injection. | 195 | 195 | 39 | 1M | 1 | 11.7 | 56.7 | MIT | 8 months ago | |
| padraic/phpunit-extensions | 0.87 | A collection of extensions and helpers for PHPUnit by Padraic Brady, offering convenience assertions, mock utilities, and testing shortcuts that reduce boilerplate and help you write cleaner, more maintainable PHP unit tests. | 17 | 17 | 4 | 353 | 0 | 0.1 | 12.8 | BSD-3-Clause | 9 years ago | |
| rawr/phpunit-data-provider | 0.87 | PHPUnit data provider helper for PHP tests. Simplifies building and organizing datasets, supports readable, reusable providers, and makes parameterized tests easier to maintain. Works with PHPUnit to generate cases cleanly and consistently. | 66 | 66 | 5 | 29K | 2 | 2.2 | 36.6 | MIT | 2 years ago | |
| php-extended/placeholder-phpunit | 0.86 | A placeholder package for PHPUnit in php-extended projects. It provides minimal stubs so libraries can reference PHPUnit types without a hard dependency, keeping production installs lean while remaining compatible when PHPUnit is present. | 0 | 0 | — | 805 | — | 0.0 | 36.3 | — | — | |
| draw/data-tester | 0.86 | Lightweight PHP data testing helper for validating arrays/objects against expected shapes and values. Useful for unit tests and quick assertions, with simple matchers and readable failure messages to spot mismatches fast. | 0 | 0 | 0 | 0 | 0 | 0.6 | — | MIT | 9 years ago | |
| phpunit/phpunit-dom-assertions | 0.86 | 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 |
|
| yoanm/php-unit-extended | 0.86 | A PHPUnit extension for PHP that adds extra test helpers and assertions, reducing boilerplate and making unit tests clearer and easier to maintain alongside PHPUnit's built-in features. | 0 | 0 | 0 | 68 | 0 | 0.1 | 25.4 | MIT | 3 years ago | |
| jasonmccreary/laravel-test-assertions | 0.86 | Adds a trait of extra PHPUnit assertions for Laravel testing. Confirm controllers/actions and named routes use specific FormRequest validation or middleware, compare validation rules (subset or exact), check rule instances, and assert view data is explicitly null. | 349 | 351 | 38 | 140K | 2 | 17.5 | 38.6 | — | 7 months ago | |
| fr3d/swagger-assertions | 0.86 | Laravel testing package adding PHPUnit assertions that validate API responses against your Swagger/OpenAPI definitions. Use it in feature tests to check status codes, schemas, and response structures, keeping documentation and endpoints in sync and catching contract drift early. | 137 | 139 | 27 | 2K | 4 | 2.8 | 17.5 | NOASSERTION | 5 years ago | |
| tflori/phpunit-printer | 0.86 | Custom PHPUnit printers for cleaner test output. Includes TextPrinter for human-friendly, readable progress reporting. Install via Composer and enable via phpunit --printer or printerClass in phpunit.xml; works across multiple PHP/PHPUnit versions. | 0 | 0 | 0 | 197 | 0 | 1.8 | 31.7 | — | 4 years ago | |
| eliashaeussler/phpunit-attributes | 0.86 | PHPUnit Attributes adds modern PHP 8 attributes to define PHPUnit tests, data providers, groups, dependencies and more in a clean, declarative way. Keep test classes readable and reduce annotation/docblock noise while staying compatible with PHPUnit workflows. | 4 | 4 | 1 | 4K | 1 | 11.5 | 43.3 | GPL-3.0 | 7 months ago | |
| maks3w/phpunit-methods-trait | 0.86 | PHP trait exposing PHPUnit TestCase helper methods for use inside reusable test traits. Lets traits call mocking, expectations, and other TestCase APIs without extending TestCase directly; assertions are via PHPUnit\Framework\Assert. | 1 | 2 | 1 | 14 | 0 | 2.8 | 12.5 | NOASSERTION | 5 years ago | |
| php-mock/php-mock | 0.86 | Mock built-in PHP functions like time() or rand() in tests by leveraging PHP’s namespace fallback: define namespaced replacements for unqualified calls. Works in non-global namespaces; supports common test frameworks via integrations (e.g., PHPUnit). | 370 | 375 | 19 | 726K | 3 | 13.0 | 47.8 | WTFPL | 9 months ago | |
| ciaranmcnulty/versionbasedtestskipper | 0.86 | A PHPUnit extension that skips tests based on the running PHP version, letting you annotate tests with version constraints so they are automatically skipped or run on specific PHP versions, keeping suites passing across environments without manual conditional logic. | 4 | 4 | 0 | 70 | 0 | 0.0 | 16.2 | MIT | 6 years ago | |
| bovigo/assert | 0.85 | Functional-style assertions for PHP unit tests. Use assertThat(value, predicate[, description]) for readable checks with helpful failure messages. Integrates with PHPUnit via AssertionFailure extending AssertionFailedError. Requires PHP 8.3+. | 13 | 13 | 5 | 724 | 1 | 11.5 | 24.9 | BSD-3-Clause | 11 months ago |
How can I help you explore Laravel packages today?