Skip to content

Instantly share code, notes, and snippets.

@mfrost503
Created October 28, 2012 02:23
Show Gist options
  • Save mfrost503/3967211 to your computer and use it in GitHub Desktop.
Save mfrost503/3967211 to your computer and use it in GitHub Desktop.
BDD Story 1
/**
* @test
* Given that we're provided a valid number in miles
* Then we should be able to retrieve the kilometer equivalent
* @dataProvider getMilesToKm
**/
public function ConvertMilesToKilometers($miles,$expected)
{
$this->distance
->setDistance($miles)
->setUnit('mi');
$this->assertEquals($expected, $this->distance->getDistance('km'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment