mehr-als-nix/assumptions
Assumptions for PHPUnit: skip tests when preconditions aren’t met (PHP version, extensions, etc.). Provides assumeTrue/assumeThat and Hamcrest matchers; failed assumptions are treated as skipped, including in @before/@beforeClass. Similar to @requires.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wyrihaximus/test-utilities | 0.83 | Shared test utilities for PHP projects: a PHPUnit TestCase with helpers like random namespaces and temp directories, plus ready-to-use PHPStan defaults and a preconfigured RectorConfig for common project layouts and doc-tag to attribute conversions. | 7 | 7 | 1 | 36K | 6 | 31.8 | 64.6 | MIT | 4 days ago | |
| codeclimate/php-test-reporter | 0.82 | PHP Test Reporter submits PHPUnit/PHPSpec code coverage to Code Climate. Generates coverage in CI and posts results to your Code Climate repo, helping track test quality over time. Simple CLI setup for common PHP workflows. | 65 | 65 | 32 | 6K | 3 | 24.1 | 34.1 | NOASSERTION | 9 years ago | |
| amphp/phpunit-util | 0.82 | Small utility for simplifying async testing in PHPUnit with AMPHP’s fiber-based concurrency. Integrates seamlessly with AsyncTestCase to run tests as coroutines, ensuring smooth execution of I/O-bound operations like sockets, streams, and HTTP requests. Works with PHP 8.1+. Ideal for testing concurr... | 22 | 22 | 8 | 33K | 2 | 25.1 | 51.7 | MIT | 1 year ago | |
| cocur/vale | 0.81 | cocur/vale is a lightweight PHP value validation library. Define reusable rules to validate strings, numbers, arrays, and objects, and get clear, consistent results without pulling in a full framework—handy for DTOs, APIs, and input sanitization. | 14 | 14 | 1 | 3K | 0 | 20.7 | 37.1 | MIT | 11 years ago | |
| eliashaeussler/phpunit-attributes | 0.81 | 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 | 1K | 1 | 24.6 | 38.7 | GPL-3.0 | 1 month ago | |
| symplify/easy-testing | 0.81 | Utilities for easier PHP unit testing, focused on writing cleaner tests with less boilerplate. Provides helpers and base test cases commonly used in Symplify tools to streamline assertions, fixture handling, and test setup across projects. | 41 | 42 | 3 | 29K | 0 | 0.1 | 27.7 | MIT | — | |
| eliashaeussler/deep-closure-comparator | 0.81 | PHPUnit comparator/assertion that deeply compares closures inside objects/arrays by serializing them via opis/closure. Use DeepClosureAssert::assertEquals() as a drop-in replacement for PHPUnit’s assertEquals when closures should be treated as equal. | 0 | 0 | 0 | 10K | 1 | 21.9 | 65.0 | GPL-3.0 | 1 month ago | |
| bossa/phpspec2-expect | 0.81 | Adds an expect() helper to PhpSpec for simple, expressive assertions like expect($value)->toBe(true). Install via Composer as a dev dependency and use in specs for quick expectation-style checks. | 74 | 76 | 34 | 2K | 1 | 25.1 | 22.4 | MIT | 6 years ago | |
| squizlabs/php_codesniffer | 0.81 | PHP_CodeSniffer (PHPCS) provides phpcs to detect coding standard violations and phpcbf to automatically fix them. Tokenizes PHP files against defined standards to keep code clean and consistent, suitable for teams and CI. | 1,491 | 1,693 | 97 | 6M | 158 | 59.4 | 89.6 | BSD-3-Clause | 4 months ago | |
| hamcrest/hamcrest-php | 0.81 | Official PHP port of Hamcrest matchers for expressive assertions in tests. Use MatcherAssert::assertThat() or convenient global functions (assertThat, equalTo, is, both/andAlso, either/orElse) to build readable, composable matchers with PHP-friendly typing. | 7,066 | 7,091 | 46 | 9M | 10 | 51.5 | 56.0 | NOASSERTION | 11 months ago | |
| simpletest/simpletest | 0.80 | SimpleTest is a PHP unit testing framework with web site testing and mock objects. Install via Composer (simpletest/simpletest) for PHP 7.1+ and run its own unit and acceptance test suites; issues and community support via GitHub and Stack Overflow. | 149 | 153 | 48 | 2K | 3 | 24.5 | 18.7 | LGPL-2.1 | 6 months ago | |
| phpstan/phpstan-phpunit | 0.78 | PHPStan extension for PHPUnit: improves type inference for mocks (intersection types for createMock/getMock), understands Foo|MockObject phpDocs, adds early-terminating methods to avoid undefined vars, and refines assert() types. Optional strict rules catch improper assertion usage. | 527 | 531 | 56 | 3M | 33 | 44.1 | 78.9 | MIT | 1 month ago | |
| zenstruck/assert | 0.76 | Lightweight PHP assertion helpers for cleaner, safer code. zenstruck/assert provides expressive, fluent assertions and value validation with helpful exception messages, improving readability in libraries and Laravel apps without bringing a full testing framework. | 81 | 81 | 5 | 720K | 0 | 25.0 | 64.5 | MIT | 4 months ago | |
| yoast/phpunit-polyfills | 0.75 | Polyfills to write PHPUnit tests compatible across versions. Provides traits, test cases, and utilities that bridge API changes so one test suite can run on PHPUnit 7.5–9 and 11–12. Requires PHP 7.1+. | 183 | 183 | 13 | 1M | 4 | 29.8 | 64.0 | BSD-3-Clause | 7 months ago | |
| beberlei/assert | 0.74 | Lightweight assertion library for validating method arguments and input data in PHP. Provides a fluent, readable API with many built-in rules (string, numeric, email, UUID, collection, etc.), clear exceptions, and easy extensibility for custom constraints. | 2,428 | 2,459 | 186 | 2M | 29 | 57.1 | 65.9 | NOASSERTION | 1 year ago | |
| spatie/phpunit-snapshot-assertions | 0.74 | Add snapshot testing to PHPUnit with simple assertions for JSON, XML, and text. First run creates snapshots; later runs compare outputs and fail on regressions. Ideal for verifying serialized data and responses with minimal test boilerplate. | 695 | 699 | 77 | 608K | 1 | 34.9 | 47.8 | MIT | 1 month ago |
How can I help you explore Laravel packages today?