Download the PHP package peridot-php/peridot without Composer
On this page you can find all versions of the php package peridot-php/peridot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download peridot-php/peridot
More information about peridot-php/peridot
Files in peridot-php/peridot
Package peridot
Short Description Event driven BDD test framework for PHP 5.4+
License MIT
Informations about the package peridot
The highly extensible, highly enjoyable, PHP testing framework.
Read more at peridot-php.github.io or head over to the wiki.
Building PHAR
Peridot's phar is built using Box. Once box is installed, the phar can be built using the following command from the project directory:
Generating Peridot's documentation
Peridot API documentation is generated using apigen. Once apigen is installed, run the following command from the project directory:
This will output documentation to the docs/ directory.
Running Peridot's tests
Peridot's test suite can be run using Peridot:
And a sample of output:
Release
We use Robo for releases.
using assert for expectations
Peridot sets ASSERT_CALLBACK
via assert_options in order to throw exceptions when using the native assert
function. Peridot specs are considered passing if they don't throw an exception; if you are using assert
for expectations and you find your specs are triggering false positives, you may need to update zend.assertions
to 1
in your php.ini. This is set to -1
by default in PHP 7+
If you aren't too keen on using assert
for testing, there are a ton of assertion/expectation libraries out there. Anything that throws exceptions in response to a failed assertion will do. The peridot-php org has authored Leo, and this library offers a richer assertion vocabulary for testing.
All versions of peridot with dependencies
evenement/evenement Version ^2
symfony/console Version ^2|^3
phpunit/php-timer Version ^1
peridot-php/peridot-scope Version ^1