Skip to content

Instantly share code, notes, and snippets.

@everzet
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save everzet/86960aa56afd62e0decb to your computer and use it in GitHub Desktop.
Save everzet/86960aa56afd62e0decb to your computer and use it in GitHub Desktop.
<?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