Skip to content
This repository
Browse code

Typo fixes in tests

  • Loading branch information...
commit 4176e59e529de2df0dac504b552747a9785dacfe 1 parent 94db313
Kyle Robinson Young authored February 23, 2012

Showing 44 changed files with 82 additions and 88 deletions. Show diff stats Hide diff stats

  1. 2  lib/Cake/Test/Case/Cache/CacheTest.php
  2. 2  lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
  3. 2  lib/Cake/Test/Case/Configure/IniReaderTest.php
  4. 4  lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php
  5. 4  lib/Cake/Test/Case/Controller/Component/Acl/PhpAclTest.php
  6. 6  lib/Cake/Test/Case/Controller/Component/AclComponentTest.php
  7. 2  lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php
  8. 2  lib/Cake/Test/Case/Controller/Component/Auth/FormAuthenticateTest.php
  9. 4  lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
  10. 4  lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
  11. 4  lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php
  12. 10  lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php
  13. 4  lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php
  14. 6  lib/Cake/Test/Case/Core/CakePluginTest.php
  15. 2  lib/Cake/Test/Case/Core/ConfigureTest.php
  16. 2  lib/Cake/Test/Case/Log/CakeLogTest.php
  17. 4  lib/Cake/Test/Case/Model/Behavior/AclBehaviorTest.php
  18. 2  lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php
  19. 4  lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php
  20. 7  lib/Cake/Test/Case/Model/BehaviorCollectionTest.php
  21. 4  lib/Cake/Test/Case/Model/CakeSchemaTest.php
  22. 2  lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php
  23. 2  lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
  24. 2  lib/Cake/Test/Case/Model/ModelReadTest.php
  25. 6  lib/Cake/Test/Case/Model/ModelValidationTest.php
  26. 12  lib/Cake/Test/Case/Model/ModelWriteTest.php
  27. 2  lib/Cake/Test/Case/Model/models.php
  28. 6  lib/Cake/Test/Case/Network/Http/HttpResponseTest.php
  29. 4  lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
  30. 2  lib/Cake/Test/Case/Routing/DispatcherTest.php
  31. 2  lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
  32. 2  lib/Cake/Test/Case/Routing/RouterTest.php
  33. 2  lib/Cake/Test/Case/Utility/CakeTimeTest.php
  34. 2  lib/Cake/Test/Case/Utility/DebuggerTest.php
  35. 4  lib/Cake/Test/Case/Utility/FileTest.php
  36. 18  lib/Cake/Test/Case/Utility/FolderTest.php
  37. 1  lib/Cake/Test/Case/Utility/InflectorTest.php
  38. 4  lib/Cake/Test/Case/Utility/ObjectCollectionTest.php
  39. 2  lib/Cake/Test/Case/Utility/XmlTest.php
  40. 4  lib/Cake/Test/Case/View/Helper/CacheHelperTest.php
  41. 2  lib/Cake/Test/Case/View/Helper/FormHelperTest.php
  42. 2  lib/Cake/Test/Case/View/Helper/SessionHelperTest.php
  43. 2  lib/Cake/Test/Case/View/HelperTest.php
  44. 4  lib/Cake/Test/Case/View/ViewTest.php
