Created
October 28, 2012 02:23
-
-
Save mfrost503/3967211 to your computer and use it in GitHub Desktop.
BDD Story 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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