@@ -107,6 +107,6 @@ |
||
| 107 | 107 | * @return bool |
| 108 | 108 | */ |
| 109 | 109 | protected function isPossessive($key) { |
| 110 | - return strpos($key, self::POSSESSION) !== false; |
|
| 110 | + return strpos($key, self::POSSESSION) !== false; |
|
| 111 | 111 | } |
| 112 | 112 | } |
@@ -7,59 +7,59 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | class IsPossessiveTest extends KeyTest |
| 9 | 9 | { |
| 10 | - public function setUp() |
|
| 11 | - { |
|
| 10 | + public function setUp() |
|
| 11 | + { |
|
| 12 | 12 | parent::setUp(); |
| 13 | 13 | |
| 14 | 14 | /* @noinspection PhpUndefinedMethodInspection */ |
| 15 | 15 | Phake::when($this->key)->isPossessive(Phake::anyParameters())->thenCallParent(); |
| 16 | - } |
|
| 16 | + } |
|
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * @dataProvider possessiveNouns |
|
| 20 | - */ |
|
| 21 | - public function testReturnsTrueForPossessiveNoun($noun) { |
|
| 18 | + /** |
|
| 19 | + * @dataProvider possessiveNouns |
|
| 20 | + */ |
|
| 21 | + public function testReturnsTrueForPossessiveNoun($noun) { |
|
| 22 | 22 | /* @noinspection PhpUndefinedMethodInspection */ |
| 23 | 23 | $this->assertTrue( |
| 24 | 24 | Phake::makeVisible($this->key)->isPossessive($noun), |
| 25 | 25 | "'$noun' should be considered a possessive noun" |
| 26 | 26 | ); |
| 27 | - } |
|
| 27 | + } |
|
| 28 | 28 | |
| 29 | - /** |
|
| 30 | - * Data provider of possessive nouns |
|
| 31 | - * |
|
| 32 | - * @return string[] |
|
| 33 | - */ |
|
| 34 | - public function possessiveNouns() { |
|
| 29 | + /** |
|
| 30 | + * Data provider of possessive nouns |
|
| 31 | + * |
|
| 32 | + * @return string[] |
|
| 33 | + */ |
|
| 34 | + public function possessiveNouns() { |
|
| 35 | 35 | return [ |
| 36 | 36 | ["Customer's Car"], |
| 37 | 37 | ["8th Customer's Car"], |
| 38 | 38 | ["Customer's 2nd Car"], |
| 39 | 39 | ["7th Customer's 4th Car"], |
| 40 | 40 | ]; |
| 41 | - } |
|
| 41 | + } |
|
| 42 | 42 | |
| 43 | - /** |
|
| 44 | - * @dataProvider nonPossessiveNouns |
|
| 45 | - */ |
|
| 46 | - public function testReturnsFalseForNonPossessiveNoun($noun) { |
|
| 43 | + /** |
|
| 44 | + * @dataProvider nonPossessiveNouns |
|
| 45 | + */ |
|
| 46 | + public function testReturnsFalseForNonPossessiveNoun($noun) { |
|
| 47 | 47 | /* @noinspection PhpUndefinedMethodInspection */ |
| 48 | 48 | $this->assertFalse( |
| 49 | 49 | Phake::makeVisible($this->key)->isPossessive($noun), |
| 50 | 50 | "'$noun' should not be considered a possessive noun" |
| 51 | 51 | ); |
| 52 | - } |
|
| 52 | + } |
|
| 53 | 53 | |
| 54 | - /** |
|
| 55 | - * Data provider of non possessive nouns |
|
| 56 | - * |
|
| 57 | - * @return string[] |
|
| 58 | - */ |
|
| 59 | - public function nonPossessiveNouns() { |
|
| 54 | + /** |
|
| 55 | + * Data provider of non possessive nouns |
|
| 56 | + * |
|
| 57 | + * @return string[] |
|
| 58 | + */ |
|
| 59 | + public function nonPossessiveNouns() { |
|
| 60 | 60 | return [ |
| 61 | 61 | ['Item'], |
| 62 | 62 | ['1st Item'], |
| 63 | 63 | ]; |
| 64 | - } |
|
| 64 | + } |
|
| 65 | 65 | } |