This repository has been archived by the owner. It is now read-only.
No description, website, or topics provided.
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features
.gitignore
LICENSE.mb
README.md
behat.yml.dist
composer.json

README.md

BehatMonolog-example

Example implementation of MonologExtension for Behat.

Usage

Clone the repo

$ git@github.com:swestcott/BehatMonolog-example.git

And install dependancies via composer,

$ cd BehatMonolog-example
$ curl http://getcomposer.org/installer | php
$ php composer.phar install

And execute behat,

$ bin/behat

Then /tmp/behat should contain,

[2013-01-31 00:00:00] FeatureContext.INFO: Initialised calculator ["stdClass"] []
[2013-01-31 00:00:00] AdditionContext.INFO: Adding values ["2","3"] []
[2013-01-31 00:00:00] FeatureContext.INFO: Asserting expected result "5" equals "5" [] []
[2013-01-31 00:00:00] FeatureContext.INFO: Initialised calculator ["stdClass"] []
[2013-01-31 00:00:00] SubtractionContext.INFO: Substracting values ["2","3"] []
[2013-01-31 00:00:00] FeatureContext.INFO: Asserting expected result "1" equals "1" [] []
[2013-01-31 00:00:00] FeatureContext.INFO: Initialised calculator ["stdClass"] []
[2013-01-31 00:00:00] MultiplicationContext.INFO: Multiplying values ["2","3"] []
[2013-01-31 00:00:00] FeatureContext.INFO: Asserting expected result "6" equals "6" [] []
[2013-01-31 00:00:00] FeatureContext.INFO: Initialised calculator ["stdClass"] []
[2013-01-31 00:00:00] DivisionContext.INFO: Dividing values ["3","2"] []
[2013-01-31 00:00:00] FeatureContext.INFO: Asserting expected result "1.5" equals "1.5" [] []