Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Typo fixes in tests

  • Loading branch information...
commit 4176e59e529de2df0dac504b552747a9785dacfe 1 parent 94db313
@shama shama authored
Showing with 82 additions and 88 deletions.
  1. +1 −1  lib/Cake/Test/Case/Cache/CacheTest.php
  2. +1 −1  lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
  3. +1 −1  lib/Cake/Test/Case/Configure/IniReaderTest.php
  4. +2 −2 lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php
  5. +2 −2 lib/Cake/Test/Case/Controller/Component/Acl/PhpAclTest.php
  6. +3 −3 lib/Cake/Test/Case/Controller/Component/AclComponentTest.php
  7. +1 −1  lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php
  8. +1 −1  lib/Cake/Test/Case/Controller/Component/Auth/FormAuthenticateTest.php
  9. +2 −2 lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
  10. +2 −2 lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
  11. +2 −2 lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php
  12. +4 −6 lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php
  13. +2 −2 lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php
  14. +3 −3 lib/Cake/Test/Case/Core/CakePluginTest.php
  15. +1 −1  lib/Cake/Test/Case/Core/ConfigureTest.php
  16. +1 −1  lib/Cake/Test/Case/Log/CakeLogTest.php
  17. +0 −4 lib/Cake/Test/Case/Model/Behavior/AclBehaviorTest.php
  18. +1 −1  lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php
  19. +2 −2 lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php
  20. +4 −3 lib/Cake/Test/Case/Model/BehaviorCollectionTest.php
  21. +2 −2 lib/Cake/Test/Case/Model/CakeSchemaTest.php
  22. +1 −1  lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php
  23. +1 −1  lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
  24. +1 −1  lib/Cake/Test/Case/Model/ModelReadTest.php
  25. +3 −3 lib/Cake/Test/Case/Model/ModelValidationTest.php
  26. +6 −6 lib/Cake/Test/Case/Model/ModelWriteTest.php
  27. +1 −1  lib/Cake/Test/Case/Model/models.php
  28. +3 −3 lib/Cake/Test/Case/Network/Http/HttpResponseTest.php
  29. +2 −2 lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
  30. +1 −1  lib/Cake/Test/Case/Routing/DispatcherTest.php
  31. +1 −1  lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
  32. +1 −1  lib/Cake/Test/Case/Routing/RouterTest.php
  33. +1 −1  lib/Cake/Test/Case/Utility/CakeTimeTest.php
  34. +1 −1  lib/Cake/Test/Case/Utility/DebuggerTest.php
  35. +2 −2 lib/Cake/Test/Case/Utility/FileTest.php
  36. +9 −9 lib/Cake/Test/Case/Utility/FolderTest.php
  37. +0 −1  lib/Cake/Test/Case/Utility/InflectorTest.php
  38. +2 −2 lib/Cake/Test/Case/Utility/ObjectCollectionTest.php
  39. +1 −1  lib/Cake/Test/Case/Utility/XmlTest.php
  40. +2 −2 lib/Cake/Test/Case/View/Helper/CacheHelperTest.php
  41. +1 −1  lib/Cake/Test/Case/View/Helper/FormHelperTest.php
  42. +1 −1  lib/Cake/Test/Case/View/Helper/SessionHelperTest.php
  43. +1 −1  lib/Cake/Test/Case/View/HelperTest.php
  44. +2 −2 lib/Cake/Test/Case/View/ViewTest.php
