Skip to content

Instantly share code, notes, and snippets.

View cystbear's full-sized avatar
🚴‍♂️
🏄🏕️

Oleg Zinchenko cystbear

🚴‍♂️
🏄🏕️
View GitHub Profile
<?php
class DefaultController extends Controller
{
/**
* Dashboard page.
* @Permissions(perm="dashboard_view")
* @Route("/", name="ITEDashboardBundle_index")
* @Template()
* @return array
@cystbear
cystbear / FeatureContext.php
Created November 16, 2011 20:24
Behat meta steps -- tiny example
<?php
/**
* @Given /^I logged in as "([^"]*)" with "([^"]*)" password$/
*/
public function iLoggedInAsWithPassword($username, $password)
{
return array(
new Step\Given("I am on \"/login\""),
new Step\When("I fill in \"Username\" with \"$username\""),