Fixing doc blocks in Test suite and some visibility keywords. #237

Merged
merged 1 commit into from Oct 10, 2011
Jump to file
+217 −78
Split
@@ -19,7 +19,7 @@
/**
* AllBehaviorsTest class
*
- * This test group will run all test in the cases/libs/models/behaviors directory
+ * This test group will run all test in the Case/Model/Behavior directory
*
* @package Cake.Test.Case
*/
@@ -20,7 +20,7 @@
/**
* AllControllersTest class
*
- * This test group will run cache engine tests.
+ * This test group will run Controller related tests.
*
* @package Cake.Test.Case
*/
@@ -20,7 +20,7 @@
/**
* HelpersGroupTest class
*
- * This test group will run all test in the cases/libs/view/helpers directory.
+ * This test group will run all Helper related tests.
*
* @package Cake.Test.Case
*/
@@ -20,7 +20,7 @@
/**
* AllRoutingTest class
*
- * This test group will run view class tests (view, theme)
+ * This test group will routing related tests.
*
* @package Cake.Test.Case
*/
@@ -20,7 +20,7 @@
/**
* AllTestSuiteTest class
*
- * This test group will run socket class tests
+ * This test group will run all test suite tests.
*
* @package Cake.Test.Case
*/
@@ -19,7 +19,7 @@
/**
* AllTests class
*
- * This test group will run all test in the cases/libs/models/behaviors directory
+ * This test group will run all tests.
*
* @package Cake.Test.Case
*/
@@ -25,7 +25,7 @@ class IniReaderTest extends CakeTestCase {
*
* @var string
*/
- var $file;
+ public $file;
/**
* setup
@@ -1,6 +1,6 @@
<?php
/**
- * CommandList file
+ * CommandListShellTest file
*
* PHP 5
*
@@ -77,8 +77,8 @@ public function mergeVars($properties, $class, $normalize = true) {
* @package Cake.Test.Case.Console.Command
*/
class TestMergeShell extends Shell {
- var $tasks = array('DbConfig', 'Fixture');
- var $uses = array('Comment');
+ public $tasks = array('DbConfig', 'Fixture');
+ public $uses = array('Comment');
}
/**
@@ -1,4 +1,21 @@
<?php
+/**
+ * HelpFormatterTest file
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
+ * Copyright 2005-2011, Cake Software Foundation, Inc.
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice
+ *
+ * @copyright Copyright 2005-2011, Cake Software Foundation, Inc.
+ * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
+ * @package Cake.Test.Case.Console
+ * @since CakePHP(tm) v 2.0
+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
App::uses('ConsoleOptionParser', 'Console');
App::uses('HelpFormatter', 'Console');
@@ -1,6 +1,9 @@
<?php
/**
+ * ActionsAuthorizeTest file
*
+ * PHP 5
+ *
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
@@ -1,6 +1,9 @@
<?php
/**
+ * BasicAuthenticateTest file
*
+ * PHP 5
+ *
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
@@ -1,6 +1,9 @@
<?php
/**
+ * ControllerAuthorizeTest file
*
+ * PHP 5
+ *
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
@@ -1,6 +1,9 @@
<?php
/**
+ * CrudAuthorizeTest file
*
+ * PHP 5
+ *
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
@@ -1,6 +1,9 @@
<?php
/**
+ * DigestAuthenticateTest file
*
+ * PHP 5
+ *
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
@@ -1,6 +1,9 @@
<?php
/**
+ * FormAuthenticateTest file
*
+ * PHP 5
+ *
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
@@ -1,4 +1,22 @@
<?php
+/**
+ * DbAclTest file.
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link http://cakephp.org CakePHP(tm) Project
+ * @package Cake.Test.Case.Controller.Component
+ * @since CakePHP(tm) v 2.0
+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
+
App::uses('AclComponent', 'Controller/Component');
App::uses('AclNode', 'Model');
class_exists('AclComponent');
@@ -1,4 +1,22 @@
<?php
+/**
+ * IniAclTest file.
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link http://cakephp.org CakePHP(tm) Project
+ * @package Cake.Test.Case.Controller.Component
+ * @since CakePHP(tm) v 2.0
+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
+
App::uses('AclComponent', 'Controller/Component');
class_exists('AclComponent');
@@ -1,4 +1,21 @@
<?php
+/**
+ * AppTest file.
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link http://cakephp.org CakePHP(tm) Project
+ * @package Cake.Test.Case.Core
+ * @since CakePHP(tm) v 2.0
+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
/**
* AppTest class
@@ -1,5 +1,21 @@
<?php
-
+/**
+ * CakePluginTest file.
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link http://cakephp.org CakePHP(tm) Project
+ * @package Cake.Test.Case.Core
+ * @since CakePHP(tm) v 2.0
+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
App::uses('CakePlugin', 'Core');
@@ -28,7 +28,7 @@
*/
class ErrorHandlerTest extends CakeTestCase {
- var $_restoreError = false;
+ public $_restoreError = false;
/**
* setup create a request object to get out of router later.
*
@@ -141,7 +141,7 @@ class MissingWidgetThingException extends NotFoundException { }
*/
class ExceptionRendererTest extends CakeTestCase {
- var $_restoreError = false;
+ public $_restoreError = false;
/**
* setup create a request object to get out of router later.
*
@@ -166,7 +166,7 @@ class AclPost extends CakeTestModel {
*
* @var array
*/
- var $actsAs = array('Acl' => 'Controlled');
+ public $actsAs = array('Acl' => 'Controlled');
/**
* parentNode
@@ -2,7 +2,6 @@
/**
* Connection Manager tests
*
- *
* PHP 5
*
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
@@ -1,6 +1,4 @@
<?php
-/* SVN FILE: $Id: model.test.php 8225 2009-07-08 03:25:30Z mark_story $ */
-
/**
* ModelIntegrationTest file
*
@@ -1,6 +1,4 @@
<?php
-/* SVN FILE: $Id: model.test.php 8225 2009-07-08 03:25:30Z mark_story $ */
-
/**
* ModelValidationTest file
*
@@ -260,9 +260,9 @@ static function titleDuplicate ($title) {
* @package Cake.Test.Case.Model
*/
class BeforeDeleteComment extends CakeTestModel {
- var $name = 'BeforeDeleteComment';
+ public $name = 'BeforeDeleteComment';
- var $useTable = 'comments';
+ public $useTable = 'comments';
public function beforeDelete($cascade = true) {
$db = $this->getDataSource();
@@ -3180,8 +3180,8 @@ class GroupUpdateAll extends CakeTestModel {
}
class TransactionTestModel extends CakeTestModel {
- var $name = 'TransactionTestModel';
- var $useTable = 'samples';
+ public $name = 'TransactionTestModel';
+ public $useTable = 'samples';
public function afterSave($created) {
$data = array(
@@ -3192,8 +3192,8 @@ public function afterSave($created) {
}
class TransactionManyTestModel extends CakeTestModel {
- var $name = 'TransactionManyTestModel';
- var $useTable = 'samples';
+ public $name = 'TransactionManyTestModel';
+ public $useTable = 'samples';
public function afterSave($created) {
$data = array(
@@ -4397,8 +4397,8 @@ public function schema($field = false) {
class PrefixTestModel extends CakeTestModel {
}
class PrefixTestUseTableModel extends CakeTestModel {
- var $name = 'PrefixTest';
- var $useTable = 'prefix_tests';
+ public $name = 'PrefixTest';
+ public $useTable = 'prefix_tests';
}
/**
@@ -1,6 +1,6 @@
<?php
/**
- * BasicMethodTest file
+ * BasicAuthenticationTest file
*
* PHP 5
*
@@ -1,6 +1,6 @@
<?php
/**
- * HttpSocketTest file
+ * HttpResponseTest file
*
* PHP 5
*
@@ -1,4 +1,21 @@
<?php
+/**
+ * CakeRequest Test case file.
+ *
+ * PHP 5
+ *
+ * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
+ * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ *
+ * Licensed under The MIT License
+ * Redistributions of files must retain the above copyright notice.
+ *
+ * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
+ * @link http://cakephp.org CakePHP(tm) Project
+ * @package Cake.Test.Case.Routing.Route
+ * @since CakePHP(tm) v 2.0
+ * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
+ */
App::uses('CakeRoute', 'Routing/Route');
App::uses('Router', 'Routing');
Oops, something went wrong.