Registry / testing / peridot-php-leo

peridot-php-leo

JSON →
library1.6.1phppackagistunverified

Next level assertion and matcher library for PHP, inspired by Chai.js.

composer require peridot-php/leo
INSTALL
IMPORT
SIG · PERIDOT-PHP-LEO
P
peridot-php-leo
testingphpv1.6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Assertion
use Peridot\Leo\Assertion;

Assert that a value equals 42 using Leo's fluent interface.

<?php\nuse Peridot\\Leo\\Assertion;\n\n$assert = new Assertion();\n$assert->that(42)->equals(42);\necho 'Assertion passed';
Debug
Known issues
breakingRequires PHP 7.1+; not compatible with PHP 8.0+ in some edge cases.
fix
Use PHP 7.1-7.4 or check for updates.
affects: <2.0
Upgrade
Version history
1.6.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
peridot-php-leo — pip install peridot-php-leo · libregistry