View
2  lib/Cake/Test/Case/Cache/CacheTest.php
@@ -205,7 +205,7 @@ public function testConfigSettingDefaultConfigKey() {
public function testWritingWithConfig() {
$_cacheConfigSessions = Cache::config('sessions');
- Cache::write('test_somthing', 'this is the test data', 'tests');
+ Cache::write('test_something', 'this is the test data', 'tests');
$expected = array(
'path' => TMP . 'sessions' . DS,
View
2  lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
@@ -366,7 +366,7 @@ public function testClear() {
}
/**
- * test that a 0 duration can succesfully write.
+ * test that a 0 duration can successfully write.
*
* @return void
*/
View
2  lib/Cake/Test/Case/Configure/IniReaderTest.php
@@ -38,7 +38,7 @@ public function setUp() {
}
/**
- * test constrction
+ * test construct
*
* @return void
*/
View
4 lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php
@@ -38,7 +38,7 @@ public function testDescription() {
}
/**
- * test setting the console epliog
+ * test setting the console epilog
*
* @return void
*/
@@ -302,7 +302,7 @@ public function testOptionWithValueStartingWithMinus() {
public function testPositionalArgument() {
$parser = new ConsoleOptionParser('test', false);
$result = $parser->addArgument('name', array('help' => 'An argument'));
- $this->assertEquals($parser, $result, 'Should returnn this');
+ $this->assertEquals($parser, $result, 'Should return this');
}
/**
View
4 lib/Cake/Test/Case/Controller/Component/Acl/PhpAclTest.php
@@ -146,7 +146,7 @@ public function testCheck() {
$this->assertTrue($this->Acl->check('jan', 'foo/bar'));
$this->assertTrue($this->Acl->check('user/jan', 'foo/bar'));
$this->assertTrue($this->Acl->check('Role/admin', 'controllers/bar'));
- $this->assertTrue($this->Acl->check(array('User' => array('username' =>'jan')), '/controlers/bar/bll'));
+ $this->assertTrue($this->Acl->check(array('User' => array('username' =>'jan')), '/controllers/bar/bll'));
$this->assertTrue($this->Acl->check('Role/database_manager', 'controllers/db/create'));
$this->assertTrue($this->Acl->check('User/db_manager_2', 'controllers/db/create'));
$this->assertFalse($this->Acl->check('db_manager_2', '/controllers/users/Dashboard'));
@@ -338,7 +338,7 @@ public function testPolicy() {
$this->assertTrue($this->Acl->check('Role/sales', 'controllers/bla/create'));
$this->assertTrue($this->Acl->check('Role/default', 'foo'));
// undefined user, undefined aco
- $this->assertTrue($this->Acl->check('foobart', 'foo/bar'));
+ $this->assertTrue($this->Acl->check('foobar', 'foo/bar'));
// deny rule: Role.sales -> controllers.*.delete
$this->assertFalse($this->Acl->check('Role/sales', 'controllers/bar/delete'));
View
6 lib/Cake/Test/Case/Controller/Component/AclComponentTest.php
@@ -51,8 +51,8 @@ public function tearDown() {
}
/**
- * test that construtor throws an exception when Acl.classname is a
- * non-existant class
+ * test that constructor throws an exception when Acl.classname is a
+ * non-existent class
*
* @expectedException CakeException
* @return void
@@ -64,7 +64,7 @@ public function testConstrutorException() {
}
/**
- * test that adapter() allows control of the interal implementation AclComponent uses.
+ * test that adapter() allows control of the internal implementation AclComponent uses.
*
* @return void
*/
View
2  lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php
@@ -160,7 +160,7 @@ public function testAuthenticateChallenge() {
}
/**
- * test authenticate sucesss
+ * test authenticate success
*
* @return void
*/
View
2  lib/Cake/Test/Case/Controller/Component/Auth/FormAuthenticateTest.php
@@ -115,7 +115,7 @@ public function testAuthenticateInjection() {
}
/**
- * test authenticate sucesss
+ * test authenticate success
*
* @return void
*/
View
4 lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
@@ -481,7 +481,7 @@ public function testIsAuthorizedMissingFile() {
}
/**
- * test that isAuthroized calls methods correctly
+ * test that isAuthorized calls methods correctly
*
* @return void
*/
@@ -881,7 +881,7 @@ public function testLoginRedirect() {
}
/**
- * test that no redirects or authoization tests occur on the loginAction
+ * test that no redirects or authorization tests occur on the loginAction
*
* @return void
*/
View
4 lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
@@ -162,7 +162,7 @@ public function paginateCount($conditions, $recursive, $extra) {
}
/**
- * PaginatorControllerCommentclass
+ * PaginatorControllerComment class
*
* @package Cake.Test.Case.Controller.Component
*/
@@ -191,7 +191,7 @@ class PaginatorControllerComment extends CakeTestModel {
}
/**
- * PaginatorAuthorclass
+ * PaginatorAuthor class
*
* @package Cake.Test.Case.Controller.Component
*/
View
4 lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php
@@ -189,7 +189,7 @@ public function testInitializeContentTypeWithjQueryAccept() {
/**
* Test that RequestHandler sets $this->ext when jQuery sends its wonky-ish headers
- * and the application is configured to handle multiplate extensions
+ * and the application is configured to handle multiple extensions
*
* @return void
*/
@@ -203,7 +203,7 @@ public function testInitializeContentTypeWithjQueryAcceptAndMultiplesExtensions(
}
/**
- * Test that RequestHandler does not set $this->ext when multple accepts are sent.
+ * Test that RequestHandler does not set $this->ext when multiple accepts are sent.
*
* @return void
*/
View
10 lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php
@@ -24,7 +24,6 @@
* TestSecurityComponent
*
* @package Cake.Test.Case.Controller.Component
-* @package Cake.Test.Case.Controller.Component
*/
class TestSecurityComponent extends SecurityComponent {
@@ -32,7 +31,7 @@ class TestSecurityComponent extends SecurityComponent {
* validatePost method
*
* @param Controller $controller
- * @return unknown
+ * @return boolean
*/
public function validatePost($controller) {
return $this->_validatePost($controller);
@@ -43,7 +42,6 @@ public function validatePost($controller) {
* SecurityTestController
*
* @package Cake.Test.Case.Controller.Component
-* @package Cake.Test.Case.Controller.Component
*/
class SecurityTestController extends Controller {
@@ -64,7 +62,7 @@ class SecurityTestController extends Controller {
/**
* failed property
*
- * @var bool false
+ * @var boolean false
*/
public $failed = false;
@@ -97,7 +95,7 @@ public function redirect($url, $status = null, $exit = true) {
}
/**
- * Conveinence method for header()
+ * Convenience method for header()
*
* @param string $status
* @return void
@@ -162,7 +160,7 @@ public function tearDown() {
}
/**
- * test that initalize can set properties.
+ * test that initialize can set properties.
*
* @return void
*/
View
4 lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php
@@ -150,7 +150,7 @@ public function testComponentParamMergingNoDuplication() {
$Controller->constructClasses();
$expected = array('MergeVar' => array('flag', 'otherFlag', 'redirect' => false));
- $this->assertEquals($Controller->components, $expected, 'Duplication of settings occured. %s');
+ $this->assertEquals($Controller->components, $expected, 'Duplication of settings occurred. %s');
}
/**
@@ -177,7 +177,7 @@ public function testHelperSettingMergingNoDuplication() {
$Controller->constructClasses();
$expected = array('MergeVar' => array('format' => 'html', 'terse'));
- $this->assertEquals($Controller->helpers, $expected, 'Duplication of settings occured. %s');
+ $this->assertEquals($Controller->helpers, $expected, 'Duplication of settings occurred. %s');
}
/**
View
6 lib/Cake/Test/Case/Core/CakePluginTest.php
@@ -216,7 +216,7 @@ public function testPathNotFound() {
}
/**
- * Tests that CakePlugin::loadAll() will load all plgins in the configured folder
+ * Tests that CakePlugin::loadAll() will load all plugins in the configured folder
*
* @return void
*/
@@ -227,7 +227,7 @@ public function testLoadAll() {
}
/**
- * Tests that CakePlugin::loadAll() will load all plgins in the configured folder with bootstrap loading
+ * Tests that CakePlugin::loadAll() will load all plugins in the configured folder with bootstrap loading
*
* @return void
*/
@@ -242,7 +242,7 @@ public function testLoadAllWithDefaults() {
}
/**
- * Tests that CakePlugin::loadAll() will load all plgins in the configured folder wit defaults
+ * Tests that CakePlugin::loadAll() will load all plugins in the configured folder wit defaults
* and overrides for a plugin
*
* @return void
View
2  lib/Cake/Test/Case/Core/ConfigureTest.php
@@ -305,7 +305,7 @@ public function testStoreAndRestoreWithData() {
Configure::write('testing', 'value');
Configure::store('store_test', 'default', array('store_test' => 'one'));
Configure::delete('testing');
- $this->assertNull(Configure::read('store_test'), 'Calling store with data shouldnt modify runtime.');
+ $this->assertNull(Configure::read('store_test'), 'Calling store with data shouldn\'t modify runtime.');
Configure::restore('store_test', 'default');
$this->assertEquals('one', Configure::read('store_test'));
View
2  lib/Cake/Test/Case/Log/CakeLogTest.php
@@ -131,7 +131,7 @@ public function testConfig() {
}
/**
- * explict tests for drop()
+ * explicit tests for drop()
*
* @return void
**/
View
4 lib/Cake/Test/Case/Model/Behavior/AclBehaviorTest.php
@@ -30,7 +30,6 @@
* Test Person class - self joined model
*
* @package Cake.Test.Case.Model.Behavior
-* @package Cake.Test.Case.Model.Behavior
*/
class AclPerson extends CakeTestModel {
@@ -105,7 +104,6 @@ public function parentNode() {
* AclUser class
*
* @package Cake.Test.Case.Model.Behavior
-* @package Cake.Test.Case.Model.Behavior
*/
class AclUser extends CakeTestModel {
@@ -143,7 +141,6 @@ public function parentNode() {
* AclPost class
*
* @package Cake.Test.Case.Model.Behavior
-* @package Cake.Test.Case.Model.Behavior
*/
class AclPost extends CakeTestModel {
@@ -181,7 +178,6 @@ public function parentNode() {
* AclBehaviorTest class
*
* @package Cake.Test.Case.Model.Behavior
-* @package Cake.Test.Case.Model.Behavior
*/
class AclBehaviorTest extends CakeTestCase {
View
2  lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php
@@ -870,7 +870,7 @@ public function testTranslateTableWithPrefix() {
}
/**
- * Test infinite loops not occuring with unbindTranslation()
+ * Test infinite loops not occurring with unbindTranslation()
*
* @return void
*/
View
4 lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php
@@ -151,11 +151,11 @@ public function testDetectInvalidParent() {
}
/**
- * testDetectNoneExistantParent method
+ * testDetectNoneExistentParent method
*
* @return void
*/
- public function testDetectNoneExistantParent() {
+ public function testDetectNoneExistentParent() {
extract($this->settings);
$this->Tree = new $modelClass();
$this->Tree->initialize(2, 2);
View
7 lib/Cake/Test/Case/Model/BehaviorCollectionTest.php
@@ -550,7 +550,7 @@ public function testDetachWithPluginNames() {
}
/**
- * test that attaching a non existant Behavior triggers a cake error.
+ * test that attaching a non existent Behavior triggers a cake error.
*
* @expectedException MissingBehaviorException
* @return void
@@ -793,7 +793,8 @@ public function testBehaviorHasOneFindCallbacks() {
);
//$this->assertEquals($Apple->find('all'), $expected);
}
- /**
+
+/**
* testBehaviorBelongsToFindCallbacks method
*
* @return void
@@ -1167,7 +1168,7 @@ public function testHasMethodMappedMethods() {
}
/**
- * test hasMethod returrning a 'callback'
+ * test hasMethod returning a 'callback'
*
* @return void
*/
View
4 lib/Cake/Test/Case/Model/CakeSchemaTest.php
@@ -222,7 +222,7 @@ public function teardown($version) {
}
/**
- * SchmeaPost class
+ * SchemaPost class
*
* @package Cake.Test.Case.Model
*/
@@ -341,7 +341,7 @@ class SchemaDatatype extends CakeTestModel {
* Testdescribe class
*
* This class is defined purely to inherit the cacheSources variable otherwise
- * testSchemaCreatTable will fail if listSources has already been called and
+ * testSchemaCreateTable will fail if listSources has already been called and
* its source cache populated - I.e. if the test is run within a group
*
* @uses CakeTestModel
View
2  lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php
@@ -348,7 +348,7 @@ public function testDelete() {
* @return void
*/
public function testDestroy() {
- TestCakeSession::write('bulletProof', 'invicible');
+ TestCakeSession::write('bulletProof', 'invincible');
$id = TestCakeSession::id();
TestCakeSession::destroy();
View
2  lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
@@ -581,7 +581,7 @@ public function testName() {
}
/**
- * test that cacheMethod works as exepected
+ * test that cacheMethod works as expected
*
* @return void
*/
View
2  lib/Cake/Test/Case/Model/ModelReadTest.php
@@ -7692,7 +7692,7 @@ public function testVirtualFieldsOrder() {
*
*/
public function testVirtualFieldsMysql() {
- $this->skipIf(!($this->db instanceof Mysql), 'The rest of virtualFieds test only compatible with Mysql.');
+ $this->skipIf(!($this->db instanceof Mysql), 'The rest of virtualFields test only compatible with Mysql.');
$this->loadFixtures('Post', 'Author');
$Post = ClassRegistry::init('Post');
View
6 lib/Cake/Test/Case/Model/ModelValidationTest.php
@@ -568,7 +568,7 @@ public function testValidatesWithAssociations() {
$Something->create();
$result = $Something->save($data);
- $this->assertFalse($result, 'Save occured even when with models failed. %s');
+ $this->assertFalse($result, 'Save occurred even when with models failed. %s');
$this->assertEquals($JoinThing->validationErrors, $expectedError);
$count = $Something->find('count', array('conditions' => array('Something.id' => $data['Something']['id'])));
$this->assertSame($count, 0);
@@ -587,7 +587,7 @@ public function testValidatesWithAssociations() {
);
$Something->create();
$result = $Something->save($data);
- $this->assertFalse($result, 'Save occured even when with models failed. %s');
+ $this->assertFalse($result, 'Save occurred even when with models failed. %s');
$joinRecords = $JoinThing->find('count', array(
'conditions' => array('JoinThing.something_id' => $data['Something']['id'])
@@ -681,7 +681,7 @@ public function testValidatesWithModelsAndSaveAllWithoutId() {
/**
* Test that missing validation methods trigger errors in development mode.
- * Helps to make developement easier.
+ * Helps to make development easier.
*
* @expectedException PHPUnit_Framework_Error
* @return void
View
12 lib/Cake/Test/Case/Model/ModelWriteTest.php
@@ -1050,8 +1050,8 @@ public function testSaveWithNonExistentFields() {
$data = array(
'user_id' => '1',
'non_existent' => 'This field does not exist',
- 'title' => 'Fiveth Article - New Title',
- 'body' => 'Fiveth Article Body',
+ 'title' => 'Fifth Article - New Title',
+ 'body' => 'Fifth Article Body',
'published' => 'N'
);
$result = $TestModel->create() && $TestModel->save($data);
@@ -1060,8 +1060,8 @@ public function testSaveWithNonExistentFields() {
$expected = array('Article' => array(
'id' => '5',
'user_id' => '1',
- 'title' => 'Fiveth Article - New Title',
- 'body' => 'Fiveth Article Body',
+ 'title' => 'Fifth Article - New Title',
+ 'body' => 'Fifth Article Body',
'published' => 'N'
));
$result = $TestModel->read(array('id', 'user_id', 'title', 'body', 'published'), 5);
@@ -4689,7 +4689,7 @@ public function testSaveAllHasManyValidationOnly() {
}
/**
- * test that saveAll behaves like plain save() when suplied empty data
+ * test that saveAll behaves like plain save() when supplied empty data
*
* @link http://cakephp.lighthouseapp.com/projects/42648/tickets/277-test-saveall-with-validation-returns-incorrect-boolean-when-saving-empty-data
* @return void
@@ -6024,7 +6024,7 @@ public function testSaveManyEmptyData() {
}
/**
- * test that saveAssociated behaves like plain save() when suplied empty data
+ * test that saveAssociated behaves like plain save() when supplied empty data
*
* @link http://cakephp.lighthouseapp.com/projects/42648/tickets/277-test-saveall-with-validation-returns-incorrect-boolean-when-saving-empty-data
* @return void
View
2  lib/Cake/Test/Case/Model/models.php
@@ -2070,7 +2070,7 @@ public function customValidatorWithParams($data, $validator, $or = true, $ignore
}
/**
- * Custom validator with messaage
+ * Custom validator with message
*
* @return array
*/
View
6 lib/Cake/Test/Case/Network/Http/HttpResponseTest.php
@@ -39,7 +39,7 @@ public function parseHeader($header) {
/**
* Convenience method for testing protected method
*
- * @param string $body A string continaing the body to decode
+ * @param string $body A string containing the body to decode
* @param mixed $encoding Can be false in case no encoding is being used, or a string representing the encoding
* @return mixed Array or false
*/
@@ -50,7 +50,7 @@ public function decodeBody($body, $encoding = 'chunked') {
/**
* Convenience method for testing protected method
*
- * @param string $body A string continaing the chunked body to decode
+ * @param string $body A string containing the chunked body to decode
* @return mixed Array or false
*/
public function decodeChunkedBody($body) {
@@ -123,7 +123,7 @@ public function testToString() {
}
/**
- * testGetHeadr
+ * testGetHeader
*
* @return void
*/
View
4 lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
@@ -107,7 +107,7 @@ public function parseUri($uri = null, $base = array()) {
*
* @param array $uri A $uri array, or uses $this->config if left empty
* @param string $uriTemplate The Uri template/format to use
- * @return string A fully qualified URL formated according to $uriTemplate
+ * @return string A fully qualified URL formatted according to $uriTemplate
*/
public function buildUri($uri = array(), $uriTemplate = '%scheme://%user:%pass@%host:%port/%path?%query#%fragment') {
return parent::_buildUri($uri, $uriTemplate);
@@ -1538,7 +1538,7 @@ public function testTokenEscapeChars() {
}
/**
- * Test that HttpSocket::escapeToken is escaping all characters as descriped in RFC 2616 (HTTP 1.1 specs)
+ * Test that HttpSocket::escapeToken is escaping all characters as described in RFC 2616 (HTTP 1.1 specs)
*
* @return void
*/
View
2  lib/Cake/Test/Case/Routing/DispatcherTest.php
@@ -403,7 +403,7 @@ class TestCachedPagesController extends Controller {
);
/**
- * Mock out the reponse object so it doesn't send headers.
+ * Mock out the response object so it doesn't send headers.
*
* @var string
*/
View
2  lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
@@ -531,7 +531,7 @@ public function testParseUrlDecodeElements() {
}
/**
- * test numerically indexed defaults, get appeneded to pass
+ * test numerically indexed defaults, get appended to pass
*
* @return void
*/
View
2  lib/Cake/Test/Case/Routing/RouterTest.php
@@ -2110,7 +2110,7 @@ public function testStripPlugin() {
}
/**
- * testCurentRoute
+ * testCurrentRoute
*
* This test needs some improvement and actual requestAction() usage
*
View
2  lib/Cake/Test/Case/Utility/CakeTimeTest.php
@@ -800,7 +800,7 @@ public function testI18nFormat() {
}
/**
- * test new format() syntax which inverts first and secod parameters
+ * test new format() syntax which inverts first and second parameters
*
* @return void
*/
View
2  lib/Cake/Test/Case/Utility/DebuggerTest.php
@@ -201,7 +201,7 @@ public function testOutputAs() {
}
/**
- * Test that choosing a non-existant format causes an exception
+ * Test that choosing a non-existent format causes an exception
*
* @expectedException CakeException
* @return void
View
4 lib/Cake/Test/Case/Utility/FileTest.php
@@ -236,11 +236,11 @@ public function testCreate() {
}
/**
- * testOpeningNonExistantFileCreatesIt method
+ * testOpeningNonExistentFileCreatesIt method
*
* @return void
*/
- public function testOpeningNonExistantFileCreatesIt() {
+ public function testOpeningNonExistentFileCreatesIt() {
$someFile = new File(TMP . 'some_file.txt', false);
$this->assertTrue($someFile->open());
$this->assertEquals('', $someFile->read());
View
18 lib/Cake/Test/Case/Utility/FolderTest.php
@@ -125,7 +125,7 @@ public function testInPath() {
}
/**
- * test creation of single and mulitple paths.
+ * test creation of single and multiple paths.
*
* @return void
*/
@@ -162,7 +162,7 @@ public function testCreateWithTrailingDs() {
}
/**
- * test recurisve directory create failure.
+ * test recursive directory create failure.
*
* @return void
*/
@@ -731,15 +731,15 @@ public function testFindRecursive() {
}
/**
- * testConstructWithNonExistantPath method
+ * testConstructWithNonExistentPath method
*
* @return void
*/
- public function testConstructWithNonExistantPath() {
- $Folder = new Folder(TMP . 'config_non_existant', true);
- $this->assertTrue(is_dir(TMP . 'config_non_existant'));
+ public function testConstructWithNonExistentPath() {
+ $Folder = new Folder(TMP . 'config_non_existent', true);
+ $this->assertTrue(is_dir(TMP . 'config_non_existent'));
$Folder->cd(TMP);
- $Folder->delete($Folder->pwd() . 'config_non_existant');
+ $Folder->delete($Folder->pwd() . 'config_non_existent');
}
/**
@@ -748,7 +748,7 @@ public function testConstructWithNonExistantPath() {
* @return void
*/
public function testDirSize() {
- $Folder = new Folder(TMP . 'config_non_existant', true);
+ $Folder = new Folder(TMP . 'config_non_existent', true);
$this->assertEquals($Folder->dirSize(), 0);
$File = new File($Folder->pwd() . DS . 'my.php', true, 0777);
@@ -758,7 +758,7 @@ public function testDirSize() {
$this->assertEquals($Folder->dirSize(), 14);
$Folder->cd(TMP);
- $Folder->delete($Folder->pwd() . 'config_non_existant');
+ $Folder->delete($Folder->pwd() . 'config_non_existent');
}
/**
View
1  lib/Cake/Test/Case/Utility/InflectorTest.php
@@ -28,7 +28,6 @@
/**
* Short description for class.
*
- * @package cake.tests
* @package Cake.Test.Case.Utility
*/
class InflectorTest extends CakeTestCase {
View
4 lib/Cake/Test/Case/Utility/ObjectCollectionTest.php
@@ -352,7 +352,7 @@ public function testTriggerModParamsInvalidIndex() {
}
/**
- * test that returrning null doesn't modify parameters.
+ * test that returning null doesn't modify parameters.
*
* @return void
*/
@@ -383,7 +383,7 @@ public function testTriggerModParamsNullIgnored() {
}
/**
- * test order of callbacks trigerring based on priority.
+ * test order of callbacks triggering based on priority.
*
* @return void
*/
View
2  lib/Cake/Test/Case/Utility/XmlTest.php
@@ -712,7 +712,7 @@ public function testSoap() {
/**
* testNamespace
*
- * @retun void
+ * @return void
*/
public function testNamespace() {
$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>');
View
4 lib/Cake/Test/Case/View/Helper/CacheHelperTest.php
@@ -525,9 +525,9 @@ public function testCacheWithCustomRoutes() {
/**
* test ControllerName contains AppName
*
- * This test verifys view cache is created correctly when the app name is contained in part of the controller name.
+ * This test verifies view cache is created correctly when the app name is contained in part of the controller name.
* (webapp Name) base name is 'cache' controller is 'cacheTest' action is 'cache_name'
- * apps url would look somehing like http://localhost/cache/cacheTest/cache_name
+ * apps url would look something like http://localhost/cache/cacheTest/cache_name
*
* @return void
**/
View
2  lib/Cake/Test/Case/View/Helper/FormHelperTest.php
@@ -1547,7 +1547,7 @@ public function testEmptyErrorValidation() {
/**
* testEmptyInputErrorValidation method
*
- * test validation error div when validation message is overriden by an empty string when calling input()
+ * test validation error div when validation message is overridden by an empty string when calling input()
*
* @access public
* @return void
View
2  lib/Cake/Test/Case/View/Helper/SessionHelperTest.php
@@ -172,7 +172,7 @@ public function testFlashElementInAttrs() {
}
/**
- * test using eleents in plugins.
+ * test using elements in plugins.
*
* @return void
*/
View
2  lib/Cake/Test/Case/View/HelperTest.php
@@ -256,7 +256,7 @@ public static function entityProvider() {
}
/**
- * Test setting an entity and retriving the entity, model and field.
+ * Test setting an entity and retrieving the entity, model and field.
*
* @dataProvider entityProvider
* @return void
View
4 lib/Cake/Test/Case/View/ViewTest.php
@@ -655,9 +655,9 @@ public function testElement() {
$result = $this->View->element('test_plugin_element');
$this->assertEquals($result, 'this is the test set using View::$plugin plugin element');
- $result = $this->View->element('non_existant_element');
+ $result = $this->View->element('non_existent_element');
$this->assertRegExp('/Not Found:/', $result);
- $this->assertRegExp('/non_existant_element/', $result);
+ $this->assertRegExp('/non_existent_element/', $result);
$result = $this->View->element('TestPlugin.plugin_element', array(), array('plugin' => 'test_plugin'));
$this->assertRegExp('/Not Found:/', $result);
Please sign in to comment.
Something went wrong with that request. Please try again.