Created
June 11, 2014 08:59
-
-
Save MacDada/b8a3d48c6682e13ae86e 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 | |
return | |
[ | |
'It is initializable' => function () | |
{ | |
$this->shouldHaveType('StringCalculator'); | |
}, | |
'It requires string input' => function () | |
{ | |
$this->shouldThrow('\InvalidArgumentException')->during('add', [null]); | |
}, | |
'It adds 2 numbers separated by comma' => function () | |
{ | |
$this->add('1,2')->shouldReturn(3); | |
}, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment