Created
August 7, 2008 22:48
-
-
Save arthurschreiber/4513 to your computer and use it in GitHub Desktop.
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
<?php | |
namespace FsckUnit; | |
class Bowling | |
{ | |
public $score = 0; | |
public function hit() | |
{ | |
} | |
} | |
describe("A new Bowling Game", function() { | |
before("each", function($state) { | |
$state->bowling = new Bowling(); | |
}); | |
it("should score 0 for gutter game", function($state) { | |
for ($i=1; $i<=20; $i++) { | |
$state->bowling->hit(0); | |
} | |
expect($state->bowling->score)->to("equal", 0); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment