Skip to content

Instantly share code, notes, and snippets.

@everzet everzet/ESContext.php
Last active Aug 29, 2015

Embed
What would you like to do?
<?php
class ESContext
{
/**
* @Given a conference named :name with :count track(s) was scheduled
*/
public function aConferenceNamedWithTrack($name, $count)
{
$this->dispatchEvent(ConferenceNamedWithTracksWasScheduled($name, $count));
}
}
<?php
class LayeredContext
{
/**
* @Given a conference named :name with :count track(s) was scheduled
*/
public function aConferenceNamedWithTrack($name, $count)
{
$this->conference = Conference::namedWithTracks($name, $count);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.