| 1 | <?php |
||
| 12 | class ShorthandTest extends TestCase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Shorthand |
||
| 16 | */ |
||
| 17 | protected $shorthand; |
||
| 18 | |||
| 19 | protected function setUp() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @dataProvider shorthandsProvider |
||
| 28 | * |
||
| 29 | * @param $words |
||
| 30 | * @param $expectedShorthands |
||
| 31 | */ |
||
| 32 | public function testCanGenerateShorthands($words, $expectedShorthands) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @expectedException \Exception |
||
| 42 | * @expectedExceptionMessage Word(s) are required to generate shorthands |
||
| 43 | */ |
||
| 44 | public function testThrowsExceptionForEmptyWords() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return array |
||
| 52 | */ |
||
| 53 | public function shorthandsProvider() |
||
| 113 | } |
||
| 114 |