Skip to content

Instantly share code, notes, and snippets.

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