Welcome Guest, Not a member yet? Register   Sign In
Bdd library for php 5.2 and above that can easily be used in CI
#1

[eluser]Unknown[/eluser]
Hi,

I developed a bdd library for my own use in php 5.2 projects. It's at https://github.com/meddulla/Story. You can do stuff like :

Code:
public function scenario_Google()
{
    $this->Given('I am on the http://www.google.com')
    ->Then('I should see Google')
    ->Also('I should not see Bing')
    ->Also('I should see "about.html" in "#fll" selector');
}

Since it uses phpQuery you can create your own steps using css selectors.

There's an example integration with CI and Toast (unit test library) in the README file.

Hope it's useful!

Cheers,

Sofia




Theme © iAndrew 2016 - Forum software by © MyBB