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