Fixing doc blocks in Test suite and some visibility keywords.

This commit is contained in:
Majna 2011-10-10 23:18:48 +02:00
parent 788d38ccef
commit 8c3f64be52
46 changed files with 217 additions and 78 deletions

View file

@ -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
*/

View file

@ -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
*/

View file

@ -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
*/

View file

@ -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
*/

View file

@ -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
*/

View file

@ -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
*/

View file

@ -25,7 +25,7 @@ class IniReaderTest extends CakeTestCase {
*
* @var string
*/
var $file;
public $file;
/**
* setup

View file

@ -1,6 +1,6 @@
<?php
/**
* CommandList file
* CommandListShellTest file
*
* PHP 5
*

View file

@ -77,8 +77,8 @@ class ShellTestShell extends Shell {
* @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');
}
/**

View file

@ -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');

View file

@ -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)
*

View file

@ -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)
*

View file

@ -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)
*

View file

@ -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)
*

View file

@ -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)
*

View file

@ -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)
*

View file

@ -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');

View file

@ -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');

View file

@ -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

View file

@ -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');

View file

@ -28,7 +28,7 @@ App::uses('Router', 'Routing');
*/
class ErrorHandlerTest extends CakeTestCase {
var $_restoreError = false;
public $_restoreError = false;
/**
* setup create a request object to get out of router later.
*

View file

@ -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.
*

View file

@ -166,7 +166,7 @@ class AclPost extends CakeTestModel {
*
* @var array
*/
var $actsAs = array('Acl' => 'Controlled');
public $actsAs = array('Acl' => 'Controlled');
/**
* parentNode

View file

@ -2,7 +2,6 @@
/**
* Connection Manager tests
*
*
* PHP 5
*
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)

View file

@ -1,6 +1,4 @@
<?php
/* SVN FILE: $Id: model.test.php 8225 2009-07-08 03:25:30Z mark_story $ */
/**
* ModelIntegrationTest file
*

View file

@ -1,6 +1,4 @@
<?php
/* SVN FILE: $Id: model.test.php 8225 2009-07-08 03:25:30Z mark_story $ */
/**
* ModelValidationTest file
*

View file

@ -260,9 +260,9 @@ class Article extends CakeTestModel {
* @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 @@ class TransactionTestModel extends CakeTestModel {
}
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 @@ class MysqlTestModel extends Model {
class PrefixTestModel extends CakeTestModel {
}
class PrefixTestUseTableModel extends CakeTestModel {
var $name = 'PrefixTest';
var $useTable = 'prefix_tests';
public $name = 'PrefixTest';
public $useTable = 'prefix_tests';
}
/**

View file

@ -1,6 +1,6 @@
<?php
/**
* BasicMethodTest file
* BasicAuthenticationTest file
*
* PHP 5
*

View file

@ -1,6 +1,6 @@
<?php
/**
* HttpSocketTest file
* HttpResponseTest file
*
* PHP 5
*

View file

@ -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');

View file

@ -1,4 +1,22 @@
<?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('PluginShortRoute', 'Routing/Route');
App::uses('Router', 'Routing');
/**

View file

@ -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('RedirectRoute', 'Routing/Route');
App::uses('CakeResponse', 'Network');

View file

@ -28,14 +28,14 @@ App::uses('CakeTestFixture', 'TestSuite/Fixture');
class CakeTestFixtureTestFixture extends CakeTestFixture {
/**
* name Property
* Name property
*
* @var string
*/
public $name = 'FixtureTest';
/**
* table property
* Table property
*
* @var string
*/
@ -73,29 +73,29 @@ class CakeTestFixtureTestFixture extends CakeTestFixture {
class StringsTestFixture extends CakeTestFixture {
/**
* name Property
* Name property
*
* @var string
*/
var $name = 'Strings';
public $name = 'Strings';
/**
* table property
* Table property
*
* @var string
*/
var $table = 'strings';
public $table = 'strings';
/**
* Fields array
*
* @var array
*/
var $fields = array(
public $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'),
'name' => array('type' => 'string', 'length' => '255'),
'email' => array('type' => 'string', 'length' => '255'),
'age' => array('type' => 'integer', 'default' => 10)
'age' => array('type' => 'integer', 'default' => 10)
);
/**
@ -103,10 +103,10 @@ class StringsTestFixture extends CakeTestFixture {
*
* @var array
*/
var $records = array(
public $records = array(
array('name' => 'Mark Doe', 'email' => 'mark.doe@email.com'),
array('name' => 'John Doe', 'email' => 'john.doe@email.com', 'age' => 20),
array('email' => 'jane.doe@email.com', 'name' => 'Jane Doe', 'age' => 30)
array('name' => 'John Doe', 'email' => 'john.doe@email.com', 'age' => 20),
array('email' => 'jane.doe@email.com', 'name' => 'Jane Doe', 'age' => 30)
);
}

View file

@ -15,7 +15,6 @@
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://book.cakephp.org/view/1196/Testing
* @package Cake.Test.Case.Utility
* @package Cake.Test.Case.Utility
* @since CakePHP(tm) v 1.2.0.4206
* @license Open Group Test Suite License (http://www.opensource.org/licenses/opengroup.php)
*/

View file

@ -1,6 +1,6 @@
<?php
/**
* ComponentCollectionTest file
* ObjectCollectionTest file
*
* PHP 5
*

View file

@ -4,18 +4,15 @@
*
* PHP 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
* Copyright 2005-2011, Cake Software Foundation, Inc.
* 1785 E. Sahara Avenue, Suite 490-204
* Las Vegas, Nevada 89104
* CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
* Redistributions of files must retain the above copyright notice
*
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc.
* @link http://cakephp.org CakePHP Project
* @package Cake.Test.Case.View.Helper
* @package Cake.Test.Case.View.Helper
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

View file

@ -2,14 +2,10 @@
/**
* MooEngineTestCase
*
*
*
* PHP 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
* Copyright 2005-2011, Cake Software Foundation, Inc.
* 1785 E. Sahara Avenue, Suite 490-204
* Las Vegas, Nevada 89104
* 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.
@ -17,7 +13,6 @@
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc.
* @link http://cakephp.org CakePHP Project
* @package Cake.Test.Case.View.Helper
* @package Cake.Test.Case.View.Helper
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

View file

@ -4,10 +4,8 @@
*
* PHP 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
* Copyright 2005-2011, Cake Software Foundation, Inc.
* 1785 E. Sahara Avenue, Suite 490-204
* Las Vegas, Nevada 89104
* 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.
@ -15,7 +13,6 @@
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc.
* @link http://cakephp.org CakePHP Project
* @package Cake.Test.Case.View.Helper
* @package Cake.Test.Case.View.Helper
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

View file

@ -155,11 +155,11 @@ class HelperTestPostsTag extends Model {
class TestHelper extends Helper {
/**
* helpers for this helper.
* Helpers for this helper.
*
* @var string
*/
var $helpers = array('Html', 'TestPlugin.OtherHelper');
public $helpers = array('Html', 'TestPlugin.OtherHelper');
/**
* expose a method as public

View file

@ -1,6 +1,6 @@
<?php
/**
* ThemeViewTest file
* MediaViewTest file
*
* PHP 5
*

View file

@ -25,14 +25,14 @@
class DataTestFixture extends CakeTestFixture {
/**
* name property
* Name property
*
* @var string 'DataTest'
*/
var $name = 'DataTest';
public $name = 'DataTest';
/**
* fields property
* Fields property
*
* @var array
*/
@ -46,11 +46,11 @@ class DataTestFixture extends CakeTestFixture {
);
/**
* records property
* Records property
*
* @var array
*/
var $records = array(
public $records = array(
array(
'count' => 2,
'float' => 2.4,

View file

@ -25,14 +25,14 @@
class DatatypeFixture extends CakeTestFixture {
/**
* name property
* Name property
*
* @var string 'Datatype'
*/
public $name = 'Datatype';
/**
* fields property
* Fields property
*
* @var array
*/
@ -43,11 +43,11 @@ class DatatypeFixture extends CakeTestFixture {
);
/**
* records property
* Records property
*
* @var array
*/
var $records = array(
public $records = array(
array('id' => 1, 'float_field' => 42.23, 'bool' => 0),
);
}

View file

@ -26,10 +26,10 @@
*/
class PrefixTestFixture extends CakeTestFixture {
var $name = 'PrefixTest';
var $table = 'prefix_prefix_tests';
public $name = 'PrefixTest';
public $table = 'prefix_prefix_tests';
var $fields = array(
public $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'),
);
}

View file

@ -1,6 +1,6 @@
<?php
/**
* Short description for file.
* SampleShell file
*
* PHP 5
*

View file

@ -1,6 +1,6 @@
<?php
/**
* Short description for file.
* TestsAppsController file
*
* PHP 5
*

View file

@ -1,6 +1,6 @@
<?php
/**
* Short description for file.
* TestsAppsPostsController file
*
* PHP 5
*