1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- use Behat\Behat\Context\ClosuredContextInterface,
- Behat\Behat\Context\TranslatedContextInterface,
- Behat\Behat\Context\BehatContext,
- Behat\Behat\Exception\PendingException;
- use Behat\Gherkin\Node\PyStringNode,
- Behat\Gherkin\Node\TableNode;
- use Behat\MinkExtension\Context\MinkContext;
- //
- // Require 3rd-party libraries here:
- //
- // require_once 'PHPUnit/Autoload.php';
- // require_once 'PHPUnit/Framework/Assert/Functions.php';
- //
- /**
- * Features context.
- */
- class FeatureContext extends MinkContext
- {
- /**
- * Initializes context.
- * Every scenario gets its own context object.
- *
- * @param array $parameters context parameters (set them up through behat.yml)
- */
- public function __construct(array $parameters)
- {
- // Initialize your context here
- }
- /**
- * @Given /^I click on "([^"]*)"$/
- */
- public function iClickOn($arg1)
- {
- # $findName = $this->getSession()->getPage()->find("css", $arg1);
- # if (!$findName) {
- # throw new Exception($arg1 . " could not be found");
- # } else {
- # $findName->click();
- # }
- }
- /**
- * @Then /^I wait for the suggestion box to appears$/
- */
- public function iWaitForTheSuggestionBoxToAppears()
- {
- $this->getSession()->wait(5000);
- }
- //
- // Place your definition and hook methods here:
- //
- // /**
- // * @Given /^I have done something with "([^"]*)"$/
- // */
- // public function iHaveDoneSomethingWith($argument)
- // {
- // doSomethingWith($argument);
- // }
- //
- }
|