PHPackages                             atoum/bdd-extension - 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. atoum/bdd-extension

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

atoum/bdd-extension
===================

atoum Spec BDD extension

3.0.0(2y ago)535.0k46BSD-3-ClausePHPPHP ^5.4.0 || ^7.0.0 || ^8.0.0

Since Dec 1Pushed 2y ago7 watchersCompare

[ Source](https://github.com/atoum/bdd-extension)[ Packagist](https://packagist.org/packages/atoum/bdd-extension)[ Docs](http://www.atoum.org)[ RSS](/packages/atoum-bdd-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (14)Used By (6)

atoum/bdd-extension [![Build Status](https://camo.githubusercontent.com/797e34b92767a03990ac1e8408f604fe1f6c262a6ede1289e7dc8588f37682b1/68747470733a2f2f7472617669732d63692e6f72672f61746f756d2f6264642d657874656e73696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/atoum/bdd-extension)
============================================================================================================================================================================================================================================================================================================

[](#atoumbdd-extension-)

This extensions helps you to write your tests (specs) in a [Behavior Driven development](https://en.wikipedia.org/wiki/Behavior-driven_development) fashion.

Example
-------

[](#example)

```
public function should_format_underscore_separated_method_name()
{
    $this
        ->given($formatter = new testedClass())
        ->then
            ->invoking->format(__FUNCTION__)->on($formatter)
                ->shouldReturn('should format underscore separated method name')
    ;
}
```

and the output will look like this :

[![output example](doc/output_example.png)](doc/output_example.png)

Install it
----------

[](#install-it)

Install extension using [composer](https://getcomposer.org):

```
composer require --dev atoum/bdd-extension

```

Enable the extension using atoum configuration file:

```
