Download the PHP package fr3on/php-hypothesis without Composer
On this page you can find all versions of the php package fr3on/php-hypothesis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fr3on/php-hypothesis
More information about fr3on/php-hypothesis
Files in fr3on/php-hypothesis
Download fr3on/php-hypothesis
More information about fr3on/php-hypothesis
Files in fr3on/php-hypothesis
Vendor fr3on
Package php-hypothesis
Short Description Smarter property-based testing for PHP 8.4+
License MIT
Package php-hypothesis
Short Description Smarter property-based testing for PHP 8.4+
License MIT
Please rate this library. Is it a good library?
Informations about the package php-hypothesis
php-hypothesis
Property-based testing for PHP 8.4+, inspired by the Python Hypothesis library.
Features
- Property-Based Testing: Define properties that should always be true, and let the library find counter-examples.
- Smart Shrinking: When a failure is found, the library automatically shrinks the input to the smallest possible failing case.
- PHP 8.4+ Attributes: Use the
#[Given]attribute for clean, declarative test definitions. - PHPUnit Integration: Seamlessly integrates with PHPUnit 11+.
- Zero Runtime Dependencies: Lightweight and fast.
Installation
Quick Start
How it Works
- Generation: The library generates random data based on the "Shapes" you define (Integer, String, List, etc.).
- Execution: Your test runs multiple times (default 100) with different inputs.
- Shrinking: If a failure occurs, the library iteratively simplifies the input to find the "minimal reproducible case".
- Result: You get a clear report of exactly what caused the property to fail.
License
MIT
All versions of php-hypothesis with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.4
The package fr3on/php-hypothesis contains the following files
Loading the files please wait ...