Skip to content

Instantly share code, notes, and snippets.

<?php
return array(
'zfcrbac' => array(
'firewalls' => array(
'ZfcRbac\Firewall\Controller' => array(
array('controller' => 'index', 'actions' => 'index', 'roles' => 'guest')
),
'ZfcRbac\Firewall\Route' => array(
array('route' => 'profiles/add', 'roles' => 'member'),
array('route' => 'admin/*', 'roles' => 'administrator')
Feature: google
I want to search something on google
Scenario: Search something on google
Given I am on "/"
And I fill in "q" with "selenium"
When I press "Google Search"
And I click the first link
Then I should see "selenium"
function waitForMail($subject) {
$lastExceptionMessage = '';
for ($second = 0; ; $second+=2) {
if ($second > 45) {
$this->fail(
"WaitFor timeout. \n"
. "Last exception message: \n" . $lastExceptionMessage
);
}
$this->clickAndWait('link=Search');