@@ -60,15 +60,15 @@ |
||
| 60 | 60 | { |
| 61 | 61 | return [ |
| 62 | 62 | // key parsed key expected |
| 63 | - 'Noun without index returns most recent noun' => [StoreTestCase::KEY, [[StoreTestCase::KEY, null]], StoreTestCase::$mostRecentValue], |
|
| 64 | - 'Noun with index returns specific noun' => ['1st ' . StoreTestCase::KEY, [[StoreTestCase::KEY, 0]], StoreTestCase::$firstValue], |
|
| 65 | - 'Non-existent noun returns null' => ['3rd ' . StoreTestCase::KEY, [[StoreTestCase::KEY, 2]], null], |
|
| 66 | - 'Possessive noun w/o index string property' => [StoreTestCase::KEY . "'s color", [[StoreTestCase::KEY, null], ['color', null]], 'Blue'], |
|
| 67 | - 'Possessive noun with index string property' => ['1st ' . StoreTestCase::KEY . "'s color", [[StoreTestCase::KEY, 0], ['color', null]], 'Red'], |
|
| 68 | - 'Possessive noun w/o index collection w/o index' => [StoreTestCase::KEY . "'s option", [[StoreTestCase::KEY, null], ['option', null]], ['Cruise Control', 'Air Conditioning']], |
|
| 69 | - 'Possessive noun with index collection w/o index' => ['1st ' . StoreTestCase::KEY . "'s option", [[StoreTestCase::KEY, 0], ['option', null]], ['GPS', 'Heated Seats']], |
|
| 70 | - 'Possessive noun w/o index collection with index' => [StoreTestCase::KEY . "'s 1st option", [[StoreTestCase::KEY, null], ['option', 0]], 'Cruise Control'], |
|
| 71 | - 'Possessive noun with index collection with index' => ['1st ' . StoreTestCase::KEY . "'s 1st option", [[StoreTestCase::KEY, 0], ['option', 0]], 'GPS'], |
|
| 63 | + 'Noun without index returns most recent noun' => [StoreTestCase::KEY, [[StoreTestCase::KEY, null]], StoreTestCase::$mostRecentValue], |
|
| 64 | + 'Noun with index returns specific noun' => ['1st ' . StoreTestCase::KEY, [[StoreTestCase::KEY, 0]], StoreTestCase::$firstValue], |
|
| 65 | + 'Non-existent noun returns null' => ['3rd ' . StoreTestCase::KEY, [[StoreTestCase::KEY, 2]], null], |
|
| 66 | + 'Possessive noun w/o index string property' => [StoreTestCase::KEY . "'s color", [[StoreTestCase::KEY, null], ['color', null]], 'Blue'], |
|
| 67 | + 'Possessive noun with index string property' => ['1st ' . StoreTestCase::KEY . "'s color", [[StoreTestCase::KEY, 0], ['color', null]], 'Red'], |
|
| 68 | + 'Possessive noun w/o index collection w/o index' => [StoreTestCase::KEY . "'s option", [[StoreTestCase::KEY, null], ['option', null]], ['Cruise Control', 'Air Conditioning']], |
|
| 69 | + 'Possessive noun with index collection w/o index' => ['1st ' . StoreTestCase::KEY . "'s option", [[StoreTestCase::KEY, 0], ['option', null]], ['GPS', 'Heated Seats']], |
|
| 70 | + 'Possessive noun w/o index collection with index' => [StoreTestCase::KEY . "'s 1st option", [[StoreTestCase::KEY, null], ['option', 0]], 'Cruise Control'], |
|
| 71 | + 'Possessive noun with index collection with index' => ['1st ' . StoreTestCase::KEY . "'s 1st option", [[StoreTestCase::KEY, 0], ['option', 0]], 'GPS'], |
|
| 72 | 72 | ]; |
| 73 | 73 | } |
| 74 | 74 | } |
@@ -10,11 +10,11 @@ |
||
| 10 | 10 | |
| 11 | 11 | abstract class AssertTestCase extends TestCase |
| 12 | 12 | { |
| 13 | - protected IMock|AssertPhake $assert; |
|
| 13 | + protected IMock | AssertPhake $assert; |
|
| 14 | 14 | |
| 15 | - protected IMock|StorePhake $store; |
|
| 15 | + protected IMock | StorePhake $store; |
|
| 16 | 16 | |
| 17 | - protected IMock|KeyPhake $key; |
|
| 17 | + protected IMock | KeyPhake $key; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Sets up the environment before each test. |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | |
| 11 | 11 | abstract class StoreTestCase extends TestCase |
| 12 | 12 | { |
| 13 | - protected IMock|KeyPhake $key; |
|
| 13 | + protected IMock | KeyPhake $key; |
|
| 14 | 14 | |
| 15 | - protected IMock|StorePhake $store; |
|
| 15 | + protected IMock | StorePhake $store; |
|
| 16 | 16 | |
| 17 | 17 | /** the first value stored under self::KEY */ |
| 18 | 18 | protected static stdClass $firstValue; |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | { |
| 11 | 11 | const INVALID_KEY = "It's's invalid because of the double apostrophe"; |
| 12 | 12 | |
| 13 | - protected IMock|KeyPhake $key; |
|
| 13 | + protected IMock | KeyPhake $key; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * Sets up the environment before each test. |