2  lib/Cake/Test/Case/Cache/CacheTest.php
@@ -205,7 +205,7 @@ public function testConfigSettingDefaultConfigKey() {
205 205
 	public function testWritingWithConfig() {
206 206
 		$_cacheConfigSessions = Cache::config('sessions');
207 207
 
208  
-		Cache::write('test_somthing', 'this is the test data', 'tests');
  208
+		Cache::write('test_something', 'this is the test data', 'tests');
209 209
 
210 210
 		$expected = array(
211 211
 			'path' => TMP . 'sessions' . DS,
2  lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
@@ -366,7 +366,7 @@ public function testClear() {
366 366
 	}
367 367
 
368 368
 /**
369  
- * test that a 0 duration can succesfully write.
  369
+ * test that a 0 duration can successfully write.
370 370
  *
371 371
  * @return void
372 372
  */
2  lib/Cake/Test/Case/Configure/IniReaderTest.php
@@ -38,7 +38,7 @@ public function setUp() {
38 38
 	}
39 39
 
40 40
 /**
41  
- * test constrction
  41
+ * test construct
42 42
  *
43 43
  * @return void
44 44
  */
4  lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php
@@ -38,7 +38,7 @@ public function testDescription() {
38 38
 	}
39 39
 
40 40
 /**
41  
- * test setting the console epliog
  41
+ * test setting the console epilog
42 42
  *
43 43
  * @return void
44 44
  */
@@ -302,7 +302,7 @@ public function testOptionWithValueStartingWithMinus() {
302 302
 	public function testPositionalArgument() {
303 303
 		$parser = new ConsoleOptionParser('test', false);
304 304
 		$result = $parser->addArgument('name', array('help' => 'An argument'));
305  
-		$this->assertEquals($parser, $result, 'Should returnn this');
  305
+		$this->assertEquals($parser, $result, 'Should return this');
306 306
 	}
307 307
 
308 308
 /**
4  lib/Cake/Test/Case/Controller/Component/Acl/PhpAclTest.php
@@ -146,7 +146,7 @@ public function testCheck() {
146 146
 		$this->assertTrue($this->Acl->check('jan', 'foo/bar'));
147 147
 		$this->assertTrue($this->Acl->check('user/jan', 'foo/bar'));
148 148
 		$this->assertTrue($this->Acl->check('Role/admin', 'controllers/bar'));
149  
-		$this->assertTrue($this->Acl->check(array('User' => array('username' =>'jan')), '/controlers/bar/bll'));
  149
+		$this->assertTrue($this->Acl->check(array('User' => array('username' =>'jan')), '/controllers/bar/bll'));
150 150
 		$this->assertTrue($this->Acl->check('Role/database_manager', 'controllers/db/create'));
151 151
 		$this->assertTrue($this->Acl->check('User/db_manager_2', 'controllers/db/create'));
152 152
 		$this->assertFalse($this->Acl->check('db_manager_2', '/controllers/users/Dashboard'));
@@ -338,7 +338,7 @@ public function testPolicy() {
338 338
 		$this->assertTrue($this->Acl->check('Role/sales', 'controllers/bla/create'));
339 339
 		$this->assertTrue($this->Acl->check('Role/default', 'foo'));
340 340
 		// undefined user, undefined aco
341  
-		$this->assertTrue($this->Acl->check('foobart', 'foo/bar'));
  341
+		$this->assertTrue($this->Acl->check('foobar', 'foo/bar'));
342 342
 
343 343
 		// deny rule: Role.sales -> controllers.*.delete
344 344
 		$this->assertFalse($this->Acl->check('Role/sales', 'controllers/bar/delete'));
6  lib/Cake/Test/Case/Controller/Component/AclComponentTest.php
@@ -51,8 +51,8 @@ public function tearDown() {
51 51
 	}
52 52
 
53 53
 /**
54  
- * test that construtor throws an exception when Acl.classname is a
55  
- * non-existant class
  54
+ * test that constructor throws an exception when Acl.classname is a
  55
+ * non-existent class
56 56
  *
57 57
  * @expectedException CakeException
58 58
  * @return void
@@ -64,7 +64,7 @@ public function testConstrutorException() {
64 64
 	}
65 65
 
66 66
 /**
67  
- * test that adapter() allows control of the interal implementation AclComponent uses.
  67
+ * test that adapter() allows control of the internal implementation AclComponent uses.
68 68
  *
69 69
  * @return void
70 70
  */
2  lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php
@@ -160,7 +160,7 @@ public function testAuthenticateChallenge() {
160 160
 	}
161 161
 
162 162
 /**
163  
- * test authenticate sucesss
  163
+ * test authenticate success
164 164
  *
165 165
  * @return void
166 166
  */
2  lib/Cake/Test/Case/Controller/Component/Auth/FormAuthenticateTest.php
@@ -115,7 +115,7 @@ public function testAuthenticateInjection() {
115 115
 	}
116 116
 
117 117
 /**
118  
- * test authenticate sucesss
  118
+ * test authenticate success
119 119
  *
120 120
  * @return void
121 121
  */
4  lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
@@ -481,7 +481,7 @@ public function testIsAuthorizedMissingFile() {
481 481
 	}
482 482
 
483 483
 /**
484  
- * test that isAuthroized calls methods correctly
  484
+ * test that isAuthorized calls methods correctly
485 485
  *
486 486
  * @return void
487 487
  */
@@ -881,7 +881,7 @@ public function testLoginRedirect() {
881 881
 	}
882 882
 
883 883
 /**
884  
- * test that no redirects or authoization tests occur on the loginAction
  884
+ * test that no redirects or authorization tests occur on the loginAction
885 885
  *
886 886
  * @return void
887 887
  */
4  lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
@@ -162,7 +162,7 @@ public function paginateCount($conditions, $recursive, $extra) {
162 162
 }
163 163
 
164 164
 /**
165  
- * PaginatorControllerCommentclass
  165
+ * PaginatorControllerComment class
166 166
  *
167 167
  * @package       Cake.Test.Case.Controller.Component
168 168
  */
@@ -191,7 +191,7 @@ class PaginatorControllerComment extends CakeTestModel {
191 191
 }
192 192
 
193 193
 /**
194  
- * PaginatorAuthorclass
  194
+ * PaginatorAuthor class
195 195
  *
196 196
  * @package       Cake.Test.Case.Controller.Component
197 197
  */
4  lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php
@@ -189,7 +189,7 @@ public function testInitializeContentTypeWithjQueryAccept() {
189 189
 
190 190
 /**
191 191
  * Test that RequestHandler sets $this->ext when jQuery sends its wonky-ish headers
192  
- * and the application is configured to handle multiplate extensions
  192
+ * and the application is configured to handle multiple extensions
193 193
  *
194 194
  * @return void
195 195
  */
@@ -203,7 +203,7 @@ public function testInitializeContentTypeWithjQueryAcceptAndMultiplesExtensions(
203 203
 	}
204 204
 
205 205
 /**
206  
- * Test that RequestHandler does not set $this->ext when multple accepts are sent.
  206
+ * Test that RequestHandler does not set $this->ext when multiple accepts are sent.
207 207
  *
208 208
  * @return void
209 209
  */
10  lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php
@@ -24,7 +24,6 @@
24 24
 * TestSecurityComponent
25 25
 *
26 26
 * @package       Cake.Test.Case.Controller.Component
27  
-* @package       Cake.Test.Case.Controller.Component
28 27
 */
29 28
 class TestSecurityComponent extends SecurityComponent {
30 29
 
@@ -32,7 +31,7 @@ class TestSecurityComponent extends SecurityComponent {
32 31
  * validatePost method
33 32
  *
34 33
  * @param Controller $controller
35  
- * @return unknown
  34
+ * @return boolean
36 35
  */
37 36
 	public function validatePost($controller) {
38 37
 		return $this->_validatePost($controller);
@@ -43,7 +42,6 @@ public function validatePost($controller) {
43 42
 * SecurityTestController
44 43
 *
45 44
 * @package       Cake.Test.Case.Controller.Component
46  
-* @package       Cake.Test.Case.Controller.Component
47 45
 */
48 46
 class SecurityTestController extends Controller {
49 47
 
@@ -64,7 +62,7 @@ class SecurityTestController extends Controller {
64 62
 /**
65 63
  * failed property
66 64
  *
67  
- * @var bool false
  65
+ * @var boolean false
68 66
  */
69 67
 	public $failed = false;
70 68
 
@@ -97,7 +95,7 @@ public function redirect($url, $status = null, $exit = true) {
97 95
 	}
98 96
 
99 97
 /**
100  
- * Conveinence method for header()
  98
+ * Convenience method for header()
101 99
  *
102 100
  * @param string $status
103 101
  * @return void
@@ -162,7 +160,7 @@ public function tearDown() {
162 160
 	}
163 161
 
164 162
 /**
165  
- * test that initalize can set properties.
  163
+ * test that initialize can set properties.
166 164
  *
167 165
  * @return void
168 166
  */
4  lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php
@@ -150,7 +150,7 @@ public function testComponentParamMergingNoDuplication() {
150 150
 		$Controller->constructClasses();
151 151
 
152 152
 		$expected = array('MergeVar' => array('flag', 'otherFlag', 'redirect' => false));
153  
-		$this->assertEquals($Controller->components, $expected, 'Duplication of settings occured. %s');
  153
+		$this->assertEquals($Controller->components, $expected, 'Duplication of settings occurred. %s');
154 154
 	}
155 155
 
156 156
 /**
@@ -177,7 +177,7 @@ public function testHelperSettingMergingNoDuplication() {
177 177
 		$Controller->constructClasses();
178 178
 
179 179
 		$expected = array('MergeVar' => array('format' => 'html', 'terse'));
180  
-		$this->assertEquals($Controller->helpers, $expected, 'Duplication of settings occured. %s');
  180
+		$this->assertEquals($Controller->helpers, $expected, 'Duplication of settings occurred. %s');
181 181
 	}
182 182
 
183 183
 /**
6  lib/Cake/Test/Case/Core/CakePluginTest.php
@@ -216,7 +216,7 @@ public function testPathNotFound() {
216 216
 	}
217 217
 
218 218
 /**
219  
- * Tests that CakePlugin::loadAll() will load all plgins in the configured folder
  219
+ * Tests that CakePlugin::loadAll() will load all plugins in the configured folder
220 220
  *
221 221
  * @return void
222 222
  */
@@ -227,7 +227,7 @@ public function testLoadAll() {
227 227
 	}
228 228
 
229 229
 /**
230  
- * Tests that CakePlugin::loadAll() will load all plgins in the configured folder with bootstrap loading
  230
+ * Tests that CakePlugin::loadAll() will load all plugins in the configured folder with bootstrap loading
231 231
  *
232 232
  * @return void
233 233
  */
@@ -242,7 +242,7 @@ public function testLoadAllWithDefaults() {
242 242
 	}
243 243
 
244 244
 /**
245  
- * Tests that CakePlugin::loadAll() will load all plgins in the configured folder wit defaults
  245
+ * Tests that CakePlugin::loadAll() will load all plugins in the configured folder wit defaults
246 246
  * and overrides for a plugin
247 247
  *
248 248
  * @return void
2  lib/Cake/Test/Case/Core/ConfigureTest.php
@@ -305,7 +305,7 @@ public function testStoreAndRestoreWithData() {
305 305
 		Configure::write('testing', 'value');
306 306
 		Configure::store('store_test', 'default', array('store_test' => 'one'));
307 307
 		Configure::delete('testing');
308  
-		$this->assertNull(Configure::read('store_test'), 'Calling store with data shouldnt modify runtime.');
  308
+		$this->assertNull(Configure::read('store_test'), 'Calling store with data shouldn\'t modify runtime.');
309 309
 
310 310
 		Configure::restore('store_test', 'default');
311 311
 		$this->assertEquals('one', Configure::read('store_test'));
2  lib/Cake/Test/Case/Log/CakeLogTest.php
@@ -131,7 +131,7 @@ public function testConfig() {
131 131
 	}
132 132
 
133 133
 /**
134  
- * explict tests for drop()
  134
+ * explicit tests for drop()
135 135
  *
136 136
  * @return void
137 137
  **/
4  lib/Cake/Test/Case/Model/Behavior/AclBehaviorTest.php
@@ -30,7 +30,6 @@
30 30
 * Test Person class - self joined model
31 31
 *
32 32
 * @package       Cake.Test.Case.Model.Behavior
33  
-* @package       Cake.Test.Case.Model.Behavior
34 33
 */
35 34
 class AclPerson extends CakeTestModel {
36 35
 
@@ -105,7 +104,6 @@ public function parentNode() {
105 104
 * AclUser class
106 105
 *
107 106
 * @package       Cake.Test.Case.Model.Behavior
108  
-* @package       Cake.Test.Case.Model.Behavior
109 107
 */
110 108
 class AclUser extends CakeTestModel {
111 109
 
@@ -143,7 +141,6 @@ public function parentNode() {
143 141
 * AclPost class
144 142
 *
145 143
 * @package       Cake.Test.Case.Model.Behavior
146  
-* @package       Cake.Test.Case.Model.Behavior
147 144
 */
148 145
 class AclPost extends CakeTestModel {
149 146
 
@@ -181,7 +178,6 @@ public function parentNode() {
181 178
 * AclBehaviorTest class
182 179
 *
183 180
 * @package       Cake.Test.Case.Model.Behavior
184  
-* @package       Cake.Test.Case.Model.Behavior
185 181
 */
186 182
 class AclBehaviorTest extends CakeTestCase {
187 183
 
2  lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php
@@ -870,7 +870,7 @@ public function testTranslateTableWithPrefix() {
870 870
 	}
871 871
 
872 872
 /**
873  
- * Test infinite loops not occuring with unbindTranslation()
  873
+ * Test infinite loops not occurring with unbindTranslation()
874 874
  *
875 875
  * @return void
876 876
  */
4  lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php
@@ -151,11 +151,11 @@ public function testDetectInvalidParent() {
151 151
 	}
152 152
 
153 153
 /**
154  
- * testDetectNoneExistantParent method
  154
+ * testDetectNoneExistentParent method
155 155
  *
156 156
  * @return void
157 157
  */
158  
-	public function testDetectNoneExistantParent() {
  158
+	public function testDetectNoneExistentParent() {
159 159
 		extract($this->settings);
160 160
 		$this->Tree = new $modelClass();
161 161
 		$this->Tree->initialize(2, 2);
7  lib/Cake/Test/Case/Model/BehaviorCollectionTest.php
@@ -550,7 +550,7 @@ public function testDetachWithPluginNames() {
550 550
 	}
551 551
 
552 552
 /**
553  
- * test that attaching a non existant Behavior triggers a cake error.
  553
+ * test that attaching a non existent Behavior triggers a cake error.
554 554
  *
555 555
  * @expectedException MissingBehaviorException
556 556
  * @return void
@@ -793,7 +793,8 @@ public function testBehaviorHasOneFindCallbacks() {
793 793
 		);
794 794
 		//$this->assertEquals($Apple->find('all'), $expected);
795 795
 	}
796  
-	/**
  796
+
  797
+/**
797 798
  * testBehaviorBelongsToFindCallbacks method
798 799
  *
799 800
  * @return void
@@ -1167,7 +1168,7 @@ public function testHasMethodMappedMethods() {
1167 1168
 	}
1168 1169
 
1169 1170
 /**
1170  
- * test hasMethod returrning a 'callback'
  1171
+ * test hasMethod returning a 'callback'
1171 1172
  *
1172 1173
  * @return void
1173 1174
  */
4  lib/Cake/Test/Case/Model/CakeSchemaTest.php
@@ -222,7 +222,7 @@ public function teardown($version) {
222 222
 }
223 223
 
224 224
 /**
225  
- * SchmeaPost class
  225
+ * SchemaPost class
226 226
  *
227 227
  * @package       Cake.Test.Case.Model
228 228
  */
@@ -341,7 +341,7 @@ class SchemaDatatype extends CakeTestModel {
341 341
  * Testdescribe class
342 342
  *
343 343
  * This class is defined purely to inherit the cacheSources variable otherwise
344  
- * testSchemaCreatTable will fail if listSources has already been called and
  344
+ * testSchemaCreateTable will fail if listSources has already been called and
345 345
  * its source cache populated - I.e. if the test is run within a group
346 346
  *
347 347
  * @uses          CakeTestModel
2  lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php
@@ -348,7 +348,7 @@ public function testDelete() {
348 348
  * @return void
349 349
  */
350 350
 	public function testDestroy() {
351  
-		TestCakeSession::write('bulletProof', 'invicible');
  351
+		TestCakeSession::write('bulletProof', 'invincible');
352 352
 		$id = TestCakeSession::id();
353 353
 		TestCakeSession::destroy();
354 354
 
2  lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
@@ -581,7 +581,7 @@ public function testName() {
581 581
 	}
582 582
 
583 583
 /**
584  
- * test that cacheMethod works as exepected
  584
+ * test that cacheMethod works as expected
585 585
  *
586 586
  * @return void
587 587
  */
2  lib/Cake/Test/Case/Model/ModelReadTest.php
@@ -7692,7 +7692,7 @@ public function testVirtualFieldsOrder() {
7692 7692
  *
7693 7693
  */
7694 7694
 	public function testVirtualFieldsMysql() {
7695  
-		$this->skipIf(!($this->db instanceof Mysql), 'The rest of virtualFieds test only compatible with Mysql.');
  7695
+		$this->skipIf(!($this->db instanceof Mysql), 'The rest of virtualFields test only compatible with Mysql.');
7696 7696
 
7697 7697
 		$this->loadFixtures('Post', 'Author');
7698 7698
 		$Post = ClassRegistry::init('Post');
6  lib/Cake/Test/Case/Model/ModelValidationTest.php
@@ -568,7 +568,7 @@ public function testValidatesWithAssociations() {
568 568
 
569 569
 		$Something->create();
570 570
 		$result = $Something->save($data);
571  
-		$this->assertFalse($result, 'Save occured even when with models failed. %s');
  571
+		$this->assertFalse($result, 'Save occurred even when with models failed. %s');
572 572
 		$this->assertEquals($JoinThing->validationErrors, $expectedError);
573 573
 		$count = $Something->find('count', array('conditions' => array('Something.id' => $data['Something']['id'])));
574 574
 		$this->assertSame($count, 0);
@@ -587,7 +587,7 @@ public function testValidatesWithAssociations() {
587 587
 		);
588 588
 		$Something->create();
589 589
 		$result = $Something->save($data);
590  
-		$this->assertFalse($result, 'Save occured even when with models failed. %s');
  590
+		$this->assertFalse($result, 'Save occurred even when with models failed. %s');
591 591
 
592 592
 		$joinRecords = $JoinThing->find('count', array(
593 593
 			'conditions' => array('JoinThing.something_id' => $data['Something']['id'])
@@ -681,7 +681,7 @@ public function testValidatesWithModelsAndSaveAllWithoutId() {
681 681
 
682 682
 /**
683 683
  * Test that missing validation methods trigger errors in development mode.
684  
- * Helps to make developement easier.
  684
+ * Helps to make development easier.
685 685
  *
686 686
  * @expectedException PHPUnit_Framework_Error
687 687
  * @return void
12  lib/Cake/Test/Case/Model/ModelWriteTest.php
@@ -1050,8 +1050,8 @@ public function testSaveWithNonExistentFields() {
1050 1050
 		$data = array(
1051 1051
 			'user_id' => '1',
1052 1052
 			'non_existent' => 'This field does not exist',
1053  
-			'title' => 'Fiveth Article - New Title',
1054  
-			'body' => 'Fiveth Article Body',
  1053
+			'title' => 'Fifth Article - New Title',
  1054
+			'body' => 'Fifth Article Body',
1055 1055
 			'published' => 'N'
1056 1056
 		);
1057 1057
 		$result = $TestModel->create() && $TestModel->save($data);
@@ -1060,8 +1060,8 @@ public function testSaveWithNonExistentFields() {
1060 1060
 		$expected = array('Article' => array(
1061 1061
 			'id' => '5',
1062 1062
 			'user_id' => '1',
1063  
-			'title' => 'Fiveth Article - New Title',
1064  
-			'body' => 'Fiveth Article Body',
  1063
+			'title' => 'Fifth Article - New Title',
  1064
+			'body' => 'Fifth Article Body',
1065 1065
 			'published' => 'N'
1066 1066
 		));
1067 1067
 		$result = $TestModel->read(array('id', 'user_id', 'title', 'body', 'published'), 5);
@@ -4689,7 +4689,7 @@ public function testSaveAllHasManyValidationOnly() {
4689 4689
 	}
4690 4690
 
4691 4691
 /**
4692  
- * test that saveAll behaves like plain save() when suplied empty data
  4692
+ * test that saveAll behaves like plain save() when supplied empty data
4693 4693
  *
4694 4694
  * @link http://cakephp.lighthouseapp.com/projects/42648/tickets/277-test-saveall-with-validation-returns-incorrect-boolean-when-saving-empty-data
4695 4695
  * @return void
@@ -6024,7 +6024,7 @@ public function testSaveManyEmptyData() {
6024 6024
 	}
6025 6025
 
6026 6026
 /**
6027  
- * test that saveAssociated behaves like plain save() when suplied empty data
  6027
+ * test that saveAssociated behaves like plain save() when supplied empty data
6028 6028
  *
6029 6029
  * @link http://cakephp.lighthouseapp.com/projects/42648/tickets/277-test-saveall-with-validation-returns-incorrect-boolean-when-saving-empty-data
6030 6030
  * @return void
2  lib/Cake/Test/Case/Model/models.php
@@ -2070,7 +2070,7 @@ public function customValidatorWithParams($data, $validator, $or = true, $ignore
2070 2070
 	}
2071 2071
 
2072 2072
 /**
2073  
- * Custom validator with messaage
  2073
+ * Custom validator with message
2074 2074
  *
2075 2075
  * @return array
2076 2076
  */
6  lib/Cake/Test/Case/Network/Http/HttpResponseTest.php
@@ -39,7 +39,7 @@ public function parseHeader($header) {
39 39
 /**
40 40
  * Convenience method for testing protected method
41 41
  *
42  
- * @param string $body A string continaing the body to decode
  42
+ * @param string $body A string containing the body to decode
43 43
  * @param mixed $encoding Can be false in case no encoding is being used, or a string representing the encoding
44 44
  * @return mixed Array or false
45 45
  */
@@ -50,7 +50,7 @@ public function decodeBody($body, $encoding = 'chunked') {
50 50
 /**
51 51
  * Convenience method for testing protected method
52 52
  *
53  
- * @param string $body A string continaing the chunked body to decode
  53
+ * @param string $body A string containing the chunked body to decode
54 54
  * @return mixed Array or false
55 55
  */
56 56
 	public function decodeChunkedBody($body) {
@@ -123,7 +123,7 @@ public function testToString() {
123 123
 	}
124 124
 
125 125
 /**
126  
- * testGetHeadr
  126
+ * testGetHeader
127 127
  *
128 128
  * @return void
129 129
  */
4  lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
@@ -107,7 +107,7 @@ public function parseUri($uri = null, $base = array()) {
107 107
  *
108 108
  * @param array $uri A $uri array, or uses $this->config if left empty
109 109
  * @param string $uriTemplate The Uri template/format to use
110  
- * @return string A fully qualified URL formated according to $uriTemplate
  110
+ * @return string A fully qualified URL formatted according to $uriTemplate
111 111
  */
112 112
 	public function buildUri($uri = array(), $uriTemplate = '%scheme://%user:%pass@%host:%port/%path?%query#%fragment') {
113 113
 		return parent::_buildUri($uri, $uriTemplate);
@@ -1538,7 +1538,7 @@ public function testTokenEscapeChars() {
1538 1538
 	}
1539 1539
 
1540 1540
 /**
1541  
- * Test that HttpSocket::escapeToken is escaping all characters as descriped in RFC 2616 (HTTP 1.1 specs)
  1541
+ * Test that HttpSocket::escapeToken is escaping all characters as described in RFC 2616 (HTTP 1.1 specs)
1542 1542
  *
1543 1543
  * @return void
1544 1544
  */
2  lib/Cake/Test/Case/Routing/DispatcherTest.php
@@ -403,7 +403,7 @@ class TestCachedPagesController extends Controller {
403 403
 	);
404 404
 
405 405
 /**
406  
- * Mock out the reponse object so it doesn't send headers.
  406
+ * Mock out the response object so it doesn't send headers.
407 407
  *
408 408
  * @var string
409 409
  */
2  lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
@@ -531,7 +531,7 @@ public function testParseUrlDecodeElements() {
531 531
 	}
532 532
 
533 533
 /**
534  
- * test numerically indexed defaults, get appeneded to pass
  534
+ * test numerically indexed defaults, get appended to pass
535 535
  *
536 536
  * @return void
537 537
  */
2  lib/Cake/Test/Case/Routing/RouterTest.php
@@ -2110,7 +2110,7 @@ public function testStripPlugin() {
2110 2110
 	}
2111 2111
 
2112 2112
 /**
2113  
- * testCurentRoute
  2113
+ * testCurrentRoute
2114 2114
  *
2115 2115
  * This test needs some improvement and actual requestAction() usage
2116 2116
  *
2  lib/Cake/Test/Case/Utility/CakeTimeTest.php
@@ -800,7 +800,7 @@ public function testI18nFormat() {
800 800
 	}
801 801
 
802 802
 /**
803  
- * test new format() syntax which inverts first and secod parameters
  803
+ * test new format() syntax which inverts first and second parameters
804 804
  *
805 805
  * @return void
806 806
  */
2  lib/Cake/Test/Case/Utility/DebuggerTest.php
@@ -201,7 +201,7 @@ public function testOutputAs() {
201 201
 	}
202 202
 
203 203
 /**
204  
- * Test that choosing a non-existant format causes an exception
  204
+ * Test that choosing a non-existent format causes an exception
205 205
  *
206 206
  * @expectedException CakeException
207 207
  * @return void
4  lib/Cake/Test/Case/Utility/FileTest.php
@@ -236,11 +236,11 @@ public function testCreate() {
236 236
 	}
237 237
 
238 238
 /**
239  
- * testOpeningNonExistantFileCreatesIt method
  239
+ * testOpeningNonExistentFileCreatesIt method
240 240
  *
241 241
  * @return void
242 242
  */
243  
-	public function testOpeningNonExistantFileCreatesIt() {
  243
+	public function testOpeningNonExistentFileCreatesIt() {
244 244
 		$someFile = new File(TMP . 'some_file.txt', false);
245 245
 		$this->assertTrue($someFile->open());
246 246
 		$this->assertEquals('', $someFile->read());
18  lib/Cake/Test/Case/Utility/FolderTest.php
@@ -125,7 +125,7 @@ public function testInPath() {
125 125
 	}
126 126
 
127 127
 /**
128  
- * test creation of single and mulitple paths.
  128
+ * test creation of single and multiple paths.
129 129
  *
130 130
  * @return void
131 131
  */
@@ -162,7 +162,7 @@ public function testCreateWithTrailingDs() {
162 162
 	}
163 163
 
164 164
 /**
165  
- * test recurisve directory create failure.
  165
+ * test recursive directory create failure.
166 166
  *
167 167
  * @return void
168 168
  */
@@ -731,15 +731,15 @@ public function testFindRecursive() {
731 731
 	}
732 732
 
733 733
 /**
734  
- * testConstructWithNonExistantPath method
  734
+ * testConstructWithNonExistentPath method
735 735
  *
736 736
  * @return void
737 737
  */
738  
-	public function testConstructWithNonExistantPath() {
739  
-		$Folder = new Folder(TMP . 'config_non_existant', true);
740  
-		$this->assertTrue(is_dir(TMP . 'config_non_existant'));
  738
+	public function testConstructWithNonExistentPath() {
  739
+		$Folder = new Folder(TMP . 'config_non_existent', true);
  740
+		$this->assertTrue(is_dir(TMP . 'config_non_existent'));
741 741
 		$Folder->cd(TMP);
742  
-		$Folder->delete($Folder->pwd() . 'config_non_existant');
  742
+		$Folder->delete($Folder->pwd() . 'config_non_existent');
743 743
 	}
744 744
 
745 745
 /**
@@ -748,7 +748,7 @@ public function testConstructWithNonExistantPath() {
748 748
  * @return void
749 749
  */
750 750
 	public function testDirSize() {
751  
-		$Folder = new Folder(TMP . 'config_non_existant', true);
  751
+		$Folder = new Folder(TMP . 'config_non_existent', true);
752 752
 		$this->assertEquals($Folder->dirSize(), 0);
753 753
 
754 754
 		$File = new File($Folder->pwd() . DS . 'my.php', true, 0777);
@@ -758,7 +758,7 @@ public function testDirSize() {
758 758
 		$this->assertEquals($Folder->dirSize(), 14);
759 759
 
760 760
 		$Folder->cd(TMP);
761  
-		$Folder->delete($Folder->pwd() . 'config_non_existant');
  761
+		$Folder->delete($Folder->pwd() . 'config_non_existent');
762 762
 	}
763 763
 
764 764
 /**
1  lib/Cake/Test/Case/Utility/InflectorTest.php
@@ -28,7 +28,6 @@
28 28
 /**
29 29
  * Short description for class.
30 30
  *
31  
- * @package		  cake.tests
32 31
  * @package       Cake.Test.Case.Utility
33 32
  */
34 33
 class InflectorTest extends CakeTestCase {
4  lib/Cake/Test/Case/Utility/ObjectCollectionTest.php
@@ -352,7 +352,7 @@ public function testTriggerModParamsInvalidIndex() {
352 352
 	}
353 353
 
354 354
 /**
355  
- * test that returrning null doesn't modify parameters.
  355
+ * test that returning null doesn't modify parameters.
356 356
  *
357 357
  * @return void
358 358
  */
@@ -383,7 +383,7 @@ public function testTriggerModParamsNullIgnored() {
383 383
 	}
384 384
 
385 385
 /**
386  
- * test order of callbacks trigerring based on priority.
  386
+ * test order of callbacks triggering based on priority.
387 387
  *
388 388
  * @return void
389 389
  */
2  lib/Cake/Test/Case/Utility/XmlTest.php
@@ -712,7 +712,7 @@ public function testSoap() {
712 712
 /**
713 713
  * testNamespace
714 714
  *
715  
- * @retun void
  715
+ * @return void
716 716
  */
717 717
 	public function testNamespace() {
718 718
 		$xmlResponse = Xml::build('<root xmlns:ns="http://cakephp.org"><ns:tag id="1"><child>good</child><otherchild>bad</otherchild></ns:tag><tag>Tag without ns</tag></root>');
4  lib/Cake/Test/Case/View/Helper/CacheHelperTest.php
@@ -525,9 +525,9 @@ public function testCacheWithCustomRoutes() {
525 525
 /**
526 526
  * test ControllerName contains AppName
527 527
  *
528  
- * This test verifys view cache is created correctly when the app name is contained in part of the controller name.
  528
+ * This test verifies view cache is created correctly when the app name is contained in part of the controller name.
529 529
  * (webapp Name) base name is 'cache' controller is 'cacheTest' action is 'cache_name'
530  
- * apps url would look somehing like http://localhost/cache/cacheTest/cache_name
  530
+ * apps url would look something like http://localhost/cache/cacheTest/cache_name
531 531
  *
532 532
  * @return void
533 533
  **/
2  lib/Cake/Test/Case/View/Helper/FormHelperTest.php
@@ -1547,7 +1547,7 @@ public function testEmptyErrorValidation() {
1547 1547
 /**
1548 1548
  * testEmptyInputErrorValidation method
1549 1549
  *
1550  
- * test validation error div when validation message is overriden by an empty string when calling input()
  1550
+ * test validation error div when validation message is overridden by an empty string when calling input()
1551 1551
  *
1552 1552
  * @access public
1553 1553
  * @return void
2  lib/Cake/Test/Case/View/Helper/SessionHelperTest.php
@@ -172,7 +172,7 @@ public function testFlashElementInAttrs() {
172 172
 	}
173 173
 
174 174
 /**
175  
- * test using eleents in plugins.
  175
+ * test using elements in plugins.
176 176
  *
177 177
  * @return void
178 178
  */
2  lib/Cake/Test/Case/View/HelperTest.php
@@ -256,7 +256,7 @@ public static function entityProvider() {
256 256
 	}
257 257
 
258 258
 /**
259  
- * Test setting an entity and retriving the entity, model and field.
  259
+ * Test setting an entity and retrieving the entity, model and field.
260 260
  *
261 261
  * @dataProvider entityProvider
262 262
  * @return void
4  lib/Cake/Test/Case/View/ViewTest.php
@@ -655,9 +655,9 @@ public function testElement() {
655 655
 		$result = $this->View->element('test_plugin_element');
656 656
 		$this->assertEquals($result, 'this is the test set using View::$plugin plugin element');
657 657
 
658  
-		$result = $this->View->element('non_existant_element');
  658
+		$result = $this->View->element('non_existent_element');
659 659
 		$this->assertRegExp('/Not Found:/', $result);
660  
-		$this->assertRegExp('/non_existant_element/', $result);
  660
+		$this->assertRegExp('/non_existent_element/', $result);
661 661
 
662 662
 		$result = $this->View->element('TestPlugin.plugin_element', array(), array('plugin' => 'test_plugin'));
663 663
 		$this->assertRegExp('/Not Found:/', $result);

0 notes on commit 4176e59

Please sign in to comment.
Something went wrong with that request. Please try again.