PHPackages                             verdephp/verde - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. verdephp/verde

ActiveLibrary[Testing &amp; Quality](/categories/testing)

verdephp/verde
==============

a BDD Style library for your PHP tests

0.1.0(5y ago)103[1 issues](https://github.com/verdephp/verde/issues)[2 PRs](https://github.com/verdephp/verde/pulls)MITPHP

Since Jul 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/verdephp/verde)[ Packagist](https://packagist.org/packages/verdephp/verde)[ RSS](/packages/verdephp-verde/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (10)Versions (4)Used By (0)

Verde
=====

[](#verde)

 [![Verde](https://raw.githubusercontent.com/verdephp/verde/master/art/assert-example.png)](https://raw.githubusercontent.com/verdephp/verde/master/art/assert-example.png) [![Assertion failed example](https://raw.githubusercontent.com/verdephp/verde/master/art/expect-example.png)](https://raw.githubusercontent.com/verdephp/verde/master/art/expect-example.png)

 [ ![GitHub Workflow Status (master)](https://camo.githubusercontent.com/77887fc91eb144ca2aa11277a3598e4dffc1c0776ac0e48cb2165df2effbfd95/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f76657264657068702f76657264652f54657374732f6d6173746572) ](https://github.com/verdephp/verde/actions)

a BDD Style Library for your PHP Tests
--------------------------------------

[](#a-bdd-style-library-for-your-php-tests)

**Verde** is a composer library, inspired to Jasmine and Jest, for writing tests with [PHPUnit](https://phpunit.de/) and [pest](https://pestphp.com/)using BDD style syntax, and nicer exceptions messages.

It also offers [mocks](https://verdephp.github.io/en/mocks.html) and [spies](https://verdephp.github.io/en/spies.html) thanks to the power of [runkit7](https://github.com/runkit7/runkit7).

Getting Started
---------------

[](#getting-started)

```
composer require "verdephp/verde" --dev
```

Then start writing your tests:

```
