Created
December 13, 2011 14:36
-
-
Save sletix/1472325 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| require_once 'Bowling.php'; | |
| class DescribeNewBowlingGame extends PHPSpec_Context | |
| { | |
| private $_bowling = null; | |
| public function before() | |
| { | |
| $this->_bowling = new Bowling; | |
| } | |
| public function itShouldScore0ForGutterGame() | |
| { | |
| // allow 20 throws | |
| for ($i=1; $i<=20; $i++) { | |
| $this->_bowling->hit(0); | |
| } | |
| $this->spec($this->_bowling->score)->should->equal(0); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment