| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Chekote\NounStore\Key; |
||
| 8 | class SplitPossessionsTest extends KeyTest |
||
| 9 | { |
||
| 10 | /** @var string */ |
||
| 11 | const KEY = 'Customer'; |
||
| 12 | |||
| 13 | public function setUp() |
||
| 14 | { |
||
| 15 | parent::setUp(); |
||
| 16 | |||
| 17 | /* @noinspection PhpUndefinedMethodInspection */ |
||
| 18 | Phake::when($this->key)->splitPossessions(Phake::anyParameters())->thenCallParent(); |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @dataProvider nouns |
||
| 23 | */ |
||
| 24 | public function testSuccessScenario($key, array $parts) |
||
| 25 | { |
||
| 26 | /* @noinspection PhpUndefinedMethodInspection */ |
||
| 27 | $this->assertSame( |
||
| 28 | $parts, |
||
| 29 | Phake::makeVisible($this->key)->splitPossessions($key) |
||
|
|
|||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Data provider of possessive nouns and their component nouns. |
||
| 35 | * |
||
| 36 | * @return array[] |
||
| 37 | */ |
||
| 38 | public function nouns() |
||
| 47 | ]; |
||
| 48 | } |
||
| 49 | } |
||
| 50 |