Show how to test a PHP class using Behat
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features
Calculator.php
README.md

README.md

Behat is an open source BDD framework for PHP 5.3.

INSTALL

There are 3 methods to install Behat. I prefer to use PEAR

$ pear channel-discover pear.behat.org
$ pear channel-discover pear.symfony.com
$ pear install behat/behat

Test your installation

$ behat

then you should see

  [InvalidArgumentException]
  Provide correct feature(s) path. "/your/current/directory/features" given

You want to install PHPUnit as well.