From bf628c493c1869c7c7d25d7298043e6b13f28179 Mon Sep 17 00:00:00 2001 From: Tigran Gabrielyan Date: Mon, 2 Apr 2012 16:26:46 -0700 Subject: [PATCH 01/85] Added ability for Auth login to use contain --- .../Controller/Component/Auth/BaseAuthenticate.php | 13 +++++++++---- .../Controller/Component/Auth/BasicAuthenticate.php | 2 ++ .../Component/Auth/DigestAuthenticate.php | 3 +++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php b/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php index bcb519b33..298fb76a3 100644 --- a/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php +++ b/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php @@ -30,6 +30,7 @@ abstract class BaseAuthenticate { * - `scope` Additional conditions to use when looking up and authenticating users, * i.e. `array('User.is_active' => 1).` * - `recursive` The value of the recursive key passed to find(). Defaults to 0. + * - `contain` Extra models to contain and store in session. * * @var array */ @@ -40,7 +41,8 @@ abstract class BaseAuthenticate { ), 'userModel' => 'User', 'scope' => array(), - 'recursive' => 0 + 'recursive' => 0, + 'contain' => array(), ); /** @@ -82,13 +84,16 @@ abstract class BaseAuthenticate { } $result = ClassRegistry::init($userModel)->find('first', array( 'conditions' => $conditions, - 'recursive' => (int)$this->settings['recursive'] + 'recursive' => (int)$this->settings['recursive'], + 'contain' => $this->settings['contain'], )); if (empty($result) || empty($result[$model])) { return false; } - unset($result[$model][$fields['password']]); - return $result[$model]; + $user = $result[$model]; + unset($user[$fields['password']]); + unset($result[$model]); + return array_merge($user, $result); } /** diff --git a/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php b/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php index c8e772e1c..883b03040 100644 --- a/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php +++ b/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php @@ -50,6 +50,7 @@ class BasicAuthenticate extends BaseAuthenticate { * - `scope` Additional conditions to use when looking up and authenticating users, * i.e. `array('User.is_active' => 1).` * - `recursive` The value of the recursive key passed to find(). Defaults to 0. + * - `contain` Extra models to contain and store in session. * - `realm` The realm authentication is for. Defaults the server name. * * @var array @@ -62,6 +63,7 @@ class BasicAuthenticate extends BaseAuthenticate { 'userModel' => 'User', 'scope' => array(), 'recursive' => 0, + 'contain' => array(), 'realm' => '', ); diff --git a/lib/Cake/Controller/Component/Auth/DigestAuthenticate.php b/lib/Cake/Controller/Component/Auth/DigestAuthenticate.php index 27722a9c7..8b8dcf943 100644 --- a/lib/Cake/Controller/Component/Auth/DigestAuthenticate.php +++ b/lib/Cake/Controller/Component/Auth/DigestAuthenticate.php @@ -63,6 +63,8 @@ class DigestAuthenticate extends BaseAuthenticate { * - `userModel` The model name of the User, defaults to User. * - `scope` Additional conditions to use when looking up and authenticating users, * i.e. `array('User.is_active' => 1).` + * - `recursive` The value of the recursive key passed to find(). Defaults to 0. + * - `contain` Extra models to contain and store in session. * - `realm` The realm authentication is for, Defaults to the servername. * - `nonce` A nonce used for authentication. Defaults to `uniqid()`. * - `qop` Defaults to auth, no other values are supported at this time. @@ -79,6 +81,7 @@ class DigestAuthenticate extends BaseAuthenticate { 'userModel' => 'User', 'scope' => array(), 'recursive' => 0, + 'contain' => array(), 'realm' => '', 'qop' => 'auth', 'nonce' => '', From 3c4087da4f4f32d264876349d066618854fd0ddf Mon Sep 17 00:00:00 2001 From: Tigran Gabrielyan Date: Wed, 4 Apr 2012 19:06:54 -0700 Subject: [PATCH 02/85] Fixing default value of `contain` --- lib/Cake/Controller/Component/Auth/BaseAuthenticate.php | 2 +- lib/Cake/Controller/Component/Auth/BasicAuthenticate.php | 2 +- lib/Cake/Controller/Component/Auth/DigestAuthenticate.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php b/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php index 298fb76a3..cc585787b 100644 --- a/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php +++ b/lib/Cake/Controller/Component/Auth/BaseAuthenticate.php @@ -42,7 +42,7 @@ abstract class BaseAuthenticate { 'userModel' => 'User', 'scope' => array(), 'recursive' => 0, - 'contain' => array(), + 'contain' => null, ); /** diff --git a/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php b/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php index 883b03040..df65e9c71 100644 --- a/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php +++ b/lib/Cake/Controller/Component/Auth/BasicAuthenticate.php @@ -63,7 +63,7 @@ class BasicAuthenticate extends BaseAuthenticate { 'userModel' => 'User', 'scope' => array(), 'recursive' => 0, - 'contain' => array(), + 'contain' => null, 'realm' => '', ); diff --git a/lib/Cake/Controller/Component/Auth/DigestAuthenticate.php b/lib/Cake/Controller/Component/Auth/DigestAuthenticate.php index 8b8dcf943..bdea7d8aa 100644 --- a/lib/Cake/Controller/Component/Auth/DigestAuthenticate.php +++ b/lib/Cake/Controller/Component/Auth/DigestAuthenticate.php @@ -81,7 +81,7 @@ class DigestAuthenticate extends BaseAuthenticate { 'userModel' => 'User', 'scope' => array(), 'recursive' => 0, - 'contain' => array(), + 'contain' => null, 'realm' => '', 'qop' => 'auth', 'nonce' => '', From 63535586220b206284b63dc948eb86ea7eb85ffe Mon Sep 17 00:00:00 2001 From: euromark Date: Tue, 24 Apr 2012 02:40:42 +0200 Subject: [PATCH 03/85] bame themes now in correct order: app -> plugin -> default --- lib/Cake/Console/Command/Task/TemplateTask.php | 17 +++++++++-------- .../Console/Command/Task/TemplateTaskTest.php | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/Cake/Console/Command/Task/TemplateTask.php b/lib/Cake/Console/Command/Task/TemplateTask.php index d9a0e3f43..bbc586f65 100644 --- a/lib/Cake/Console/Command/Task/TemplateTask.php +++ b/lib/Cake/Console/Command/Task/TemplateTask.php @@ -55,11 +55,18 @@ class TemplateTask extends AppShell { * Find the paths to all the installed shell themes in the app. * * Bake themes are directories not named `skel` inside a `Console/Templates` path. - * + * They are listed in this order: app -> plugin -> default + * * @return array Array of bake themes that are installed. */ protected function _findThemes() { - $paths = array(); + $paths = App::path('Console'); + + $plugins = App::objects('plugin'); + foreach ($plugins as $plugin) { + $paths[] = $this->_pluginPath($plugin) . 'Console' . DS; + } + $core = current(App::core('Console')); $separator = DS === '/' ? '/' : '\\\\'; $core = preg_replace('#shells' . $separator . '$#', '', $core); @@ -69,13 +76,7 @@ class TemplateTask extends AppShell { $contents = $Folder->read(); $themeFolders = $contents[0]; - $plugins = App::objects('plugin'); $paths[] = $core; - foreach ($plugins as $plugin) { - $paths[] = $this->_pluginPath($plugin) . 'Console' . DS; - } - - $paths = array_merge($paths, App::path('Console')); // TEMPORARY TODO remove when all paths are DS terminated foreach ($paths as $i => $path) { diff --git a/lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php index ad4589360..eff761c87 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php @@ -134,7 +134,7 @@ class TemplateTaskTest extends CakeTestCase { $result = $this->Task->generate('classes', 'test_object', array('test' => 'foo')); $expected = "I got rendered\nfoo"; - $this->assertEquals($expected, $result); + $this->assertTextEquals($expected, $result); } /** From acd06d64991a808859e82c1db06549ca86996c93 Mon Sep 17 00:00:00 2001 From: euromark Date: Tue, 24 Apr 2012 02:46:20 +0200 Subject: [PATCH 04/85] fixing test case --- .../Test/Case/Console/Command/Task/TemplateTaskTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php index eff761c87..d2df394bb 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php @@ -107,15 +107,15 @@ class TemplateTaskTest extends CakeTestCase { $result = $this->Task->getThemePath(); $this->assertEquals($defaultTheme, $result); - $this->Task->templatePaths = array('default' => $defaultTheme, 'other' => '/some/path'); + $this->Task->templatePaths = array('other' => '/some/path', 'default' => $defaultTheme); $this->Task->params['theme'] = 'other'; $result = $this->Task->getThemePath(); $this->assertEquals('/some/path', $result); $this->Task->params = array(); $result = $this->Task->getThemePath(); - $this->assertEquals($defaultTheme, $result); - $this->assertEquals('default', $this->Task->params['theme']); + $this->assertEquals('/some/path', $result); + $this->assertEquals('other', $this->Task->params['theme']); } /** From 2f87992d157f2e172731a9421909db1128d69a2e Mon Sep 17 00:00:00 2001 From: Rachman Chavik Date: Tue, 24 Apr 2012 20:01:20 +0700 Subject: [PATCH 05/85] File::create() does not need to change umask umask(0) causes all files to be created with 666 permission. After input from jrbasso and AD7six, this was found to be an additional code to support caching using file engine. FileEngine has since moved to SplFile since 2.x and thus umask juggling is not required anymore. Refs: f9f1c4df5 Cherrypicked from 2.2 branch. --- lib/Cake/Test/Case/Utility/FileTest.php | 47 +++++++++++++++++++++++-- lib/Cake/Utility/File.php | 2 -- 2 files changed, 45 insertions(+), 4 deletions(-) diff --git a/lib/Cake/Test/Case/Utility/FileTest.php b/lib/Cake/Test/Case/Utility/FileTest.php index 1f6beee0a..70b20d98a 100644 --- a/lib/Cake/Test/Case/Utility/FileTest.php +++ b/lib/Cake/Test/Case/Utility/FileTest.php @@ -53,6 +53,9 @@ class FileTest extends CakeTestCase { parent::tearDown(); $this->File->close(); unset($this->File); + + $Folder = new Folder(); + $Folder->delete(TMP . 'tests' . DS . 'permissions'); } /** @@ -116,12 +119,52 @@ class FileTest extends CakeTestCase { $result = $this->File->Folder(); $this->assertInstanceOf('Folder', $result); + } +/** + * testPermission method + */ + public function testPermission() { $this->skipIf(DIRECTORY_SEPARATOR === '\\', 'File permissions tests not supported on Windows.'); - $result = $this->File->perms(); - $expecting = decoct(0644 & ~umask()); + $dir = TMP . 'tests' . DS . 'permissions' . DS; + $Folder = new Folder($dir); + + $old = umask(); + + umask(0002); + $file = $dir . 'permission_' . uniqid(); + $expecting = decoct(0664 & ~umask()); + $File = new File($file, true); + $result = $File->perms(); $this->assertEquals($expecting, $result); + $File->delete(); + + umask(0022); + $file = $dir . 'permission_' . uniqid(); + $expecting = decoct(0644 & ~umask()); + $File = new File($file, true); + $result = $File->perms(); + $this->assertEquals($expecting, $result); + $File->delete(); + + umask(0422); + $file = $dir . 'permission_' . uniqid(); + $expecting = decoct(0244 & ~umask()); + $File = new File($file, true); + $result = $File->perms(); + $this->assertEquals($expecting, $result); + $File->delete(); + + umask(0444); + $file = $dir . 'permission_' . uniqid(); + $expecting = decoct(0222 & ~umask()); + $File = new File($file, true); + $result = $File->perms(); + $this->assertEquals($expecting, $result); + $File->delete(); + + umask($old); } /** diff --git a/lib/Cake/Utility/File.php b/lib/Cake/Utility/File.php index ed72a9008..a7914f837 100644 --- a/lib/Cake/Utility/File.php +++ b/lib/Cake/Utility/File.php @@ -110,9 +110,7 @@ class File { public function create() { $dir = $this->Folder->pwd(); if (is_dir($dir) && is_writable($dir) && !$this->exists()) { - $old = umask(0); if (touch($this->path)) { - umask($old); return true; } } From ef1da3146eb5947d0fd25a28b5094b86b251693b Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 24 Apr 2012 20:11:58 -0400 Subject: [PATCH 06/85] Fix scaffold delete messages with uuids. Fixes #2826 --- lib/Cake/Controller/Scaffold.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Controller/Scaffold.php b/lib/Cake/Controller/Scaffold.php index 1d0fd3e1a..854312686 100644 --- a/lib/Cake/Controller/Scaffold.php +++ b/lib/Cake/Controller/Scaffold.php @@ -305,11 +305,11 @@ class Scaffold { throw new NotFoundException(__d('cake', 'Invalid %s', Inflector::humanize($this->modelClass))); } if ($this->ScaffoldModel->delete()) { - $message = __d('cake', 'The %1$s with id: %2$d has been deleted.', Inflector::humanize($this->modelClass), $id); + $message = __d('cake', 'The %1$s with id: %2$s has been deleted.', Inflector::humanize($this->modelClass), $id); return $this->_sendMessage($message); } else { $message = __d('cake', - 'There was an error deleting the %1$s with id: %2$d', + 'There was an error deleting the %1$s with id: %2$s', Inflector::humanize($this->modelClass), $id ); From eefb2e81fab0340369fec5b9478518ba83bccfae Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 24 Apr 2012 20:48:23 -0400 Subject: [PATCH 07/85] Fix issue where prefixes mid action would be truncated. If a prefix occured mid action name it would be removed, corrupting the action name. Fixes #2831 --- lib/Cake/Routing/Route/CakeRoute.php | 7 +++++-- lib/Cake/Routing/Router.php | 5 +++-- lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php | 10 ++++++++++ lib/Cake/Test/Case/Routing/RouterTest.php | 4 ++++ 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/lib/Cake/Routing/Route/CakeRoute.php b/lib/Cake/Routing/Route/CakeRoute.php index 2c2343b71..47c029e2b 100644 --- a/lib/Cake/Routing/Route/CakeRoute.php +++ b/lib/Cake/Routing/Route/CakeRoute.php @@ -478,8 +478,11 @@ class CakeRoute { * @return string Composed route string. */ protected function _writeUrl($params) { - if (isset($params['prefix'], $params['action'])) { - $params['action'] = str_replace($params['prefix'] . '_', '', $params['action']); + if (isset($params['prefix'])) { + $prefixed = $params['prefix'] . '_'; + } + if (isset($prefixed, $params['action']) && strpos($params['action'], $prefixed) === 0) { + $params['action'] = substr($params['action'], strlen($prefixed) * -1); unset($params['prefix']); } diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index 62cda92e7..1c8689410 100644 --- a/lib/Cake/Routing/Router.php +++ b/lib/Cake/Routing/Router.php @@ -893,8 +893,9 @@ class Router { list($args, $named) = array(Set::filter($args, true), Set::filter($named, true)); foreach (self::$_prefixes as $prefix) { - if (!empty($url[$prefix])) { - $url['action'] = str_replace($prefix . '_', '', $url['action']); + $prefixed = $prefix . '_'; + if (!empty($url[$prefix]) && strpos($url['action'], $prefixed) === 0) { + $url['action'] = substr($url['action'], strlen($prefixed) * -1); break; } } diff --git a/lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php b/lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php index 58e0644c4..a60f04530 100644 --- a/lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php +++ b/lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php @@ -299,6 +299,16 @@ class CakeRouteTest extends CakeTestCase { $result = $route->match($url); $expected = '/admin/subscriptions/edit/1'; $this->assertEquals($expected, $result); + + $url = array( + 'controller' => 'subscribe', + 'admin' => true, + 'action' => 'edit_admin_e', + 1 + ); + $result = $route->match($url); + $expected = '/admin/subscriptions/edit_admin_e/1'; + $this->assertEquals($expected, $result); } /** diff --git a/lib/Cake/Test/Case/Routing/RouterTest.php b/lib/Cake/Test/Case/Routing/RouterTest.php index 55d4e5d02..283aa9cfa 100644 --- a/lib/Cake/Test/Case/Routing/RouterTest.php +++ b/lib/Cake/Test/Case/Routing/RouterTest.php @@ -1582,6 +1582,10 @@ class RouterTest extends CakeTestCase { $expected = '/protected/images/add'; $this->assertEquals($expected, $result); + $result = Router::url(array('controller' => 'images', 'action' => 'add_protected_test', 'protected' => true)); + $expected = '/protected/images/add_protected_test'; + $this->assertEquals($expected, $result); + $result = Router::url(array('action' => 'edit', 1)); $expected = '/images/edit/1'; $this->assertEquals($expected, $result); From daa695b4d3f17db7b5804efc9df2dc79bf75ef8a Mon Sep 17 00:00:00 2001 From: Thomas Ploch Date: Wed, 25 Apr 2012 15:44:48 +0200 Subject: [PATCH 08/85] Added NotImplementedException with status code 501 --- lib/Cake/Error/exceptions.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/Cake/Error/exceptions.php b/lib/Cake/Error/exceptions.php index fea1eacdf..2545ac1b1 100644 --- a/lib/Cake/Error/exceptions.php +++ b/lib/Cake/Error/exceptions.php @@ -555,3 +555,18 @@ class FatalErrorException extends CakeException { } } + +/** + * Not Implemented Exception - used when an API method is not implemented + * + * @package Cake.Error + */ +class NotImplementedException extends CakeException { + + protected $_messageTemplate = '%s is not implemented.'; + + public function __construct($message, $code = 501) { + parent::__construct($message, $code); + } + +} From ba8a3c5f07bcf5ed595b7e8dadea11ac6843f771 Mon Sep 17 00:00:00 2001 From: euromark Date: Fri, 27 Apr 2012 02:39:32 +0200 Subject: [PATCH 09/85] added missing utf8_encode to pass tests on windows --- lib/Cake/Test/Case/Utility/CakeTimeTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Utility/CakeTimeTest.php b/lib/Cake/Test/Case/Utility/CakeTimeTest.php index 7193988dd..67f47fe85 100644 --- a/lib/Cake/Test/Case/Utility/CakeTimeTest.php +++ b/lib/Cake/Test/Case/Utility/CakeTimeTest.php @@ -810,7 +810,7 @@ class CakeTimeTest extends CakeTestCase { $this->assertEquals($expected, $result); $result = $this->Time->i18nFormat($time, '%c'); - $expected = 'jue 14 ene 2010 13:59:28 ' . strftime('%Z', $time); + $expected = 'jue 14 ene 2010 13:59:28 ' . utf8_encode(strftime('%Z', $time)); $this->assertEquals($expected, $result); $result = $this->Time->i18nFormat($time, 'Time is %r, and date is %x'); @@ -824,7 +824,7 @@ class CakeTimeTest extends CakeTestCase { $this->assertEquals($expected, $result); $result = $this->Time->i18nFormat($time, '%c'); - $expected = 'mié 13 ene 2010 13:59:28 ' . strftime('%Z', $time); + $expected = 'mié 13 ene 2010 13:59:28 ' . utf8_encode(strftime('%Z', $time)); $this->assertEquals($expected, $result); $result = $this->Time->i18nFormat($time, 'Time is %r, and date is %x'); From 37537faac0665aaf42c0d222b54c7235055ac77a Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Thu, 26 Apr 2012 20:19:03 -0400 Subject: [PATCH 10/85] Renamed method to check if the driver supports nested transaction. --- lib/Cake/Model/Datasource/Database/Mysql.php | 2 +- lib/Cake/Model/Datasource/Database/Postgres.php | 2 +- lib/Cake/Model/Datasource/Database/Sqlite.php | 2 +- lib/Cake/Model/Datasource/DboSource.php | 8 ++++---- .../Test/Case/Model/Datasource/Database/MysqlTest.php | 2 +- .../Test/Case/Model/Datasource/Database/PostgresTest.php | 2 +- .../Test/Case/Model/Datasource/Database/SqliteTest.php | 2 +- lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/Cake/Model/Datasource/Database/Mysql.php b/lib/Cake/Model/Datasource/Database/Mysql.php index 70c51366c..0733bd2d8 100644 --- a/lib/Cake/Model/Datasource/Database/Mysql.php +++ b/lib/Cake/Model/Datasource/Database/Mysql.php @@ -681,7 +681,7 @@ class Mysql extends DboSource { * * @return boolean */ - public function supportNestedTransaction() { + public function nestedTransactionSupported() { return $this->nestedTransaction && version_compare($this->getVersion(), '4.1', '>='); } diff --git a/lib/Cake/Model/Datasource/Database/Postgres.php b/lib/Cake/Model/Datasource/Database/Postgres.php index 35f568aad..b997ecbb8 100644 --- a/lib/Cake/Model/Datasource/Database/Postgres.php +++ b/lib/Cake/Model/Datasource/Database/Postgres.php @@ -900,7 +900,7 @@ class Postgres extends DboSource { * * @return boolean */ - public function supportNestedTransaction() { + public function nestedTransactionSupported() { return $this->nestedTransaction && version_compare($this->getVersion(), '8.0', '>='); } diff --git a/lib/Cake/Model/Datasource/Database/Sqlite.php b/lib/Cake/Model/Datasource/Database/Sqlite.php index 419709892..1e1dd4f8a 100644 --- a/lib/Cake/Model/Datasource/Database/Sqlite.php +++ b/lib/Cake/Model/Datasource/Database/Sqlite.php @@ -564,7 +564,7 @@ class Sqlite extends DboSource { * * @return boolean */ - public function supportNestedTransaction() { + public function nestedTransactionSupported() { return $this->nestedTransaction && version_compare($this->getVersion(), '3.6.8', '>='); } diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index 0ba0eb3e2..145324e9e 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -2031,7 +2031,7 @@ class DboSource extends DataSource { * * @return boolean */ - public function supportNestedTransaction() { + public function nestedTransactionSupported() { return false; } @@ -2044,7 +2044,7 @@ class DboSource extends DataSource { */ public function begin() { if ($this->_transactionStarted) { - if ($this->supportNestedTransaction()) { + if ($this->nestedTransactionSupported()) { return $this->_beginNested(); } $this->_transactionNesting++; @@ -2092,7 +2092,7 @@ class DboSource extends DataSource { return $this->_connection->commit(); } - if ($this->supportNestedTransaction()) { + if ($this->nestedTransactionSupported()) { return $this->_commitNested(); } @@ -2134,7 +2134,7 @@ class DboSource extends DataSource { return $this->_connection->rollBack(); } - if ($this->supportNestedTransaction()) { + if ($this->nestedTransactionSupported()) { return $this->_rollbackNested(); } diff --git a/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php b/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php index e0d4a1b93..dc89a0f2e 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php @@ -3588,7 +3588,7 @@ class MysqlTest extends CakeTestCase { public function testNestedTransaction() { $nested = $this->Dbo->nestedTransaction; $this->Dbo->nestedTransaction = true; - if ($this->Dbo->supportNestedTransaction() === false) { + if ($this->Dbo->nestedTransactionSupported() === false) { $this->Dbo->nestedTransaction = $nested; $this->skipIf(true, 'The MySQL server do not support nested transaction'); } diff --git a/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php b/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php index eb249e4d3..e7612614f 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php @@ -915,7 +915,7 @@ class PostgresTest extends CakeTestCase { * @return void */ public function testNestedTransaction() { - $this->skipIf($this->Dbo->supportNestedTransaction() === false, 'The Postgres server do not support nested transaction'); + $this->skipIf($this->Dbo->nestedTransactionSupported() === false, 'The Postgres server do not support nested transaction'); $this->loadFixtures('Article'); $model = new Article(); diff --git a/lib/Cake/Test/Case/Model/Datasource/Database/SqliteTest.php b/lib/Cake/Test/Case/Model/Datasource/Database/SqliteTest.php index a5a82cae1..f590cc7a0 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Database/SqliteTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Database/SqliteTest.php @@ -389,7 +389,7 @@ class SqliteTest extends CakeTestCase { * @return void */ public function testNestedTransaction() { - $this->skipIf($this->Dbo->supportNestedTransaction() === false, 'The Sqlite version do not support nested transaction'); + $this->skipIf($this->Dbo->nestedTransactionSupported() === false, 'The Sqlite version do not support nested transaction'); $this->loadFixtures('User'); $model = new User(); diff --git a/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php b/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php index 16952bb57..c126052a2 100644 --- a/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php @@ -53,7 +53,7 @@ class DboTestSource extends DboSource { $this->_connection = $conn; } - public function supportNestedTransaction() { + public function nestedTransactionSupported() { return $this->nestedTransaction && $this->nestedSupport; } From 333ea298052ab50b4ac03a338119583afa5e1184 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Thu, 26 Apr 2012 20:53:18 -0400 Subject: [PATCH 11/85] Renamed variable name from nested transaction --- lib/Cake/Model/Datasource/Database/Mysql.php | 2 +- lib/Cake/Model/Datasource/Database/Postgres.php | 2 +- lib/Cake/Model/Datasource/Database/Sqlite.php | 2 +- lib/Cake/Model/Datasource/DboSource.php | 2 +- .../Test/Case/Model/Datasource/Database/MysqlTest.php | 8 ++++---- lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php | 8 ++++---- lib/Cake/TestSuite/Fixture/CakeFixtureManager.php | 6 +++--- lib/Cake/TestSuite/Fixture/CakeTestFixture.php | 6 +++--- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/Cake/Model/Datasource/Database/Mysql.php b/lib/Cake/Model/Datasource/Database/Mysql.php index 0733bd2d8..9506a8a94 100644 --- a/lib/Cake/Model/Datasource/Database/Mysql.php +++ b/lib/Cake/Model/Datasource/Database/Mysql.php @@ -682,7 +682,7 @@ class Mysql extends DboSource { * @return boolean */ public function nestedTransactionSupported() { - return $this->nestedTransaction && version_compare($this->getVersion(), '4.1', '>='); + return $this->useNestedTransactions && version_compare($this->getVersion(), '4.1', '>='); } } diff --git a/lib/Cake/Model/Datasource/Database/Postgres.php b/lib/Cake/Model/Datasource/Database/Postgres.php index b997ecbb8..132e822c1 100644 --- a/lib/Cake/Model/Datasource/Database/Postgres.php +++ b/lib/Cake/Model/Datasource/Database/Postgres.php @@ -901,7 +901,7 @@ class Postgres extends DboSource { * @return boolean */ public function nestedTransactionSupported() { - return $this->nestedTransaction && version_compare($this->getVersion(), '8.0', '>='); + return $this->useNestedTransactions && version_compare($this->getVersion(), '8.0', '>='); } } diff --git a/lib/Cake/Model/Datasource/Database/Sqlite.php b/lib/Cake/Model/Datasource/Database/Sqlite.php index 1e1dd4f8a..4c5b3e541 100644 --- a/lib/Cake/Model/Datasource/Database/Sqlite.php +++ b/lib/Cake/Model/Datasource/Database/Sqlite.php @@ -565,7 +565,7 @@ class Sqlite extends DboSource { * @return boolean */ public function nestedTransactionSupported() { - return $this->nestedTransaction && version_compare($this->getVersion(), '3.6.8', '>='); + return $this->useNestedTransactions && version_compare($this->getVersion(), '3.6.8', '>='); } } diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index 145324e9e..0878efdd5 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -76,7 +76,7 @@ class DboSource extends DataSource { * * @var boolean */ - public $nestedTransaction = false; + public $useNestedTransactions = false; /** * Print full query debug info? diff --git a/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php b/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php index dc89a0f2e..7e8defc37 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php @@ -3586,10 +3586,10 @@ class MysqlTest extends CakeTestCase { * @return void */ public function testNestedTransaction() { - $nested = $this->Dbo->nestedTransaction; - $this->Dbo->nestedTransaction = true; + $nested = $this->Dbo->useNestedTransactions; + $this->Dbo->useNestedTransactions = true; if ($this->Dbo->nestedTransactionSupported() === false) { - $this->Dbo->nestedTransaction = $nested; + $this->Dbo->useNestedTransactions = $nested; $this->skipIf(true, 'The MySQL server do not support nested transaction'); } @@ -3617,7 +3617,7 @@ class MysqlTest extends CakeTestCase { $this->assertTrue($this->Dbo->rollback()); $this->assertNotEmpty($model->read(null, 1)); - $this->Dbo->nestedTransaction = $nested; + $this->Dbo->useNestedTransactions = $nested; } } diff --git a/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php b/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php index c126052a2..e7f6fae52 100644 --- a/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php @@ -54,7 +54,7 @@ class DboTestSource extends DboSource { } public function nestedTransactionSupported() { - return $this->nestedTransaction && $this->nestedSupport; + return $this->useNestedTransactions && $this->nestedSupport; } } @@ -849,7 +849,7 @@ class DboSourceTest extends CakeTestCase { $conn = $this->getMock('MockPDO'); $db = new DboTestSource(); $db->setConnection($conn); - $db->nestedTransaction = true; + $db->useNestedTransactions = true; $db->nestedSupport = true; $conn->expects($this->at(0))->method('beginTransaction')->will($this->returnValue(true)); @@ -871,7 +871,7 @@ class DboSourceTest extends CakeTestCase { $conn = $this->getMock('MockPDO'); $db = new DboTestSource(); $db->setConnection($conn); - $db->nestedTransaction = true; + $db->useNestedTransactions = true; $db->nestedSupport = false; $conn->expects($this->once())->method('beginTransaction')->will($this->returnValue(true)); @@ -890,7 +890,7 @@ class DboSourceTest extends CakeTestCase { $conn = $this->getMock('MockPDO'); $db = new DboTestSource(); $db->setConnection($conn); - $db->nestedTransaction = false; + $db->useNestedTransactions = false; $db->nestedSupport = true; $conn->expects($this->once())->method('beginTransaction')->will($this->returnValue(true)); diff --git a/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php b/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php index 50e96a738..7116632fa 100644 --- a/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php +++ b/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php @@ -193,8 +193,8 @@ class CakeFixtureManager { return; } - $nested = $test->db->nestedTransaction; - $test->db->nestedTransaction = false; + $nested = $test->db->useNestedTransactions; + $test->db->useNestedTransactions = false; $test->db->begin(); foreach ($fixtures as $f) { if (!empty($this->_loaded[$f])) { @@ -205,7 +205,7 @@ class CakeFixtureManager { } } $test->db->commit(); - $test->db->nestedTransaction = $nested; + $test->db->useNestedTransactions = $nested; } /** diff --git a/lib/Cake/TestSuite/Fixture/CakeTestFixture.php b/lib/Cake/TestSuite/Fixture/CakeTestFixture.php index 4a16be679..b2c3a279d 100644 --- a/lib/Cake/TestSuite/Fixture/CakeTestFixture.php +++ b/lib/Cake/TestSuite/Fixture/CakeTestFixture.php @@ -241,10 +241,10 @@ class CakeTestFixture { $fields = array_keys($record); $values[] = array_values(array_merge($default, $record)); } - $nested = $db->nestedTransaction; - $db->nestedTransaction = false; + $nested = $db->useNestedTransactions; + $db->useNestedTransactions = false; $result = $db->insertMulti($this->table, $fields, $values); - $db->nestedTransaction = $nested; + $db->useNestedTransactions = $nested; return $result; } return true; From 6bb8b22cdb04e51e2059fd607f20d74e4197ce6a Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 26 Apr 2012 22:27:34 -0400 Subject: [PATCH 12/85] Fix space indented code. --- lib/Cake/Routing/Router.php | 2 +- lib/Cake/Test/Case/Model/ModelWriteTest.php | 25 ++++++++++----------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index 1c8689410..aab278608 100644 --- a/lib/Cake/Routing/Router.php +++ b/lib/Cake/Routing/Router.php @@ -157,7 +157,7 @@ class Router { * * @var string */ - protected static $_routeClass = 'CakeRoute'; + protected static $_routeClass = 'CakeRoute'; /** * Set the default route class to use or return the current one diff --git a/lib/Cake/Test/Case/Model/ModelWriteTest.php b/lib/Cake/Test/Case/Model/ModelWriteTest.php index ff51b5f6f..cf73a427b 100644 --- a/lib/Cake/Test/Case/Model/ModelWriteTest.php +++ b/lib/Cake/Test/Case/Model/ModelWriteTest.php @@ -3305,8 +3305,8 @@ class ModelWriteTest extends BaseModelTest { $expected = array( 'Article' => true, 'Comment' => array( - true, - true + true, + true ) ); $this->assertSame($expected, $result); @@ -3324,8 +3324,8 @@ class ModelWriteTest extends BaseModelTest { $expected = array( 'Article' => true, 'Comment' => array( - false, - true + false, + true ) ); $this->assertSame($expected, $result); @@ -3364,8 +3364,8 @@ class ModelWriteTest extends BaseModelTest { $expected = array( 'Article' => true, 'Comment' => array( - true, - true + true, + true ) ); $this->assertSame($expected, $result); @@ -3382,8 +3382,8 @@ class ModelWriteTest extends BaseModelTest { $expected = array( 'Article' => true, 'Comment' => array( - true, - false + true, + false ) ); $this->assertSame($expected, $result); @@ -3731,8 +3731,8 @@ class ModelWriteTest extends BaseModelTest { $expected = array( 'Article' => true, 'Comment' => array( - true, - true + true, + true ) ); $this->assertSame($expected, $result); @@ -3760,8 +3760,8 @@ class ModelWriteTest extends BaseModelTest { $expected = array( 'Article' => true, 'Comment' => array( - true, - true + true, + true ) ); $this->assertSame($expected, $result); @@ -5245,7 +5245,6 @@ class ModelWriteTest extends BaseModelTest { $result = $TestModel->saveAssociated(array('Article' => array()), array('validate' => true, 'atomic' => false)); $this->assertEquals(array('Article' => false), $result); - } /** From b8488b8dfe47658d06f643f0534b0a36f6f97981 Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Thu, 26 Apr 2012 19:49:18 -0700 Subject: [PATCH 13/85] Update 1.x @link in docblocks --- app/webroot/test.php | 4 ++-- lib/Cake/Configure/PhpReader.php | 1 - lib/Cake/Console/Command/TestShell.php | 4 ++-- lib/Cake/Console/Command/TestsuiteShell.php | 4 ++-- lib/Cake/Console/Templates/skel/webroot/test.php | 4 ++-- lib/Cake/Controller/Component.php | 2 +- lib/Cake/Controller/Component/AuthComponent.php | 2 +- lib/Cake/Controller/Controller.php | 15 +++++++++------ lib/Cake/Error/exceptions.php | 2 +- lib/Cake/Model/Model.php | 16 ++++++++-------- lib/Cake/Test/Case/BasicsTest.php | 4 ++-- lib/Cake/Test/Case/Cache/CacheTest.php | 4 ++-- .../Test/Case/Cache/Engine/ApcEngineTest.php | 4 ++-- .../Test/Case/Cache/Engine/FileEngineTest.php | 4 ++-- .../Case/Cache/Engine/MemcacheEngineTest.php | 4 ++-- .../Case/Cache/Engine/WincacheEngineTest.php | 4 ++-- .../Test/Case/Cache/Engine/XcacheEngineTest.php | 4 ++-- lib/Cake/Test/Case/Configure/IniReaderTest.php | 4 ++-- lib/Cake/Test/Case/Configure/PhpReaderTest.php | 4 ++-- .../Case/Console/ConsoleOptionParserTest.php | 4 ++-- lib/Cake/Test/Case/Console/ConsoleOutputTest.php | 4 ++-- lib/Cake/Test/Case/Console/HelpFormatterTest.php | 4 ++-- .../Test/Case/Console/ShellDispatcherTest.php | 4 ++-- .../Test/Case/Console/TaskCollectionTest.php | 2 +- .../Controller/Component/AclComponentTest.php | 4 ++-- .../Controller/Component/AuthComponentTest.php | 4 ++-- .../Controller/Component/CookieComponentTest.php | 4 ++-- .../Controller/Component/EmailComponentTest.php | 4 ++-- .../Component/PaginatorComponentTest.php | 4 ++-- .../Component/RequestHandlerComponentTest.php | 4 ++-- .../Component/SecurityComponentTest.php | 4 ++-- .../Component/SessionComponentTest.php | 4 ++-- .../Case/Controller/ComponentCollectionTest.php | 2 +- lib/Cake/Test/Case/Controller/ComponentTest.php | 4 ++-- .../Case/Controller/ControllerMergeVarsTest.php | 4 ++-- .../Test/Case/Controller/PagesControllerTest.php | 4 ++-- lib/Cake/Test/Case/Controller/ScaffoldTest.php | 4 ++-- lib/Cake/Test/Case/Core/ConfigureTest.php | 4 ++-- lib/Cake/Test/Case/Core/ObjectTest.php | 4 ++-- lib/Cake/Test/Case/Error/ErrorHandlerTest.php | 4 ++-- .../Test/Case/Error/ExceptionRendererTest.php | 4 ++-- lib/Cake/Test/Case/I18n/I18nTest.php | 4 ++-- lib/Cake/Test/Case/I18n/L10nTest.php | 4 ++-- lib/Cake/Test/Case/I18n/MultibyteTest.php | 4 ++-- lib/Cake/Test/Case/Log/CakeLogTest.php | 4 ++-- lib/Cake/Test/Case/Log/Engine/FileLogTest.php | 4 ++-- lib/Cake/Test/Case/Model/AclNodeTest.php | 4 ++-- .../Model/Behavior/ContainableBehaviorTest.php | 4 ++-- .../Model/Behavior/TranslateBehaviorTest.php | 4 ++-- .../Model/Behavior/TreeBehaviorAfterTest.php | 4 ++-- .../Model/Behavior/TreeBehaviorNumberTest.php | 4 ++-- .../Model/Behavior/TreeBehaviorScopedTest.php | 4 ++-- .../Case/Model/Behavior/TreeBehaviorUuidTest.php | 4 ++-- lib/Cake/Test/Case/Model/CakeSchemaTest.php | 4 ++-- .../Test/Case/Model/ConnectionManagerTest.php | 2 +- .../Case/Model/Datasource/CakeSessionTest.php | 4 ++-- .../Case/Model/Datasource/DataSourceTest.php | 4 ++-- .../Test/Case/Model/Datasource/DboSourceTest.php | 4 ++-- .../Datasource/Session/CacheSessionTest.php | 2 +- .../Datasource/Session/DatabaseSessionTest.php | 2 +- .../Case/Model/ModelCrossSchemaHabtmTest.php | 4 ++-- lib/Cake/Test/Case/Model/ModelDeleteTest.php | 4 ++-- .../Test/Case/Model/ModelIntegrationTest.php | 4 ++-- lib/Cake/Test/Case/Model/ModelReadTest.php | 4 ++-- lib/Cake/Test/Case/Model/ModelTestBase.php | 4 ++-- lib/Cake/Test/Case/Model/ModelValidationTest.php | 4 ++-- lib/Cake/Test/Case/Model/ModelWriteTest.php | 4 ++-- lib/Cake/Test/Case/Model/models.php | 4 ++-- lib/Cake/Test/Case/Network/CakeSocketTest.php | 4 ++-- .../Test/Case/Network/Email/CakeEmailTest.php | 4 ++-- .../Case/Network/Email/DebugTransportTest.php | 4 ++-- .../Case/Network/Email/SmtpTransportTest.php | 4 ++-- .../Network/Http/BasicAuthenticationTest.php | 4 ++-- .../Network/Http/DigestAuthenticationTest.php | 4 ++-- .../Test/Case/Network/Http/HttpResponseTest.php | 4 ++-- .../Test/Case/Network/Http/HttpSocketTest.php | 4 ++-- lib/Cake/Test/Case/Routing/DispatcherTest.php | 4 ++-- lib/Cake/Test/Case/Routing/RouterTest.php | 4 ++-- .../Test/Case/TestSuite/CakeTestFixtureTest.php | 4 ++-- lib/Cake/Test/Case/Utility/CakeNumberTest.php | 4 ++-- lib/Cake/Test/Case/Utility/CakeTimeTest.php | 4 ++-- lib/Cake/Test/Case/Utility/ClassRegistryTest.php | 4 ++-- lib/Cake/Test/Case/Utility/FileTest.php | 4 ++-- lib/Cake/Test/Case/Utility/FolderTest.php | 4 ++-- lib/Cake/Test/Case/Utility/InflectorTest.php | 2 +- .../Test/Case/Utility/ObjectCollectionTest.php | 2 +- lib/Cake/Test/Case/Utility/SanitizeTest.php | 4 ++-- lib/Cake/Test/Case/Utility/SecurityTest.php | 4 ++-- lib/Cake/Test/Case/Utility/SetTest.php | 4 ++-- lib/Cake/Test/Case/Utility/StringTest.php | 2 +- lib/Cake/Test/Case/Utility/ValidationTest.php | 4 ++-- lib/Cake/Test/Case/Utility/XmlTest.php | 4 ++-- .../Test/Case/View/Helper/CacheHelperTest.php | 4 ++-- .../Test/Case/View/Helper/FormHelperTest.php | 4 ++-- .../Test/Case/View/Helper/HtmlHelperTest.php | 4 ++-- .../Case/View/Helper/JqueryEngineHelperTest.php | 2 +- lib/Cake/Test/Case/View/Helper/JsHelperTest.php | 4 ++-- .../Test/Case/View/Helper/NumberHelperTest.php | 4 ++-- .../Case/View/Helper/PaginatorHelperTest.php | 4 ++-- lib/Cake/Test/Case/View/Helper/RssHelperTest.php | 4 ++-- .../Test/Case/View/Helper/SessionHelperTest.php | 4 ++-- .../Test/Case/View/Helper/TextHelperTest.php | 4 ++-- .../Test/Case/View/Helper/TimeHelperTest.php | 4 ++-- lib/Cake/Test/Case/View/HelperCollectionTest.php | 2 +- lib/Cake/Test/Case/View/HelperTest.php | 4 ++-- lib/Cake/Test/Case/View/JsonViewTest.php | 4 ++-- lib/Cake/Test/Case/View/MediaViewTest.php | 4 ++-- lib/Cake/Test/Case/View/ScaffoldViewTest.php | 4 ++-- lib/Cake/Test/Case/View/ThemeViewTest.php | 4 ++-- lib/Cake/Test/Case/View/ViewTest.php | 4 ++-- lib/Cake/Test/Case/View/XmlViewTest.php | 4 ++-- lib/Cake/Test/Fixture/AccountFixture.php | 4 ++-- lib/Cake/Test/Fixture/AcoActionFixture.php | 4 ++-- lib/Cake/Test/Fixture/AcoFixture.php | 4 ++-- lib/Cake/Test/Fixture/AcoTwoFixture.php | 4 ++-- lib/Cake/Test/Fixture/AdvertisementFixture.php | 4 ++-- lib/Cake/Test/Fixture/AnotherArticleFixture.php | 4 ++-- lib/Cake/Test/Fixture/AppleFixture.php | 4 ++-- lib/Cake/Test/Fixture/ArmorFixture.php | 4 ++-- lib/Cake/Test/Fixture/ArmorsPlayerFixture.php | 4 ++-- lib/Cake/Test/Fixture/AroFixture.php | 4 ++-- lib/Cake/Test/Fixture/AroTwoFixture.php | 4 ++-- lib/Cake/Test/Fixture/ArosAcoFixture.php | 4 ++-- lib/Cake/Test/Fixture/ArosAcoTwoFixture.php | 4 ++-- lib/Cake/Test/Fixture/ArticleFeaturedFixture.php | 4 ++-- .../Test/Fixture/ArticleFeaturedsTagsFixture.php | 4 ++-- lib/Cake/Test/Fixture/ArticleFixture.php | 4 ++-- lib/Cake/Test/Fixture/ArticlesTagFixture.php | 4 ++-- lib/Cake/Test/Fixture/AttachmentFixture.php | 4 ++-- .../Test/Fixture/AuthUserCustomFieldFixture.php | 4 ++-- lib/Cake/Test/Fixture/AuthUserFixture.php | 4 ++-- lib/Cake/Test/Fixture/AuthorFixture.php | 4 ++-- lib/Cake/Test/Fixture/BakeArticleFixture.php | 4 ++-- .../Test/Fixture/BakeArticlesBakeTagFixture.php | 4 ++-- lib/Cake/Test/Fixture/BakeCommentFixture.php | 4 ++-- lib/Cake/Test/Fixture/BakeTagFixture.php | 4 ++-- lib/Cake/Test/Fixture/BasketFixture.php | 4 ++-- lib/Cake/Test/Fixture/BidFixture.php | 4 ++-- lib/Cake/Test/Fixture/BiddingFixture.php | 4 ++-- lib/Cake/Test/Fixture/BiddingMessageFixture.php | 4 ++-- lib/Cake/Test/Fixture/BinaryTestFixture.php | 4 ++-- lib/Cake/Test/Fixture/BookFixture.php | 4 ++-- lib/Cake/Test/Fixture/CacheTestModelFixture.php | 4 ++-- lib/Cake/Test/Fixture/CallbackFixture.php | 4 ++-- lib/Cake/Test/Fixture/CategoryFixture.php | 4 ++-- lib/Cake/Test/Fixture/CategoryThreadFixture.php | 4 ++-- lib/Cake/Test/Fixture/CdFixture.php | 4 ++-- lib/Cake/Test/Fixture/CommentFixture.php | 4 ++-- lib/Cake/Test/Fixture/ContentAccountFixture.php | 4 ++-- lib/Cake/Test/Fixture/ContentFixture.php | 4 ++-- .../Test/Fixture/CounterCachePostFixture.php | 4 ++-- ...nterCachePostNonstandardPrimaryKeyFixture.php | 4 ++-- .../Test/Fixture/CounterCacheUserFixture.php | 4 ++-- ...nterCacheUserNonstandardPrimaryKeyFixture.php | 4 ++-- lib/Cake/Test/Fixture/DataTestFixture.php | 4 ++-- lib/Cake/Test/Fixture/DeviceFixture.php | 4 ++-- .../Test/Fixture/DeviceTypeCategoryFixture.php | 4 ++-- lib/Cake/Test/Fixture/DeviceTypeFixture.php | 4 ++-- .../Test/Fixture/DocumentDirectoryFixture.php | 4 ++-- lib/Cake/Test/Fixture/DocumentFixture.php | 4 ++-- lib/Cake/Test/Fixture/DomainFixture.php | 4 ++-- lib/Cake/Test/Fixture/DomainsSiteFixture.php | 4 ++-- .../Test/Fixture/ExteriorTypeCategoryFixture.php | 4 ++-- lib/Cake/Test/Fixture/FeatureSetFixture.php | 4 ++-- lib/Cake/Test/Fixture/FeaturedFixture.php | 4 ++-- lib/Cake/Test/Fixture/FilmFileFixture.php | 4 ++-- lib/Cake/Test/Fixture/FlagTreeFixture.php | 4 ++-- lib/Cake/Test/Fixture/FruitFixture.php | 4 ++-- lib/Cake/Test/Fixture/FruitsUuidTagFixture.php | 4 ++-- lib/Cake/Test/Fixture/GroupUpdateAllFixture.php | 4 ++-- lib/Cake/Test/Fixture/GuildFixture.php | 4 ++-- lib/Cake/Test/Fixture/GuildsPlayerFixture.php | 4 ++-- lib/Cake/Test/Fixture/HomeFixture.php | 4 ++-- lib/Cake/Test/Fixture/ImageFixture.php | 4 ++-- lib/Cake/Test/Fixture/ItemFixture.php | 4 ++-- lib/Cake/Test/Fixture/ItemsPortfolioFixture.php | 4 ++-- lib/Cake/Test/Fixture/JoinABFixture.php | 4 ++-- lib/Cake/Test/Fixture/JoinACFixture.php | 4 ++-- lib/Cake/Test/Fixture/JoinAFixture.php | 4 ++-- lib/Cake/Test/Fixture/JoinBFixture.php | 4 ++-- lib/Cake/Test/Fixture/JoinCFixture.php | 4 ++-- lib/Cake/Test/Fixture/JoinThingFixture.php | 4 ++-- lib/Cake/Test/Fixture/MessageFixture.php | 4 ++-- .../Fixture/MyCategoriesMyProductsFixture.php | 4 ++-- .../Test/Fixture/MyCategoriesMyUsersFixture.php | 4 ++-- lib/Cake/Test/Fixture/MyCategoryFixture.php | 4 ++-- lib/Cake/Test/Fixture/MyProductFixture.php | 4 ++-- lib/Cake/Test/Fixture/MyUserFixture.php | 4 ++-- lib/Cake/Test/Fixture/NumberTreeFixture.php | 4 ++-- lib/Cake/Test/Fixture/NumberTreeTwoFixture.php | 4 ++-- lib/Cake/Test/Fixture/NumericArticleFixture.php | 4 ++-- lib/Cake/Test/Fixture/OverallFavoriteFixture.php | 4 ++-- lib/Cake/Test/Fixture/PersonFixture.php | 4 ++-- lib/Cake/Test/Fixture/PlayerFixture.php | 4 ++-- lib/Cake/Test/Fixture/PortfolioFixture.php | 4 ++-- lib/Cake/Test/Fixture/PostFixture.php | 4 ++-- lib/Cake/Test/Fixture/PostsTagFixture.php | 4 ++-- lib/Cake/Test/Fixture/PrefixTestFixture.php | 4 ++-- lib/Cake/Test/Fixture/PrimaryModelFixture.php | 4 ++-- lib/Cake/Test/Fixture/ProductFixture.php | 4 ++-- .../Test/Fixture/ProductUpdateAllFixture.php | 4 ++-- lib/Cake/Test/Fixture/ProjectFixture.php | 4 ++-- lib/Cake/Test/Fixture/SampleFixture.php | 4 ++-- lib/Cake/Test/Fixture/SecondaryModelFixture.php | 4 ++-- lib/Cake/Test/Fixture/SessionFixture.php | 4 ++-- lib/Cake/Test/Fixture/SiteFixture.php | 4 ++-- lib/Cake/Test/Fixture/SomethingElseFixture.php | 4 ++-- lib/Cake/Test/Fixture/SomethingFixture.php | 4 ++-- lib/Cake/Test/Fixture/StoriesTagFixture.php | 4 ++-- lib/Cake/Test/Fixture/StoryFixture.php | 4 ++-- lib/Cake/Test/Fixture/SyfileFixture.php | 4 ++-- lib/Cake/Test/Fixture/TagFixture.php | 4 ++-- .../Test/Fixture/TestPluginArticleFixture.php | 4 ++-- .../Test/Fixture/TestPluginCommentFixture.php | 4 ++-- lib/Cake/Test/Fixture/ThePaperMonkiesFixture.php | 4 ++-- lib/Cake/Test/Fixture/ThreadFixture.php | 4 ++-- .../Test/Fixture/TranslateArticleFixture.php | 4 ++-- lib/Cake/Test/Fixture/TranslateFixture.php | 4 ++-- lib/Cake/Test/Fixture/TranslateTableFixture.php | 4 ++-- .../Test/Fixture/TranslateWithPrefixFixture.php | 4 ++-- .../Test/Fixture/TranslatedArticleFixture.php | 4 ++-- lib/Cake/Test/Fixture/TranslatedItemFixture.php | 4 ++-- .../Test/Fixture/UnconventionalTreeFixture.php | 4 ++-- lib/Cake/Test/Fixture/UnderscoreFieldFixture.php | 4 ++-- lib/Cake/Test/Fixture/UserFixture.php | 4 ++-- lib/Cake/Test/Fixture/UuidFixture.php | 4 ++-- lib/Cake/Test/Fixture/UuidTagFixture.php | 4 ++-- lib/Cake/Test/Fixture/UuidTreeFixture.php | 4 ++-- lib/Cake/Test/Fixture/UuiditemFixture.php | 4 ++-- .../Fixture/UuiditemsUuidportfolioFixture.php | 4 ++-- .../UuiditemsUuidportfolioNumericidFixture.php | 4 ++-- lib/Cake/Test/Fixture/UuidportfolioFixture.php | 4 ++-- .../test_app/Console/Command/SampleShell.php | 4 ++-- .../Test/test_app/Controller/AppController.php | 2 +- .../test_app/Controller/TestsAppsController.php | 4 ++-- .../Controller/TestsAppsPostsController.php | 4 ++-- .../Lib/Cache/Engine/TestAppCacheEngine.php | 4 ++-- lib/Cake/Test/test_app/Lib/Library.php | 4 ++-- .../Test/test_app/Lib/Log/Engine/TestAppLog.php | 4 ++-- .../test_app/Lib/Utility/TestUtilityClass.php | 4 ++-- .../test_app/Plugin/TestPlugin/Config/load.php | 4 ++-- .../Plugin/TestPlugin/Config/more.load.php | 4 ++-- .../TestPlugin/Console/Command/ExampleShell.php | 4 ++-- .../Console/Command/Task/OtherTaskTask.php | 4 ++-- .../Controller/Component/OtherComponent.php | 4 ++-- .../Controller/Component/PluginsComponent.php | 4 ++-- .../Controller/Component/TestPluginComponent.php | 4 ++-- .../Component/TestPluginOtherComponent.php | 4 ++-- .../Controller/TestPluginAppController.php | 4 ++-- .../Controller/TestPluginController.php | 4 ++-- .../TestPlugin/Controller/TestsController.php | 4 ++-- .../Lib/Cache/Engine/TestPluginCacheEngine.php | 4 ++-- .../Lib/Custom/Package/CustomLibClass.php | 4 ++-- .../TestPlugin/Lib/Log/Engine/TestPluginLog.php | 4 ++-- .../Plugin/TestPlugin/Lib/TestPluginLibrary.php | 4 ++-- .../TestPlugin/Lib/TestPluginOtherLibrary.php | 4 ++-- .../TestPlugin/Model/TestPluginAppModel.php | 4 ++-- .../TestPlugin/Vendor/sample/sample_plugin.php | 4 ++-- .../Plugin/TestPlugin/Vendor/welcome.php | 4 ++-- .../TestPlugin/View/Helper/OtherHelperHelper.php | 4 ++-- .../View/Helper/PluggedHelperHelper.php | 4 ++-- .../Console/Command/ExampleShell.php | 4 ++-- .../Console/Command/WelcomeShell.php | 4 ++-- lib/Cake/Test/test_app/Vendor/Test/MyTest.php | 4 ++-- lib/Cake/Test/test_app/Vendor/Test/hello.php | 4 ++-- .../sample/configure_test_vendor_sample.php | 4 ++-- .../Test/test_app/Vendor/somename/some.name.php | 4 ++-- lib/Cake/Test/test_app/Vendor/welcome.php | 4 ++-- lib/Cake/TestSuite/CakeTestCase.php | 4 ++-- lib/Cake/TestSuite/CakeTestSuiteDispatcher.php | 2 +- lib/Cake/TestSuite/ControllerTestCase.php | 4 ++-- lib/Cake/TestSuite/Fixture/CakeTestFixture.php | 4 ++-- lib/Cake/TestSuite/Fixture/CakeTestModel.php | 4 ++-- lib/Cake/TestSuite/Reporter/CakeBaseReporter.php | 2 +- lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php | 2 +- lib/Cake/TestSuite/Reporter/CakeTextReporter.php | 2 +- lib/Cake/TestSuite/templates/footer.php | 4 ++-- lib/Cake/TestSuite/templates/header.php | 4 ++-- lib/Cake/TestSuite/templates/menu.php | 4 ++-- .../TestSuite/templates/missing_connection.php | 4 ++-- lib/Cake/TestSuite/templates/phpunit.php | 4 ++-- lib/Cake/TestSuite/templates/xdebug.php | 4 ++-- 282 files changed, 557 insertions(+), 555 deletions(-) diff --git a/app/webroot/test.php b/app/webroot/test.php index 9a3a072ad..8c4f14966 100644 --- a/app/webroot/test.php +++ b/app/webroot/test.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing + * @link http://book.cakephp.org/2.0/en/development/testing.html * @package app.webroot * @since CakePHP(tm) v 1.2.0.4433 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Configure/PhpReader.php b/lib/Cake/Configure/PhpReader.php index 2043351b8..ed3d2e4b7 100644 --- a/lib/Cake/Configure/PhpReader.php +++ b/lib/Cake/Configure/PhpReader.php @@ -4,7 +4,6 @@ * * PHP 5 * - * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License diff --git a/lib/Cake/Console/Command/TestShell.php b/lib/Cake/Console/Command/TestShell.php index a3b410ba0..e5b76b900 100644 --- a/lib/Cake/Console/Command/TestShell.php +++ b/lib/Cake/Console/Command/TestShell.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html * @since CakePHP(tm) v 1.2.0.4433 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ diff --git a/lib/Cake/Console/Command/TestsuiteShell.php b/lib/Cake/Console/Command/TestsuiteShell.php index 71decbeff..2f858c23b 100644 --- a/lib/Cake/Console/Command/TestsuiteShell.php +++ b/lib/Cake/Console/Command/TestsuiteShell.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html * @since CakePHP(tm) v 1.2.0.4433 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ diff --git a/lib/Cake/Console/Templates/skel/webroot/test.php b/lib/Cake/Console/Templates/skel/webroot/test.php index c28757943..37b7f2528 100644 --- a/lib/Cake/Console/Templates/skel/webroot/test.php +++ b/lib/Cake/Console/Templates/skel/webroot/test.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing + * @link http://book.cakephp.org/2.0/en/development/testing.html * @package app.webroot * @since CakePHP(tm) v 1.2.0.4433 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Controller/Component.php b/lib/Cake/Controller/Component.php index cecf39e05..876174e8c 100644 --- a/lib/Cake/Controller/Component.php +++ b/lib/Cake/Controller/Component.php @@ -35,7 +35,7 @@ App::uses('ComponentCollection', 'Controller'); * - `beforeRedirect()` - Fired before a redirect() is done. * * @package Cake.Controller - * @link http://book.cakephp.org/view/993/Components + * @link http://book.cakephp.org/2.0/en/controllers/components.html * @see Controller::$components */ class Component extends Object { diff --git a/lib/Cake/Controller/Component/AuthComponent.php b/lib/Cake/Controller/Component/AuthComponent.php index c9e13e126..22b691362 100644 --- a/lib/Cake/Controller/Component/AuthComponent.php +++ b/lib/Cake/Controller/Component/AuthComponent.php @@ -117,7 +117,7 @@ class AuthComponent extends Component { * You can also use AuthComponent::ALL instead of the string 'all' * * @var mixed - * @link http://book.cakephp.org/view/1275/authorize + * @link http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#authorization */ public $authorize = false; diff --git a/lib/Cake/Controller/Controller.php b/lib/Cake/Controller/Controller.php index cebdb9b67..4dacc8e07 100644 --- a/lib/Cake/Controller/Controller.php +++ b/lib/Cake/Controller/Controller.php @@ -100,6 +100,7 @@ class Controller extends Object implements CakeEventListener { * additional information about the request. * * @var CakeRequest + * @link http://book.cakephp.org/2.0/en/controllers/request-response.html#cakerequest */ public $request; @@ -107,6 +108,7 @@ class Controller extends Object implements CakeEventListener { * An instance of a CakeResponse object that contains information about the impending response * * @var CakeResponse + * @link http://book.cakephp.org/2.0/en/controllers/request-response.html#cakeresponse */ public $response; @@ -184,7 +186,7 @@ class Controller extends Object implements CakeEventListener { * Example: `public $components = array('Session', 'RequestHandler', 'Acl');` * * @var array - * @link http://book.cakephp.org/view/961/components-helpers-and-uses + * @link http://book.cakephp.org/2.0/en/controllers/components.html */ public $components = array('Session'); @@ -196,7 +198,8 @@ class Controller extends Object implements CakeEventListener { public $viewClass = 'View'; /** - * Instance of the View created during rendering. Won't be set until after Controller::render() is called. + * Instance of the View created during rendering. Won't be set until after + * Controller::render() is called. * * @var View */ @@ -234,7 +237,7 @@ class Controller extends Object implements CakeEventListener { * marks all the actions in the controller for view caching. * * @var mixed - * @link http://book.cakephp.org/view/1380/Caching-in-the-Controller + * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/cache.html#additional-configuration-options */ public $cacheAction = false; @@ -249,13 +252,13 @@ class Controller extends Object implements CakeEventListener { * Triggers Scaffolding * * @var mixed - * @link http://book.cakephp.org/view/1103/Scaffolding + * @link http://book.cakephp.org/2.0/en/controllers/scaffolding.html */ public $scaffold = false; /** - * Holds current methods of the controller. This is a list of all the methods reachable - * via url. Modifying this array, will allow you to change which methods can be reached. + * Holds current methods of the controller. This is a list of all the methods reachable + * via url. Modifying this array, will allow you to change which methods can be reached. * * @var array */ diff --git a/lib/Cake/Error/exceptions.php b/lib/Cake/Error/exceptions.php index 6b6d1e26b..89d813443 100644 --- a/lib/Cake/Error/exceptions.php +++ b/lib/Cake/Error/exceptions.php @@ -12,7 +12,7 @@ * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html * @package Cake.Error * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index aeebf3ea0..026e72bb9 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -3491,7 +3491,7 @@ class Model extends Object implements CakeEventListener { * @param array $queryData Data used to execute this query, i.e. conditions, order, etc. * @return mixed true if the operation should continue, false if it should abort; or, modified * $queryData to continue with new $queryData - * @link http://book.cakephp.org/view/1048/Callback-Methods#beforeFind-1049 + * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#beforefind */ public function beforeFind($queryData) { return true; @@ -3504,7 +3504,7 @@ class Model extends Object implements CakeEventListener { * @param mixed $results The results of the find operation * @param boolean $primary Whether this model is being queried directly (vs. being queried as an association) * @return mixed Result of the find operation - * @link http://book.cakephp.org/view/1048/Callback-Methods#afterFind-1050 + * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#afterfind */ public function afterFind($results, $primary = false) { return $results; @@ -3516,7 +3516,7 @@ class Model extends Object implements CakeEventListener { * * @param array $options * @return boolean True if the operation should continue, false if it should abort - * @link http://book.cakephp.org/view/1048/Callback-Methods#beforeSave-1052 + * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#beforesave */ public function beforeSave($options = array()) { return true; @@ -3527,7 +3527,7 @@ class Model extends Object implements CakeEventListener { * * @param boolean $created True if this save created a new record * @return void - * @link http://book.cakephp.org/view/1048/Callback-Methods#afterSave-1053 + * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#aftersave */ public function afterSave($created) { } @@ -3537,7 +3537,7 @@ class Model extends Object implements CakeEventListener { * * @param boolean $cascade If true records that depend on this record will also be deleted * @return boolean True if the operation should continue, false if it should abort - * @link http://book.cakephp.org/view/1048/Callback-Methods#beforeDelete-1054 + * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#beforedelete */ public function beforeDelete($cascade = true) { return true; @@ -3547,7 +3547,7 @@ class Model extends Object implements CakeEventListener { * Called after every deletion operation. * * @return void - * @link http://book.cakephp.org/view/1048/Callback-Methods#afterDelete-1055 + * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#afterdelete */ public function afterDelete() { } @@ -3558,7 +3558,7 @@ class Model extends Object implements CakeEventListener { * * @param array $options Options passed from model::save(), see $options of model::save(). * @return boolean True if validate operation should continue, false to abort - * @link http://book.cakephp.org/view/1048/Callback-Methods#beforeValidate-1051 + * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#beforevalidate */ public function beforeValidate($options = array()) { return true; @@ -3568,7 +3568,7 @@ class Model extends Object implements CakeEventListener { * Called when a DataSource-level error occurs. * * @return void - * @link http://book.cakephp.org/view/1048/Callback-Methods#onError-1056 + * @link http://book.cakephp.org/2.0/en/models/callback-methods.html#onerror */ public function onError() { } diff --git a/lib/Cake/Test/Case/BasicsTest.php b/lib/Cake/Test/Case/BasicsTest.php index fd2dbba65..253122c3a 100644 --- a/lib/Cake/Test/Case/BasicsTest.php +++ b/lib/Cake/Test/Case/BasicsTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Cache/CacheTest.php b/lib/Cake/Test/Case/Cache/CacheTest.php index a5360a4e2..152a708fa 100644 --- a/lib/Cake/Test/Case/Cache/CacheTest.php +++ b/lib/Cake/Test/Case/Cache/CacheTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Cache * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php b/lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php index 62ac9b692..4ecaa349e 100644 --- a/lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php +++ b/lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Cache.Engine * @since CakePHP(tm) v 1.2.0.5434 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php b/lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php index 6923d7f8a..96392c39e 100644 --- a/lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php +++ b/lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Cache.Engine * @since CakePHP(tm) v 1.2.0.5434 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php b/lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php index c0430bd04..48babbf6a 100644 --- a/lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php +++ b/lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Cache.Engine * @since CakePHP(tm) v 1.2.0.5434 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Cache/Engine/WincacheEngineTest.php b/lib/Cake/Test/Case/Cache/Engine/WincacheEngineTest.php index c4da341fa..f19d3b5d5 100644 --- a/lib/Cake/Test/Case/Cache/Engine/WincacheEngineTest.php +++ b/lib/Cake/Test/Case/Cache/Engine/WincacheEngineTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Cache.Engine * @since CakePHP(tm) v 1.2.0.5434 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Cache/Engine/XcacheEngineTest.php b/lib/Cake/Test/Case/Cache/Engine/XcacheEngineTest.php index 9f6b09141..6e76d08b4 100644 --- a/lib/Cake/Test/Case/Cache/Engine/XcacheEngineTest.php +++ b/lib/Cake/Test/Case/Cache/Engine/XcacheEngineTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Cache.Engine * @since CakePHP(tm) v 1.2.0.5434 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Configure/IniReaderTest.php b/lib/Cake/Test/Case/Configure/IniReaderTest.php index 43ad3ce72..6ce077fa2 100644 --- a/lib/Cake/Test/Case/Configure/IniReaderTest.php +++ b/lib/Cake/Test/Case/Configure/IniReaderTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Configure * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Configure/PhpReaderTest.php b/lib/Cake/Test/Case/Configure/PhpReaderTest.php index ea34d8b3e..8531103a3 100644 --- a/lib/Cake/Test/Case/Configure/PhpReaderTest.php +++ b/lib/Cake/Test/Case/Configure/PhpReaderTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Configure * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php b/lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php index a2787ffc2..b4b7ece8d 100644 --- a/lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php +++ b/lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html 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) diff --git a/lib/Cake/Test/Case/Console/ConsoleOutputTest.php b/lib/Cake/Test/Case/Console/ConsoleOutputTest.php index 0f7e106a3..e97c8a696 100644 --- a/lib/Cake/Test/Case/Console/ConsoleOutputTest.php +++ b/lib/Cake/Test/Case/Console/ConsoleOutputTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Console * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Console/HelpFormatterTest.php b/lib/Cake/Test/Case/Console/HelpFormatterTest.php index 1b4d95317..888ddfc74 100644 --- a/lib/Cake/Test/Case/Console/HelpFormatterTest.php +++ b/lib/Cake/Test/Case/Console/HelpFormatterTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html 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) diff --git a/lib/Cake/Test/Case/Console/ShellDispatcherTest.php b/lib/Cake/Test/Case/Console/ShellDispatcherTest.php index 1b3adfabd..3268d934d 100644 --- a/lib/Cake/Test/Case/Console/ShellDispatcherTest.php +++ b/lib/Cake/Test/Case/Console/ShellDispatcherTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Console * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Console/TaskCollectionTest.php b/lib/Cake/Test/Case/Console/TaskCollectionTest.php index a681b490b..9317e7711 100644 --- a/lib/Cake/Test/Case/Console/TaskCollectionTest.php +++ b/lib/Cake/Test/Case/Console/TaskCollectionTest.php @@ -11,7 +11,7 @@ * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html 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) diff --git a/lib/Cake/Test/Case/Controller/Component/AclComponentTest.php b/lib/Cake/Test/Case/Controller/Component/AclComponentTest.php index 7261a8222..b16d7af71 100644 --- a/lib/Cake/Test/Case/Controller/Component/AclComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/AclComponentTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller.Component * @since CakePHP(tm) v 1.2.0.5435 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php b/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php index 82d96bf06..54f1cf921 100644 --- a/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller.Component * @since CakePHP(tm) v 1.2.0.5347 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php b/lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php index 792487644..a541807d1 100644 --- a/lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller.Component * @since CakePHP(tm) v 1.2.0.5435 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Controller/Component/EmailComponentTest.php b/lib/Cake/Test/Case/Controller/Component/EmailComponentTest.php index 2e1ac3bbb..72c5afa04 100644 --- a/lib/Cake/Test/Case/Controller/Component/EmailComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/EmailComponentTest.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller.Component * @since CakePHP(tm) v 1.2.0.5347 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php b/lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php index 5a87a32c1..9e5fcf540 100644 --- a/lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller.Component * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php b/lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php index fabda594d..e6ca8c949 100644 --- a/lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller.Component * @since CakePHP(tm) v 1.2.0.5435 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php b/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php index c97626df5..364bcb039 100644 --- a/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller.Component * @since CakePHP(tm) v 1.2.0.5435 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php b/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php index ffcf78a05..0920186c5 100644 --- a/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller.Component * @since CakePHP(tm) v 1.2.0.5436 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Controller/ComponentCollectionTest.php b/lib/Cake/Test/Case/Controller/ComponentCollectionTest.php index e556263cc..54315c12b 100644 --- a/lib/Cake/Test/Case/Controller/ComponentCollectionTest.php +++ b/lib/Cake/Test/Case/Controller/ComponentCollectionTest.php @@ -11,7 +11,7 @@ * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Controller/ComponentTest.php b/lib/Cake/Test/Case/Controller/ComponentTest.php index 482e304f7..6fadfcab7 100644 --- a/lib/Cake/Test/Case/Controller/ComponentTest.php +++ b/lib/Cake/Test/Case/Controller/ComponentTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller * @since CakePHP(tm) v 1.2.0.5436 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php b/lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php index df96b2bee..93a5cecac 100644 --- a/lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php +++ b/lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller * @since CakePHP(tm) v 1.2.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Controller/PagesControllerTest.php b/lib/Cake/Test/Case/Controller/PagesControllerTest.php index 829a940d9..614edea91 100644 --- a/lib/Cake/Test/Case/Controller/PagesControllerTest.php +++ b/lib/Cake/Test/Case/Controller/PagesControllerTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller * @since CakePHP(tm) v 1.2.0.5436 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Controller/ScaffoldTest.php b/lib/Cake/Test/Case/Controller/ScaffoldTest.php index cd5ac89cb..14fe18264 100644 --- a/lib/Cake/Test/Case/Controller/ScaffoldTest.php +++ b/lib/Cake/Test/Case/Controller/ScaffoldTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller * @since CakePHP(tm) v 1.2.0.5436 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Core/ConfigureTest.php b/lib/Cake/Test/Case/Core/ConfigureTest.php index 9a73a1e7c..f81c7cc00 100644 --- a/lib/Cake/Test/Case/Core/ConfigureTest.php +++ b/lib/Cake/Test/Case/Core/ConfigureTest.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Core * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Core/ObjectTest.php b/lib/Cake/Test/Case/Core/ObjectTest.php index 0258d0402..dd42ba910 100644 --- a/lib/Cake/Test/Case/Core/ObjectTest.php +++ b/lib/Cake/Test/Case/Core/ObjectTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Core * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Error/ErrorHandlerTest.php b/lib/Cake/Test/Case/Error/ErrorHandlerTest.php index ce49ac080..0650f2120 100644 --- a/lib/Cake/Test/Case/Error/ErrorHandlerTest.php +++ b/lib/Cake/Test/Case/Error/ErrorHandlerTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Error * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Error/ExceptionRendererTest.php b/lib/Cake/Test/Case/Error/ExceptionRendererTest.php index 479ce0698..41c10113a 100644 --- a/lib/Cake/Test/Case/Error/ExceptionRendererTest.php +++ b/lib/Cake/Test/Case/Error/ExceptionRendererTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Error * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/I18n/I18nTest.php b/lib/Cake/Test/Case/I18n/I18nTest.php index 3f6dff13d..e86628bb4 100644 --- a/lib/Cake/Test/Case/I18n/I18nTest.php +++ b/lib/Cake/Test/Case/I18n/I18nTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.I18n * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/I18n/L10nTest.php b/lib/Cake/Test/Case/I18n/L10nTest.php index c79ee2831..d52c3a60d 100644 --- a/lib/Cake/Test/Case/I18n/L10nTest.php +++ b/lib/Cake/Test/Case/I18n/L10nTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.I18n * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/I18n/MultibyteTest.php b/lib/Cake/Test/Case/I18n/MultibyteTest.php index d2bbe1664..927b84405 100644 --- a/lib/Cake/Test/Case/I18n/MultibyteTest.php +++ b/lib/Cake/Test/Case/I18n/MultibyteTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.I18n * @since CakePHP(tm) v 1.2.0.6833 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Log/CakeLogTest.php b/lib/Cake/Test/Case/Log/CakeLogTest.php index 89e3e3e86..a24731a01 100644 --- a/lib/Cake/Test/Case/Log/CakeLogTest.php +++ b/lib/Cake/Test/Case/Log/CakeLogTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Log * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Log/Engine/FileLogTest.php b/lib/Cake/Test/Case/Log/Engine/FileLogTest.php index 2dc3153bf..b4c13c8a8 100644 --- a/lib/Cake/Test/Case/Log/Engine/FileLogTest.php +++ b/lib/Cake/Test/Case/Log/Engine/FileLogTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Log.Engine * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/AclNodeTest.php b/lib/Cake/Test/Case/Model/AclNodeTest.php index 234788a1e..b4ac81606 100644 --- a/lib/Cake/Test/Case/Model/AclNodeTest.php +++ b/lib/Cake/Test/Case/Model/AclNodeTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php b/lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php index 1dbf1abac..733f6ea48 100644 --- a/lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model.Behavior * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php b/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php index e6d6e8f0a..cc2cf2033 100644 --- a/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model.Behavior * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorAfterTest.php b/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorAfterTest.php index 86077a92c..4e8ae4c85 100644 --- a/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorAfterTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorAfterTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model.Behavior * @since CakePHP(tm) v 1.2.0.5330 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php b/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php index ab78edf9e..17552f40d 100644 --- a/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model.Behavior * @since CakePHP(tm) v 1.2.0.5330 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorScopedTest.php b/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorScopedTest.php index 6f9163a04..23d399343 100644 --- a/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorScopedTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorScopedTest.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model.Behavior * @since CakePHP(tm) v 1.2.0.5330 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorUuidTest.php b/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorUuidTest.php index 64d5c61cf..a69445ef9 100644 --- a/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorUuidTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/TreeBehaviorUuidTest.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model.Behavior * @since CakePHP(tm) v 1.2.0.5330 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/CakeSchemaTest.php b/lib/Cake/Test/Case/Model/CakeSchemaTest.php index a6a640417..07265f5c5 100644 --- a/lib/Cake/Test/Case/Model/CakeSchemaTest.php +++ b/lib/Cake/Test/Case/Model/CakeSchemaTest.php @@ -5,14 +5,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model * @since CakePHP(tm) v 1.2.0.5550 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/ConnectionManagerTest.php b/lib/Cake/Test/Case/Model/ConnectionManagerTest.php index 3bb1bc0c3..a35d06b20 100644 --- a/lib/Cake/Test/Case/Model/ConnectionManagerTest.php +++ b/lib/Cake/Test/Case/Model/ConnectionManagerTest.php @@ -10,7 +10,7 @@ * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model * @since CakePHP(tm) v 1.2.0.5550 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php b/lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php index 711f5343d..a62951cc2 100644 --- a/lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model.Datasource * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/Datasource/DataSourceTest.php b/lib/Cake/Test/Case/Model/Datasource/DataSourceTest.php index b347e0032..3bb9bd0d7 100644 --- a/lib/Cake/Test/Case/Model/Datasource/DataSourceTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/DataSourceTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The Open Group Test Suite License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model.Datasource * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php b/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php index 3b3449bb0..41fccf31d 100644 --- a/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The Open Group Test Suite License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model.Datasource * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/Datasource/Session/CacheSessionTest.php b/lib/Cake/Test/Case/Model/Datasource/Session/CacheSessionTest.php index 5fa971230..d696d7cd8 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Session/CacheSessionTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Session/CacheSessionTest.php @@ -4,7 +4,7 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License diff --git a/lib/Cake/Test/Case/Model/Datasource/Session/DatabaseSessionTest.php b/lib/Cake/Test/Case/Model/Datasource/Session/DatabaseSessionTest.php index b52dabe80..3276ae864 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Session/DatabaseSessionTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Session/DatabaseSessionTest.php @@ -4,7 +4,7 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License diff --git a/lib/Cake/Test/Case/Model/ModelCrossSchemaHabtmTest.php b/lib/Cake/Test/Case/Model/ModelCrossSchemaHabtmTest.php index 2e19f9ca7..31e5d58c9 100644 --- a/lib/Cake/Test/Case/Model/ModelCrossSchemaHabtmTest.php +++ b/lib/Cake/Test/Case/Model/ModelCrossSchemaHabtmTest.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model * @since CakePHP(tm) v 2.1 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/ModelDeleteTest.php b/lib/Cake/Test/Case/Model/ModelDeleteTest.php index 37e7c8695..329eef387 100644 --- a/lib/Cake/Test/Case/Model/ModelDeleteTest.php +++ b/lib/Cake/Test/Case/Model/ModelDeleteTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/ModelIntegrationTest.php b/lib/Cake/Test/Case/Model/ModelIntegrationTest.php index 180e1aeac..4b6f7a7f8 100644 --- a/lib/Cake/Test/Case/Model/ModelIntegrationTest.php +++ b/lib/Cake/Test/Case/Model/ModelIntegrationTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/ModelReadTest.php b/lib/Cake/Test/Case/Model/ModelReadTest.php index b0a073086..88b1b1711 100644 --- a/lib/Cake/Test/Case/Model/ModelReadTest.php +++ b/lib/Cake/Test/Case/Model/ModelReadTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/ModelTestBase.php b/lib/Cake/Test/Case/Model/ModelTestBase.php index 8e563c209..80be40954 100644 --- a/lib/Cake/Test/Case/Model/ModelTestBase.php +++ b/lib/Cake/Test/Case/Model/ModelTestBase.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/ModelValidationTest.php b/lib/Cake/Test/Case/Model/ModelValidationTest.php index b2b79c66c..451224e61 100644 --- a/lib/Cake/Test/Case/Model/ModelValidationTest.php +++ b/lib/Cake/Test/Case/Model/ModelValidationTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/ModelWriteTest.php b/lib/Cake/Test/Case/Model/ModelWriteTest.php index cf73a427b..f931b7ca3 100644 --- a/lib/Cake/Test/Case/Model/ModelWriteTest.php +++ b/lib/Cake/Test/Case/Model/ModelWriteTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Model/models.php b/lib/Cake/Test/Case/Model/models.php index a206b0790..053f0ae3f 100644 --- a/lib/Cake/Test/Case/Model/models.php +++ b/lib/Cake/Test/Case/Model/models.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Model * @since CakePHP(tm) v 1.2.0.6464 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Network/CakeSocketTest.php b/lib/Cake/Test/Case/Network/CakeSocketTest.php index 613e08d71..abe6fcadf 100644 --- a/lib/Cake/Test/Case/Network/CakeSocketTest.php +++ b/lib/Cake/Test/Case/Network/CakeSocketTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Network * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php b/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php index 3d02a30d4..6d429aff1 100644 --- a/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php +++ b/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Network.Email * @since CakePHP(tm) v 2.0.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Network/Email/DebugTransportTest.php b/lib/Cake/Test/Case/Network/Email/DebugTransportTest.php index 72fe704c8..e66c05373 100644 --- a/lib/Cake/Test/Case/Network/Email/DebugTransportTest.php +++ b/lib/Cake/Test/Case/Network/Email/DebugTransportTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Network.Email * @since CakePHP(tm) v 2.0.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php b/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php index 86591d5f8..ebfb29263 100644 --- a/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php +++ b/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Network.Email * @since CakePHP(tm) v 2.0.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Network/Http/BasicAuthenticationTest.php b/lib/Cake/Test/Case/Network/Http/BasicAuthenticationTest.php index 25c1b5cac..6ea778919 100644 --- a/lib/Cake/Test/Case/Network/Http/BasicAuthenticationTest.php +++ b/lib/Cake/Test/Case/Network/Http/BasicAuthenticationTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Network.Http * @since CakePHP(tm) v 2.0.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Network/Http/DigestAuthenticationTest.php b/lib/Cake/Test/Case/Network/Http/DigestAuthenticationTest.php index 13fb7d352..a03a536d9 100644 --- a/lib/Cake/Test/Case/Network/Http/DigestAuthenticationTest.php +++ b/lib/Cake/Test/Case/Network/Http/DigestAuthenticationTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Network.Http * @since CakePHP(tm) v 2.0.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Network/Http/HttpResponseTest.php b/lib/Cake/Test/Case/Network/Http/HttpResponseTest.php index 9a6e35345..0f6213e4c 100644 --- a/lib/Cake/Test/Case/Network/Http/HttpResponseTest.php +++ b/lib/Cake/Test/Case/Network/Http/HttpResponseTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Network.Http * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php b/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php index 7902fbc2b..f717c3ce1 100644 --- a/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php +++ b/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Network.Http * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Routing/DispatcherTest.php b/lib/Cake/Test/Case/Routing/DispatcherTest.php index 00bd99b1b..5f582de5a 100644 --- a/lib/Cake/Test/Case/Routing/DispatcherTest.php +++ b/lib/Cake/Test/Case/Routing/DispatcherTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Routing * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Routing/RouterTest.php b/lib/Cake/Test/Case/Routing/RouterTest.php index 283aa9cfa..db3a3a7a3 100644 --- a/lib/Cake/Test/Case/Routing/RouterTest.php +++ b/lib/Cake/Test/Case/Routing/RouterTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The Open Group Test Suite License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Routing * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php b/lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php index e7e9db503..556554872 100644 --- a/lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php +++ b/lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.TestSuite * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Utility/CakeNumberTest.php b/lib/Cake/Test/Case/Utility/CakeNumberTest.php index 1d0acdcf3..c90dc76d6 100644 --- a/lib/Cake/Test/Case/Utility/CakeNumberTest.php +++ b/lib/Cake/Test/Case/Utility/CakeNumberTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Utility/CakeTimeTest.php b/lib/Cake/Test/Case/Utility/CakeTimeTest.php index 70af2ff26..48740bd34 100644 --- a/lib/Cake/Test/Case/Utility/CakeTimeTest.php +++ b/lib/Cake/Test/Case/Utility/CakeTimeTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Utility/ClassRegistryTest.php b/lib/Cake/Test/Case/Utility/ClassRegistryTest.php index bca56f206..eb20fcead 100644 --- a/lib/Cake/Test/Case/Utility/ClassRegistryTest.php +++ b/lib/Cake/Test/Case/Utility/ClassRegistryTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Utility * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Utility/FileTest.php b/lib/Cake/Test/Case/Utility/FileTest.php index 70b20d98a..a2c820c00 100644 --- a/lib/Cake/Test/Case/Utility/FileTest.php +++ b/lib/Cake/Test/Case/Utility/FileTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Utility * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Utility/FolderTest.php b/lib/Cake/Test/Case/Utility/FolderTest.php index 1cc2230a1..76ee08af4 100644 --- a/lib/Cake/Test/Case/Utility/FolderTest.php +++ b/lib/Cake/Test/Case/Utility/FolderTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Utility * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Utility/InflectorTest.php b/lib/Cake/Test/Case/Utility/InflectorTest.php index d5683680a..cd1989248 100644 --- a/lib/Cake/Test/Case/Utility/InflectorTest.php +++ b/lib/Cake/Test/Case/Utility/InflectorTest.php @@ -13,7 +13,7 @@ * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing + * @link http://book.cakephp.org/2.0/en/development/testing.html * @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) diff --git a/lib/Cake/Test/Case/Utility/ObjectCollectionTest.php b/lib/Cake/Test/Case/Utility/ObjectCollectionTest.php index 4db295de2..364c50352 100644 --- a/lib/Cake/Test/Case/Utility/ObjectCollectionTest.php +++ b/lib/Cake/Test/Case/Utility/ObjectCollectionTest.php @@ -11,7 +11,7 @@ * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Utility * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Utility/SanitizeTest.php b/lib/Cake/Test/Case/Utility/SanitizeTest.php index b731b5559..13ba63c53 100644 --- a/lib/Cake/Test/Case/Utility/SanitizeTest.php +++ b/lib/Cake/Test/Case/Utility/SanitizeTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Utility * @since CakePHP(tm) v 1.2.0.5428 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Utility/SecurityTest.php b/lib/Cake/Test/Case/Utility/SecurityTest.php index 67f104a0d..ca7fb6916 100644 --- a/lib/Cake/Test/Case/Utility/SecurityTest.php +++ b/lib/Cake/Test/Case/Utility/SecurityTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Utility * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Utility/SetTest.php b/lib/Cake/Test/Case/Utility/SetTest.php index 61820e345..7c6b7fcb2 100644 --- a/lib/Cake/Test/Case/Utility/SetTest.php +++ b/lib/Cake/Test/Case/Utility/SetTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Utility * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Utility/StringTest.php b/lib/Cake/Test/Case/Utility/StringTest.php index efce3213b..86b7001f6 100644 --- a/lib/Cake/Test/Case/Utility/StringTest.php +++ b/lib/Cake/Test/Case/Utility/StringTest.php @@ -11,7 +11,7 @@ * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Utility * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Utility/ValidationTest.php b/lib/Cake/Test/Case/Utility/ValidationTest.php index 89be30134..34e1e9b44 100644 --- a/lib/Cake/Test/Case/Utility/ValidationTest.php +++ b/lib/Cake/Test/Case/Utility/ValidationTest.php @@ -4,14 +4,14 @@ * * PHP Version 5.x * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The Open Group Test Suite License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Utility * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/Utility/XmlTest.php b/lib/Cake/Test/Case/Utility/XmlTest.php index 5118ce274..d1bf8d1b2 100644 --- a/lib/Cake/Test/Case/Utility/XmlTest.php +++ b/lib/Cake/Test/Case/Utility/XmlTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Utility * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php b/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php index 768d7a5f5..cce3ca21b 100644 --- a/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/CacheHelperTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php index c34ec4a99..658eb92e6 100644 --- a/lib/Cake/Test/Case/View/Helper/FormHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/FormHelperTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php b/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php index 5ad9a926b..4b7262016 100644 --- a/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/Helper/JqueryEngineHelperTest.php b/lib/Cake/Test/Case/View/Helper/JqueryEngineHelperTest.php index e1b644d84..4823f1ec5 100644 --- a/lib/Cake/Test/Case/View/Helper/JqueryEngineHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/JqueryEngineHelperTest.php @@ -4,7 +4,7 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License diff --git a/lib/Cake/Test/Case/View/Helper/JsHelperTest.php b/lib/Cake/Test/Case/View/Helper/JsHelperTest.php index c9da1ec37..8589850a8 100644 --- a/lib/Cake/Test/Case/View/Helper/JsHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/JsHelperTest.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View.Helper * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/Helper/NumberHelperTest.php b/lib/Cake/Test/Case/View/Helper/NumberHelperTest.php index cf1ce7d3f..f75ffd9d1 100644 --- a/lib/Cake/Test/Case/View/Helper/NumberHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/NumberHelperTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php b/lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php index e23c67832..6d06541b0 100644 --- a/lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/Helper/RssHelperTest.php b/lib/Cake/Test/Case/View/Helper/RssHelperTest.php index e29c30050..7c532cf3b 100644 --- a/lib/Cake/Test/Case/View/Helper/RssHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/RssHelperTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/Helper/SessionHelperTest.php b/lib/Cake/Test/Case/View/Helper/SessionHelperTest.php index 454493a3e..b4db3c5cc 100644 --- a/lib/Cake/Test/Case/View/Helper/SessionHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/SessionHelperTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/Helper/TextHelperTest.php b/lib/Cake/Test/Case/View/Helper/TextHelperTest.php index 954d56a55..7538f2094 100644 --- a/lib/Cake/Test/Case/View/Helper/TextHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/TextHelperTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/Helper/TimeHelperTest.php b/lib/Cake/Test/Case/View/Helper/TimeHelperTest.php index 899cac45c..ad03fe9eb 100644 --- a/lib/Cake/Test/Case/View/Helper/TimeHelperTest.php +++ b/lib/Cake/Test/Case/View/Helper/TimeHelperTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/HelperCollectionTest.php b/lib/Cake/Test/Case/View/HelperCollectionTest.php index 742d5d3e3..f5adbce27 100644 --- a/lib/Cake/Test/Case/View/HelperCollectionTest.php +++ b/lib/Cake/Test/Case/View/HelperCollectionTest.php @@ -11,7 +11,7 @@ * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/HelperTest.php b/lib/Cake/Test/Case/View/HelperTest.php index 5cb5801d6..e635e2fec 100644 --- a/lib/Cake/Test/Case/View/HelperTest.php +++ b/lib/Cake/Test/Case/View/HelperTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/JsonViewTest.php b/lib/Cake/Test/Case/View/JsonViewTest.php index 9515a9472..2ecb30099 100644 --- a/lib/Cake/Test/Case/View/JsonViewTest.php +++ b/lib/Cake/Test/Case/View/JsonViewTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View * @since CakePHP(tm) v 2.1.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/MediaViewTest.php b/lib/Cake/Test/Case/View/MediaViewTest.php index a9f6c3ade..3b723c0bf 100644 --- a/lib/Cake/Test/Case/View/MediaViewTest.php +++ b/lib/Cake/Test/Case/View/MediaViewTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/ScaffoldViewTest.php b/lib/Cake/Test/Case/View/ScaffoldViewTest.php index db5ce096a..bc1c1be9a 100644 --- a/lib/Cake/Test/Case/View/ScaffoldViewTest.php +++ b/lib/Cake/Test/Case/View/ScaffoldViewTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.Controller * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/ThemeViewTest.php b/lib/Cake/Test/Case/View/ThemeViewTest.php index 4d00da7c8..369904fa3 100644 --- a/lib/Cake/Test/Case/View/ThemeViewTest.php +++ b/lib/Cake/Test/Case/View/ThemeViewTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/ViewTest.php b/lib/Cake/Test/Case/View/ViewTest.php index 959f5ee11..90359558b 100644 --- a/lib/Cake/Test/Case/View/ViewTest.php +++ b/lib/Cake/Test/Case/View/ViewTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Case/View/XmlViewTest.php b/lib/Cake/Test/Case/View/XmlViewTest.php index 055894525..fff3b93b5 100644 --- a/lib/Cake/Test/Case/View/XmlViewTest.php +++ b/lib/Cake/Test/Case/View/XmlViewTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Case.View * @since CakePHP(tm) v 2.1.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AccountFixture.php b/lib/Cake/Test/Fixture/AccountFixture.php index fd8614f56..f4619332d 100644 --- a/lib/Cake/Test/Fixture/AccountFixture.php +++ b/lib/Cake/Test/Fixture/AccountFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AcoActionFixture.php b/lib/Cake/Test/Fixture/AcoActionFixture.php index 56d802842..df1bd22a6 100644 --- a/lib/Cake/Test/Fixture/AcoActionFixture.php +++ b/lib/Cake/Test/Fixture/AcoActionFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AcoFixture.php b/lib/Cake/Test/Fixture/AcoFixture.php index 02021c952..d80d3dd08 100644 --- a/lib/Cake/Test/Fixture/AcoFixture.php +++ b/lib/Cake/Test/Fixture/AcoFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AcoTwoFixture.php b/lib/Cake/Test/Fixture/AcoTwoFixture.php index ef01fcde4..af399fa3a 100644 --- a/lib/Cake/Test/Fixture/AcoTwoFixture.php +++ b/lib/Cake/Test/Fixture/AcoTwoFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AdvertisementFixture.php b/lib/Cake/Test/Fixture/AdvertisementFixture.php index 2f4c58e68..3d4f7cb03 100644 --- a/lib/Cake/Test/Fixture/AdvertisementFixture.php +++ b/lib/Cake/Test/Fixture/AdvertisementFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AnotherArticleFixture.php b/lib/Cake/Test/Fixture/AnotherArticleFixture.php index 82ae3cbc1..f580b20a6 100644 --- a/lib/Cake/Test/Fixture/AnotherArticleFixture.php +++ b/lib/Cake/Test/Fixture/AnotherArticleFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AppleFixture.php b/lib/Cake/Test/Fixture/AppleFixture.php index 7f1f491db..a63da6bca 100644 --- a/lib/Cake/Test/Fixture/AppleFixture.php +++ b/lib/Cake/Test/Fixture/AppleFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ArmorFixture.php b/lib/Cake/Test/Fixture/ArmorFixture.php index 30576a50a..135087d2d 100644 --- a/lib/Cake/Test/Fixture/ArmorFixture.php +++ b/lib/Cake/Test/Fixture/ArmorFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 2.1 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ArmorsPlayerFixture.php b/lib/Cake/Test/Fixture/ArmorsPlayerFixture.php index 56ac88c09..bdd71c524 100644 --- a/lib/Cake/Test/Fixture/ArmorsPlayerFixture.php +++ b/lib/Cake/Test/Fixture/ArmorsPlayerFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 2.1 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AroFixture.php b/lib/Cake/Test/Fixture/AroFixture.php index 4e6b61a0a..6d63c4d65 100644 --- a/lib/Cake/Test/Fixture/AroFixture.php +++ b/lib/Cake/Test/Fixture/AroFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AroTwoFixture.php b/lib/Cake/Test/Fixture/AroTwoFixture.php index af82f1be0..306567a53 100644 --- a/lib/Cake/Test/Fixture/AroTwoFixture.php +++ b/lib/Cake/Test/Fixture/AroTwoFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ArosAcoFixture.php b/lib/Cake/Test/Fixture/ArosAcoFixture.php index cf3a720cb..0f2ec84f8 100644 --- a/lib/Cake/Test/Fixture/ArosAcoFixture.php +++ b/lib/Cake/Test/Fixture/ArosAcoFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ArosAcoTwoFixture.php b/lib/Cake/Test/Fixture/ArosAcoTwoFixture.php index 9bacb19da..e852287f1 100644 --- a/lib/Cake/Test/Fixture/ArosAcoTwoFixture.php +++ b/lib/Cake/Test/Fixture/ArosAcoTwoFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ArticleFeaturedFixture.php b/lib/Cake/Test/Fixture/ArticleFeaturedFixture.php index 181535076..52831f491 100644 --- a/lib/Cake/Test/Fixture/ArticleFeaturedFixture.php +++ b/lib/Cake/Test/Fixture/ArticleFeaturedFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ArticleFeaturedsTagsFixture.php b/lib/Cake/Test/Fixture/ArticleFeaturedsTagsFixture.php index 462413b22..3ae0acf1f 100644 --- a/lib/Cake/Test/Fixture/ArticleFeaturedsTagsFixture.php +++ b/lib/Cake/Test/Fixture/ArticleFeaturedsTagsFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ArticleFixture.php b/lib/Cake/Test/Fixture/ArticleFixture.php index 1b82033d0..617a3ad41 100644 --- a/lib/Cake/Test/Fixture/ArticleFixture.php +++ b/lib/Cake/Test/Fixture/ArticleFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ArticlesTagFixture.php b/lib/Cake/Test/Fixture/ArticlesTagFixture.php index bb63463bb..37908b50a 100644 --- a/lib/Cake/Test/Fixture/ArticlesTagFixture.php +++ b/lib/Cake/Test/Fixture/ArticlesTagFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AttachmentFixture.php b/lib/Cake/Test/Fixture/AttachmentFixture.php index 8e3143455..e322c1ac8 100644 --- a/lib/Cake/Test/Fixture/AttachmentFixture.php +++ b/lib/Cake/Test/Fixture/AttachmentFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AuthUserCustomFieldFixture.php b/lib/Cake/Test/Fixture/AuthUserCustomFieldFixture.php index 8b3e62fef..88ec58656 100644 --- a/lib/Cake/Test/Fixture/AuthUserCustomFieldFixture.php +++ b/lib/Cake/Test/Fixture/AuthUserCustomFieldFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.1.8013 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AuthUserFixture.php b/lib/Cake/Test/Fixture/AuthUserFixture.php index a205ff5eb..eab2a399f 100644 --- a/lib/Cake/Test/Fixture/AuthUserFixture.php +++ b/lib/Cake/Test/Fixture/AuthUserFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/AuthorFixture.php b/lib/Cake/Test/Fixture/AuthorFixture.php index a2ebe8ac9..02a191fb1 100644 --- a/lib/Cake/Test/Fixture/AuthorFixture.php +++ b/lib/Cake/Test/Fixture/AuthorFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/BakeArticleFixture.php b/lib/Cake/Test/Fixture/BakeArticleFixture.php index c4eb9f78e..8b322fa90 100644 --- a/lib/Cake/Test/Fixture/BakeArticleFixture.php +++ b/lib/Cake/Test/Fixture/BakeArticleFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/BakeArticlesBakeTagFixture.php b/lib/Cake/Test/Fixture/BakeArticlesBakeTagFixture.php index 893e4e437..b1351dffe 100644 --- a/lib/Cake/Test/Fixture/BakeArticlesBakeTagFixture.php +++ b/lib/Cake/Test/Fixture/BakeArticlesBakeTagFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/BakeCommentFixture.php b/lib/Cake/Test/Fixture/BakeCommentFixture.php index d0a89e8c7..6224b1058 100644 --- a/lib/Cake/Test/Fixture/BakeCommentFixture.php +++ b/lib/Cake/Test/Fixture/BakeCommentFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/BakeTagFixture.php b/lib/Cake/Test/Fixture/BakeTagFixture.php index 78d482d06..8b8287965 100644 --- a/lib/Cake/Test/Fixture/BakeTagFixture.php +++ b/lib/Cake/Test/Fixture/BakeTagFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/BasketFixture.php b/lib/Cake/Test/Fixture/BasketFixture.php index 3025b0a83..c70986356 100644 --- a/lib/Cake/Test/Fixture/BasketFixture.php +++ b/lib/Cake/Test/Fixture/BasketFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/BidFixture.php b/lib/Cake/Test/Fixture/BidFixture.php index 73ece4777..ef93dff79 100644 --- a/lib/Cake/Test/Fixture/BidFixture.php +++ b/lib/Cake/Test/Fixture/BidFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/BiddingFixture.php b/lib/Cake/Test/Fixture/BiddingFixture.php index 3a6877fe7..12791a453 100644 --- a/lib/Cake/Test/Fixture/BiddingFixture.php +++ b/lib/Cake/Test/Fixture/BiddingFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.3.14 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/BiddingMessageFixture.php b/lib/Cake/Test/Fixture/BiddingMessageFixture.php index 31ddcd646..d19502ad1 100644 --- a/lib/Cake/Test/Fixture/BiddingMessageFixture.php +++ b/lib/Cake/Test/Fixture/BiddingMessageFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.3.14 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/BinaryTestFixture.php b/lib/Cake/Test/Fixture/BinaryTestFixture.php index 1605a35b5..df0ab66d9 100644 --- a/lib/Cake/Test/Fixture/BinaryTestFixture.php +++ b/lib/Cake/Test/Fixture/BinaryTestFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6700 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/BookFixture.php b/lib/Cake/Test/Fixture/BookFixture.php index 23ca8cbd6..6cfaf5460 100644 --- a/lib/Cake/Test/Fixture/BookFixture.php +++ b/lib/Cake/Test/Fixture/BookFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7198 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/CacheTestModelFixture.php b/lib/Cake/Test/Fixture/CacheTestModelFixture.php index 21c7b5fdf..ae6fbb4a6 100644 --- a/lib/Cake/Test/Fixture/CacheTestModelFixture.php +++ b/lib/Cake/Test/Fixture/CacheTestModelFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/CallbackFixture.php b/lib/Cake/Test/Fixture/CallbackFixture.php index 61733df7c..b53dd0af8 100644 --- a/lib/Cake/Test/Fixture/CallbackFixture.php +++ b/lib/Cake/Test/Fixture/CallbackFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/CategoryFixture.php b/lib/Cake/Test/Fixture/CategoryFixture.php index d300e6b7e..664bcf9e6 100644 --- a/lib/Cake/Test/Fixture/CategoryFixture.php +++ b/lib/Cake/Test/Fixture/CategoryFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/CategoryThreadFixture.php b/lib/Cake/Test/Fixture/CategoryThreadFixture.php index a938561ce..d1b2d1f72 100644 --- a/lib/Cake/Test/Fixture/CategoryThreadFixture.php +++ b/lib/Cake/Test/Fixture/CategoryThreadFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/CdFixture.php b/lib/Cake/Test/Fixture/CdFixture.php index 94e8c7467..5f93c56fe 100644 --- a/lib/Cake/Test/Fixture/CdFixture.php +++ b/lib/Cake/Test/Fixture/CdFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7198 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/CommentFixture.php b/lib/Cake/Test/Fixture/CommentFixture.php index 69f584e89..71ae13e62 100644 --- a/lib/Cake/Test/Fixture/CommentFixture.php +++ b/lib/Cake/Test/Fixture/CommentFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ContentAccountFixture.php b/lib/Cake/Test/Fixture/ContentAccountFixture.php index 1bb945b54..aa6e374a0 100644 --- a/lib/Cake/Test/Fixture/ContentAccountFixture.php +++ b/lib/Cake/Test/Fixture/ContentAccountFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ContentFixture.php b/lib/Cake/Test/Fixture/ContentFixture.php index 68e178b75..2ea7d9210 100644 --- a/lib/Cake/Test/Fixture/ContentFixture.php +++ b/lib/Cake/Test/Fixture/ContentFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/CounterCachePostFixture.php b/lib/Cake/Test/Fixture/CounterCachePostFixture.php index 62d15e4eb..0ba496b7f 100644 --- a/lib/Cake/Test/Fixture/CounterCachePostFixture.php +++ b/lib/Cake/Test/Fixture/CounterCachePostFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/CounterCachePostNonstandardPrimaryKeyFixture.php b/lib/Cake/Test/Fixture/CounterCachePostNonstandardPrimaryKeyFixture.php index 3f66c2d80..911187aa7 100644 --- a/lib/Cake/Test/Fixture/CounterCachePostNonstandardPrimaryKeyFixture.php +++ b/lib/Cake/Test/Fixture/CounterCachePostNonstandardPrimaryKeyFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/CounterCacheUserFixture.php b/lib/Cake/Test/Fixture/CounterCacheUserFixture.php index 8c44e2097..fd5883487 100644 --- a/lib/Cake/Test/Fixture/CounterCacheUserFixture.php +++ b/lib/Cake/Test/Fixture/CounterCacheUserFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/CounterCacheUserNonstandardPrimaryKeyFixture.php b/lib/Cake/Test/Fixture/CounterCacheUserNonstandardPrimaryKeyFixture.php index b920450bd..74f07f7be 100644 --- a/lib/Cake/Test/Fixture/CounterCacheUserNonstandardPrimaryKeyFixture.php +++ b/lib/Cake/Test/Fixture/CounterCacheUserNonstandardPrimaryKeyFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/DataTestFixture.php b/lib/Cake/Test/Fixture/DataTestFixture.php index 8f2a6e78f..cb4937be6 100644 --- a/lib/Cake/Test/Fixture/DataTestFixture.php +++ b/lib/Cake/Test/Fixture/DataTestFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6700 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/DeviceFixture.php b/lib/Cake/Test/Fixture/DeviceFixture.php index ef5c9f5e5..5eb07a171 100644 --- a/lib/Cake/Test/Fixture/DeviceFixture.php +++ b/lib/Cake/Test/Fixture/DeviceFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/DeviceTypeCategoryFixture.php b/lib/Cake/Test/Fixture/DeviceTypeCategoryFixture.php index f5573b265..fa56f5097 100644 --- a/lib/Cake/Test/Fixture/DeviceTypeCategoryFixture.php +++ b/lib/Cake/Test/Fixture/DeviceTypeCategoryFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/DeviceTypeFixture.php b/lib/Cake/Test/Fixture/DeviceTypeFixture.php index 0e1ad309f..a5271dd5e 100644 --- a/lib/Cake/Test/Fixture/DeviceTypeFixture.php +++ b/lib/Cake/Test/Fixture/DeviceTypeFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/DocumentDirectoryFixture.php b/lib/Cake/Test/Fixture/DocumentDirectoryFixture.php index 65e117ae5..29bc89cd2 100644 --- a/lib/Cake/Test/Fixture/DocumentDirectoryFixture.php +++ b/lib/Cake/Test/Fixture/DocumentDirectoryFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/DocumentFixture.php b/lib/Cake/Test/Fixture/DocumentFixture.php index 48a4461f1..94d39600f 100644 --- a/lib/Cake/Test/Fixture/DocumentFixture.php +++ b/lib/Cake/Test/Fixture/DocumentFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/DomainFixture.php b/lib/Cake/Test/Fixture/DomainFixture.php index 0dc66e85e..87dd35f48 100644 --- a/lib/Cake/Test/Fixture/DomainFixture.php +++ b/lib/Cake/Test/Fixture/DomainFixture.php @@ -4,14 +4,14 @@ * * PHP versions 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The Open Group Test Suite License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package cake * @subpackage cake.tests.fixtures * @since CakePHP(tm) v 2.1 diff --git a/lib/Cake/Test/Fixture/DomainsSiteFixture.php b/lib/Cake/Test/Fixture/DomainsSiteFixture.php index fa616d331..8ee1682a4 100644 --- a/lib/Cake/Test/Fixture/DomainsSiteFixture.php +++ b/lib/Cake/Test/Fixture/DomainsSiteFixture.php @@ -4,14 +4,14 @@ * * PHP versions 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The Open Group Test Suite License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package cake * @subpackage cake.tests.fixtures * @since CakePHP(tm) v 2.1 diff --git a/lib/Cake/Test/Fixture/ExteriorTypeCategoryFixture.php b/lib/Cake/Test/Fixture/ExteriorTypeCategoryFixture.php index d173b57af..8ab3bbcea 100644 --- a/lib/Cake/Test/Fixture/ExteriorTypeCategoryFixture.php +++ b/lib/Cake/Test/Fixture/ExteriorTypeCategoryFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/FeatureSetFixture.php b/lib/Cake/Test/Fixture/FeatureSetFixture.php index 7911f547e..589279979 100644 --- a/lib/Cake/Test/Fixture/FeatureSetFixture.php +++ b/lib/Cake/Test/Fixture/FeatureSetFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/FeaturedFixture.php b/lib/Cake/Test/Fixture/FeaturedFixture.php index 303f8d4e5..d13037372 100644 --- a/lib/Cake/Test/Fixture/FeaturedFixture.php +++ b/lib/Cake/Test/Fixture/FeaturedFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/FilmFileFixture.php b/lib/Cake/Test/Fixture/FilmFileFixture.php index 1a41a91d7..cc82fc6f4 100644 --- a/lib/Cake/Test/Fixture/FilmFileFixture.php +++ b/lib/Cake/Test/Fixture/FilmFileFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/FlagTreeFixture.php b/lib/Cake/Test/Fixture/FlagTreeFixture.php index 7293de562..e775e8fa7 100644 --- a/lib/Cake/Test/Fixture/FlagTreeFixture.php +++ b/lib/Cake/Test/Fixture/FlagTreeFixture.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5331 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/FruitFixture.php b/lib/Cake/Test/Fixture/FruitFixture.php index 56dd77168..41ce73095 100644 --- a/lib/Cake/Test/Fixture/FruitFixture.php +++ b/lib/Cake/Test/Fixture/FruitFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7953 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/FruitsUuidTagFixture.php b/lib/Cake/Test/Fixture/FruitsUuidTagFixture.php index 9b0454610..aebb4a75c 100644 --- a/lib/Cake/Test/Fixture/FruitsUuidTagFixture.php +++ b/lib/Cake/Test/Fixture/FruitsUuidTagFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7953 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/GroupUpdateAllFixture.php b/lib/Cake/Test/Fixture/GroupUpdateAllFixture.php index 94a47b716..bcfc517ea 100644 --- a/lib/Cake/Test/Fixture/GroupUpdateAllFixture.php +++ b/lib/Cake/Test/Fixture/GroupUpdateAllFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/GuildFixture.php b/lib/Cake/Test/Fixture/GuildFixture.php index 5913a25ed..8f7d91267 100644 --- a/lib/Cake/Test/Fixture/GuildFixture.php +++ b/lib/Cake/Test/Fixture/GuildFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 2.1 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/GuildsPlayerFixture.php b/lib/Cake/Test/Fixture/GuildsPlayerFixture.php index bfe54aeba..c82d59a5a 100644 --- a/lib/Cake/Test/Fixture/GuildsPlayerFixture.php +++ b/lib/Cake/Test/Fixture/GuildsPlayerFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 2.1 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/HomeFixture.php b/lib/Cake/Test/Fixture/HomeFixture.php index 40406318b..8ed74c536 100644 --- a/lib/Cake/Test/Fixture/HomeFixture.php +++ b/lib/Cake/Test/Fixture/HomeFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ImageFixture.php b/lib/Cake/Test/Fixture/ImageFixture.php index a03c3a4a0..8a148475e 100644 --- a/lib/Cake/Test/Fixture/ImageFixture.php +++ b/lib/Cake/Test/Fixture/ImageFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ItemFixture.php b/lib/Cake/Test/Fixture/ItemFixture.php index c8efd14d5..b1293d3d8 100644 --- a/lib/Cake/Test/Fixture/ItemFixture.php +++ b/lib/Cake/Test/Fixture/ItemFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ItemsPortfolioFixture.php b/lib/Cake/Test/Fixture/ItemsPortfolioFixture.php index d782f161e..5c16e2ec0 100644 --- a/lib/Cake/Test/Fixture/ItemsPortfolioFixture.php +++ b/lib/Cake/Test/Fixture/ItemsPortfolioFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/JoinABFixture.php b/lib/Cake/Test/Fixture/JoinABFixture.php index b1d913eb9..641d36d28 100644 --- a/lib/Cake/Test/Fixture/JoinABFixture.php +++ b/lib/Cake/Test/Fixture/JoinABFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6317 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/JoinACFixture.php b/lib/Cake/Test/Fixture/JoinACFixture.php index f4afd0788..d698c32af 100644 --- a/lib/Cake/Test/Fixture/JoinACFixture.php +++ b/lib/Cake/Test/Fixture/JoinACFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6317 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/JoinAFixture.php b/lib/Cake/Test/Fixture/JoinAFixture.php index ce0daa543..97b69585e 100644 --- a/lib/Cake/Test/Fixture/JoinAFixture.php +++ b/lib/Cake/Test/Fixture/JoinAFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6317 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/JoinBFixture.php b/lib/Cake/Test/Fixture/JoinBFixture.php index 2db80ead3..464b59339 100644 --- a/lib/Cake/Test/Fixture/JoinBFixture.php +++ b/lib/Cake/Test/Fixture/JoinBFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6317 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/JoinCFixture.php b/lib/Cake/Test/Fixture/JoinCFixture.php index aea534276..100868cce 100644 --- a/lib/Cake/Test/Fixture/JoinCFixture.php +++ b/lib/Cake/Test/Fixture/JoinCFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6317 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/JoinThingFixture.php b/lib/Cake/Test/Fixture/JoinThingFixture.php index 3f7c003f8..72186cb48 100644 --- a/lib/Cake/Test/Fixture/JoinThingFixture.php +++ b/lib/Cake/Test/Fixture/JoinThingFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/MessageFixture.php b/lib/Cake/Test/Fixture/MessageFixture.php index 1abd3b8ba..323726018 100644 --- a/lib/Cake/Test/Fixture/MessageFixture.php +++ b/lib/Cake/Test/Fixture/MessageFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/MyCategoriesMyProductsFixture.php b/lib/Cake/Test/Fixture/MyCategoriesMyProductsFixture.php index c5494cfc4..b83a0d2d2 100644 --- a/lib/Cake/Test/Fixture/MyCategoriesMyProductsFixture.php +++ b/lib/Cake/Test/Fixture/MyCategoriesMyProductsFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/MyCategoriesMyUsersFixture.php b/lib/Cake/Test/Fixture/MyCategoriesMyUsersFixture.php index 9db9f5b8e..81c1615c4 100644 --- a/lib/Cake/Test/Fixture/MyCategoriesMyUsersFixture.php +++ b/lib/Cake/Test/Fixture/MyCategoriesMyUsersFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/MyCategoryFixture.php b/lib/Cake/Test/Fixture/MyCategoryFixture.php index da4cdf027..ea66687a8 100644 --- a/lib/Cake/Test/Fixture/MyCategoryFixture.php +++ b/lib/Cake/Test/Fixture/MyCategoryFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/MyProductFixture.php b/lib/Cake/Test/Fixture/MyProductFixture.php index 6415afcc7..ed47e27d9 100644 --- a/lib/Cake/Test/Fixture/MyProductFixture.php +++ b/lib/Cake/Test/Fixture/MyProductFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/MyUserFixture.php b/lib/Cake/Test/Fixture/MyUserFixture.php index 64af1f058..8a13bdd0f 100644 --- a/lib/Cake/Test/Fixture/MyUserFixture.php +++ b/lib/Cake/Test/Fixture/MyUserFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/NumberTreeFixture.php b/lib/Cake/Test/Fixture/NumberTreeFixture.php index 0ed30682f..d831a7263 100644 --- a/lib/Cake/Test/Fixture/NumberTreeFixture.php +++ b/lib/Cake/Test/Fixture/NumberTreeFixture.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5331 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/NumberTreeTwoFixture.php b/lib/Cake/Test/Fixture/NumberTreeTwoFixture.php index e0f7a6cee..0ab4bd54e 100644 --- a/lib/Cake/Test/Fixture/NumberTreeTwoFixture.php +++ b/lib/Cake/Test/Fixture/NumberTreeTwoFixture.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5331 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/NumericArticleFixture.php b/lib/Cake/Test/Fixture/NumericArticleFixture.php index e72ab3ec7..49d759357 100644 --- a/lib/Cake/Test/Fixture/NumericArticleFixture.php +++ b/lib/Cake/Test/Fixture/NumericArticleFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/OverallFavoriteFixture.php b/lib/Cake/Test/Fixture/OverallFavoriteFixture.php index 6e9833823..1c8b83b45 100644 --- a/lib/Cake/Test/Fixture/OverallFavoriteFixture.php +++ b/lib/Cake/Test/Fixture/OverallFavoriteFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7198 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/PersonFixture.php b/lib/Cake/Test/Fixture/PersonFixture.php index 367bf818d..a05575d45 100644 --- a/lib/Cake/Test/Fixture/PersonFixture.php +++ b/lib/Cake/Test/Fixture/PersonFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6700 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/PlayerFixture.php b/lib/Cake/Test/Fixture/PlayerFixture.php index b334707c3..6e23eb024 100644 --- a/lib/Cake/Test/Fixture/PlayerFixture.php +++ b/lib/Cake/Test/Fixture/PlayerFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 2.1 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/PortfolioFixture.php b/lib/Cake/Test/Fixture/PortfolioFixture.php index 52c59fe52..3b43d8707 100644 --- a/lib/Cake/Test/Fixture/PortfolioFixture.php +++ b/lib/Cake/Test/Fixture/PortfolioFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/PostFixture.php b/lib/Cake/Test/Fixture/PostFixture.php index 5e4b3c44e..a3badd871 100644 --- a/lib/Cake/Test/Fixture/PostFixture.php +++ b/lib/Cake/Test/Fixture/PostFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/PostsTagFixture.php b/lib/Cake/Test/Fixture/PostsTagFixture.php index 98c743381..9d49f5882 100644 --- a/lib/Cake/Test/Fixture/PostsTagFixture.php +++ b/lib/Cake/Test/Fixture/PostsTagFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/PrefixTestFixture.php b/lib/Cake/Test/Fixture/PrefixTestFixture.php index b4c5d9e6a..37073dc67 100644 --- a/lib/Cake/Test/Fixture/PrefixTestFixture.php +++ b/lib/Cake/Test/Fixture/PrefixTestFixture.php @@ -4,14 +4,14 @@ * * PHP versions 4 and 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The Open Group Test Suite License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @subpackage cake.tests.fixtures * @since CakePHP(tm) v 1.2.0.4667 diff --git a/lib/Cake/Test/Fixture/PrimaryModelFixture.php b/lib/Cake/Test/Fixture/PrimaryModelFixture.php index 5524d52c2..b9f11662a 100644 --- a/lib/Cake/Test/Fixture/PrimaryModelFixture.php +++ b/lib/Cake/Test/Fixture/PrimaryModelFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ProductFixture.php b/lib/Cake/Test/Fixture/ProductFixture.php index 49d65dd21..8156bc773 100644 --- a/lib/Cake/Test/Fixture/ProductFixture.php +++ b/lib/Cake/Test/Fixture/ProductFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ProductUpdateAllFixture.php b/lib/Cake/Test/Fixture/ProductUpdateAllFixture.php index 1aa60b90d..243b2df59 100644 --- a/lib/Cake/Test/Fixture/ProductUpdateAllFixture.php +++ b/lib/Cake/Test/Fixture/ProductUpdateAllFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ProjectFixture.php b/lib/Cake/Test/Fixture/ProjectFixture.php index 8eec0b6c5..bbf98a405 100644 --- a/lib/Cake/Test/Fixture/ProjectFixture.php +++ b/lib/Cake/Test/Fixture/ProjectFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/SampleFixture.php b/lib/Cake/Test/Fixture/SampleFixture.php index 371a1c560..a25b03224 100644 --- a/lib/Cake/Test/Fixture/SampleFixture.php +++ b/lib/Cake/Test/Fixture/SampleFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/SecondaryModelFixture.php b/lib/Cake/Test/Fixture/SecondaryModelFixture.php index 0c8e77a70..8159c5bc3 100644 --- a/lib/Cake/Test/Fixture/SecondaryModelFixture.php +++ b/lib/Cake/Test/Fixture/SecondaryModelFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/SessionFixture.php b/lib/Cake/Test/Fixture/SessionFixture.php index fa4e4e0bf..20fb517e6 100644 --- a/lib/Cake/Test/Fixture/SessionFixture.php +++ b/lib/Cake/Test/Fixture/SessionFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/SiteFixture.php b/lib/Cake/Test/Fixture/SiteFixture.php index 9e0aa4865..00458e588 100644 --- a/lib/Cake/Test/Fixture/SiteFixture.php +++ b/lib/Cake/Test/Fixture/SiteFixture.php @@ -4,14 +4,14 @@ * * PHP versions 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The Open Group Test Suite License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package cake * @subpackage cake.tests.fixtures * @since CakePHP(tm) v 2.1 diff --git a/lib/Cake/Test/Fixture/SomethingElseFixture.php b/lib/Cake/Test/Fixture/SomethingElseFixture.php index 152160a1a..b76ddcda3 100644 --- a/lib/Cake/Test/Fixture/SomethingElseFixture.php +++ b/lib/Cake/Test/Fixture/SomethingElseFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/SomethingFixture.php b/lib/Cake/Test/Fixture/SomethingFixture.php index 146fb3f0b..156a11723 100644 --- a/lib/Cake/Test/Fixture/SomethingFixture.php +++ b/lib/Cake/Test/Fixture/SomethingFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/StoriesTagFixture.php b/lib/Cake/Test/Fixture/StoriesTagFixture.php index d533661c7..7c09d0f09 100644 --- a/lib/Cake/Test/Fixture/StoriesTagFixture.php +++ b/lib/Cake/Test/Fixture/StoriesTagFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/StoryFixture.php b/lib/Cake/Test/Fixture/StoryFixture.php index 5cd430478..13d6442c6 100644 --- a/lib/Cake/Test/Fixture/StoryFixture.php +++ b/lib/Cake/Test/Fixture/StoryFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/SyfileFixture.php b/lib/Cake/Test/Fixture/SyfileFixture.php index 012cbf088..8c18b3acb 100644 --- a/lib/Cake/Test/Fixture/SyfileFixture.php +++ b/lib/Cake/Test/Fixture/SyfileFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/TagFixture.php b/lib/Cake/Test/Fixture/TagFixture.php index d62411168..11d0acc3b 100644 --- a/lib/Cake/Test/Fixture/TagFixture.php +++ b/lib/Cake/Test/Fixture/TagFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/TestPluginArticleFixture.php b/lib/Cake/Test/Fixture/TestPluginArticleFixture.php index f0925e3ec..03d8872df 100644 --- a/lib/Cake/Test/Fixture/TestPluginArticleFixture.php +++ b/lib/Cake/Test/Fixture/TestPluginArticleFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 7660 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/TestPluginCommentFixture.php b/lib/Cake/Test/Fixture/TestPluginCommentFixture.php index 6eb01046a..ed36009e2 100644 --- a/lib/Cake/Test/Fixture/TestPluginCommentFixture.php +++ b/lib/Cake/Test/Fixture/TestPluginCommentFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 7660 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ThePaperMonkiesFixture.php b/lib/Cake/Test/Fixture/ThePaperMonkiesFixture.php index e920a08c5..6817bef26 100644 --- a/lib/Cake/Test/Fixture/ThePaperMonkiesFixture.php +++ b/lib/Cake/Test/Fixture/ThePaperMonkiesFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/ThreadFixture.php b/lib/Cake/Test/Fixture/ThreadFixture.php index 0dc1895cc..5049c8528 100644 --- a/lib/Cake/Test/Fixture/ThreadFixture.php +++ b/lib/Cake/Test/Fixture/ThreadFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/TranslateArticleFixture.php b/lib/Cake/Test/Fixture/TranslateArticleFixture.php index 380c516d4..8ab79aec1 100644 --- a/lib/Cake/Test/Fixture/TranslateArticleFixture.php +++ b/lib/Cake/Test/Fixture/TranslateArticleFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/TranslateFixture.php b/lib/Cake/Test/Fixture/TranslateFixture.php index 90a8fedbb..ea3632c50 100644 --- a/lib/Cake/Test/Fixture/TranslateFixture.php +++ b/lib/Cake/Test/Fixture/TranslateFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/TranslateTableFixture.php b/lib/Cake/Test/Fixture/TranslateTableFixture.php index 4860f76ce..c8f9a14b5 100644 --- a/lib/Cake/Test/Fixture/TranslateTableFixture.php +++ b/lib/Cake/Test/Fixture/TranslateTableFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/TranslateWithPrefixFixture.php b/lib/Cake/Test/Fixture/TranslateWithPrefixFixture.php index 90dcf2f8b..2d5d30d19 100644 --- a/lib/Cake/Test/Fixture/TranslateWithPrefixFixture.php +++ b/lib/Cake/Test/Fixture/TranslateWithPrefixFixture.php @@ -6,14 +6,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5669 * @version $Revision$ diff --git a/lib/Cake/Test/Fixture/TranslatedArticleFixture.php b/lib/Cake/Test/Fixture/TranslatedArticleFixture.php index aa827daca..7066486c4 100644 --- a/lib/Cake/Test/Fixture/TranslatedArticleFixture.php +++ b/lib/Cake/Test/Fixture/TranslatedArticleFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/TranslatedItemFixture.php b/lib/Cake/Test/Fixture/TranslatedItemFixture.php index ffd688180..28485f26d 100644 --- a/lib/Cake/Test/Fixture/TranslatedItemFixture.php +++ b/lib/Cake/Test/Fixture/TranslatedItemFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/UnconventionalTreeFixture.php b/lib/Cake/Test/Fixture/UnconventionalTreeFixture.php index b3b55d934..7eb96f834 100644 --- a/lib/Cake/Test/Fixture/UnconventionalTreeFixture.php +++ b/lib/Cake/Test/Fixture/UnconventionalTreeFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7879 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/UnderscoreFieldFixture.php b/lib/Cake/Test/Fixture/UnderscoreFieldFixture.php index 7bb37554d..22bb31580 100644 --- a/lib/Cake/Test/Fixture/UnderscoreFieldFixture.php +++ b/lib/Cake/Test/Fixture/UnderscoreFieldFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/UserFixture.php b/lib/Cake/Test/Fixture/UserFixture.php index 9f43ac6a6..5a81876ad 100644 --- a/lib/Cake/Test/Fixture/UserFixture.php +++ b/lib/Cake/Test/Fixture/UserFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/UuidFixture.php b/lib/Cake/Test/Fixture/UuidFixture.php index 329159951..cf7cdc3c3 100644 --- a/lib/Cake/Test/Fixture/UuidFixture.php +++ b/lib/Cake/Test/Fixture/UuidFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.6700 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/UuidTagFixture.php b/lib/Cake/Test/Fixture/UuidTagFixture.php index 158ac8ea0..744f1179c 100644 --- a/lib/Cake/Test/Fixture/UuidTagFixture.php +++ b/lib/Cake/Test/Fixture/UuidTagFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7953 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/UuidTreeFixture.php b/lib/Cake/Test/Fixture/UuidTreeFixture.php index fcb2f2dca..2431f5669 100644 --- a/lib/Cake/Test/Fixture/UuidTreeFixture.php +++ b/lib/Cake/Test/Fixture/UuidTreeFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.7984 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/UuiditemFixture.php b/lib/Cake/Test/Fixture/UuiditemFixture.php index 46ee1bd74..fb04e3e3f 100644 --- a/lib/Cake/Test/Fixture/UuiditemFixture.php +++ b/lib/Cake/Test/Fixture/UuiditemFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/UuiditemsUuidportfolioFixture.php b/lib/Cake/Test/Fixture/UuiditemsUuidportfolioFixture.php index a13e3eb3e..c2d85236d 100644 --- a/lib/Cake/Test/Fixture/UuiditemsUuidportfolioFixture.php +++ b/lib/Cake/Test/Fixture/UuiditemsUuidportfolioFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/UuiditemsUuidportfolioNumericidFixture.php b/lib/Cake/Test/Fixture/UuiditemsUuidportfolioNumericidFixture.php index bf47797ca..c3c7a2e6f 100644 --- a/lib/Cake/Test/Fixture/UuiditemsUuidportfolioNumericidFixture.php +++ b/lib/Cake/Test/Fixture/UuiditemsUuidportfolioNumericidFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/Fixture/UuidportfolioFixture.php b/lib/Cake/Test/Fixture/UuidportfolioFixture.php index 0aeaec61d..fbb4d9256 100644 --- a/lib/Cake/Test/Fixture/UuidportfolioFixture.php +++ b/lib/Cake/Test/Fixture/UuidportfolioFixture.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Console/Command/SampleShell.php b/lib/Cake/Test/test_app/Console/Command/SampleShell.php index 22cdac1da..6af95ce1b 100644 --- a/lib/Cake/Test/test_app/Console/Command/SampleShell.php +++ b/lib/Cake/Test/test_app/Console/Command/SampleShell.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Console.Command * @since CakePHP(tm) v 1.2.0.7871 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Controller/AppController.php b/lib/Cake/Test/test_app/Controller/AppController.php index 6e8386849..0414cee54 100644 --- a/lib/Cake/Test/test_app/Controller/AppController.php +++ b/lib/Cake/Test/test_app/Controller/AppController.php @@ -30,7 +30,7 @@ App::uses('Controller', 'Controller'); * will inherit them. * * @package Cake.Controller - * @link http://book.cakephp.org/view/957/The-App-Controller + * @link http://book.cakephp.org/2.0/en/controllers.html#the-app-controller */ class AppController extends Controller { } diff --git a/lib/Cake/Test/test_app/Controller/TestsAppsController.php b/lib/Cake/Test/test_app/Controller/TestsAppsController.php index 75586372a..2e8243cca 100644 --- a/lib/Cake/Test/test_app/Controller/TestsAppsController.php +++ b/lib/Cake/Test/test_app/Controller/TestsAppsController.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Controller * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Controller/TestsAppsPostsController.php b/lib/Cake/Test/test_app/Controller/TestsAppsPostsController.php index 0a1bc116a..8ae0ae123 100644 --- a/lib/Cake/Test/test_app/Controller/TestsAppsPostsController.php +++ b/lib/Cake/Test/test_app/Controller/TestsAppsPostsController.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Controller * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Lib/Cache/Engine/TestAppCacheEngine.php b/lib/Cake/Test/test_app/Lib/Cache/Engine/TestAppCacheEngine.php index 1cdf3a46f..5b124c2e9 100644 --- a/lib/Cake/Test/test_app/Lib/Cache/Engine/TestAppCacheEngine.php +++ b/lib/Cake/Test/test_app/Lib/Cache/Engine/TestAppCacheEngine.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Lib.Cache.Engine * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Lib/Library.php b/lib/Cake/Test/test_app/Lib/Library.php index 629197482..261825923 100644 --- a/lib/Cake/Test/test_app/Lib/Library.php +++ b/lib/Cake/Test/test_app/Lib/Library.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Lib * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php b/lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php index e17823d35..0acb792a1 100644 --- a/lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php +++ b/lib/Cake/Test/test_app/Lib/Log/Engine/TestAppLog.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Lib.Log.Engine * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Lib/Utility/TestUtilityClass.php b/lib/Cake/Test/test_app/Lib/Utility/TestUtilityClass.php index 78cb018e2..d2b3d2dc2 100644 --- a/lib/Cake/Test/test_app/Lib/Utility/TestUtilityClass.php +++ b/lib/Cake/Test/test_app/Lib/Utility/TestUtilityClass.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Lib.Utility * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/load.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/load.php index ef6274c22..efe50c241 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/load.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/load.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Config * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/more.load.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/more.load.php index d7925d685..14853535e 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/more.load.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Config/more.load.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Config * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/ExampleShell.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/ExampleShell.php index 31debdd26..67c602172 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/ExampleShell.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/ExampleShell.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Console.Command * @since CakePHP(tm) v 1.2.0.7871 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/Task/OtherTaskTask.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/Task/OtherTaskTask.php index 4a79d28d7..26b502523 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/Task/OtherTaskTask.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Command/Task/OtherTaskTask.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Console.Command.Task * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/OtherComponent.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/OtherComponent.php index 128c367bd..69d93b226 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/OtherComponent.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/OtherComponent.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller.Component * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/PluginsComponent.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/PluginsComponent.php index b4c2244fb..ffd5cf7a3 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/PluginsComponent.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/PluginsComponent.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller.Component * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/TestPluginComponent.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/TestPluginComponent.php index 39c4e5dd3..1c7bc3659 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/TestPluginComponent.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/TestPluginComponent.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller.Component * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/TestPluginOtherComponent.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/TestPluginOtherComponent.php index 24cca4763..2fb4a3b20 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/TestPluginOtherComponent.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/Component/TestPluginOtherComponent.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller.Component * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginAppController.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginAppController.php index 990d8141e..93a498147 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginAppController.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginAppController.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginController.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginController.php index a1f280d45..097caca3b 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginController.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestPluginController.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestsController.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestsController.php index 640258722..0d2519601 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestsController.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Controller/TestsController.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Controller * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Cache/Engine/TestPluginCacheEngine.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Cache/Engine/TestPluginCacheEngine.php index f8fb39214..d991bcdca 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Cache/Engine/TestPluginCacheEngine.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Cache/Engine/TestPluginCacheEngine.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Lib.Cache.Engine * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Custom/Package/CustomLibClass.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Custom/Package/CustomLibClass.php index faf24431d..a33982552 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Custom/Package/CustomLibClass.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Custom/Package/CustomLibClass.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Lib.Custom.Package * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Log/Engine/TestPluginLog.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Log/Engine/TestPluginLog.php index d673e3679..d9ce333d7 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Log/Engine/TestPluginLog.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/Log/Engine/TestPluginLog.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Lib.Log.Engine * @since CakePHP(tm) v 1.3 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/TestPluginLibrary.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/TestPluginLibrary.php index 0d6764b13..3111e64cd 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/TestPluginLibrary.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/TestPluginLibrary.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Lib * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/TestPluginOtherLibrary.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/TestPluginOtherLibrary.php index 95085341c..1fa6b84a5 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/TestPluginOtherLibrary.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Lib/TestPluginOtherLibrary.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Lib * @since CakePHP(tm) v 2.0.1 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/TestPluginAppModel.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/TestPluginAppModel.php index 903e58c8b..057da3700 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/TestPluginAppModel.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/TestPluginAppModel.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Model * @since CakePHP(tm) v 1.2.0.5432 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/sample/sample_plugin.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/sample/sample_plugin.php index f053ef5bb..cd4c9cf04 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/sample/sample_plugin.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/sample/sample_plugin.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Vendor.sample * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/welcome.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/welcome.php index a265179c7..998ed4924 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/welcome.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Vendor/welcome.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.Vendor * @since CakePHP(tm) v 1.2.0.7629 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/OtherHelperHelper.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/OtherHelperHelper.php index 543b108cd..abee3dd36 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/OtherHelperHelper.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/OtherHelperHelper.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/PluggedHelperHelper.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/PluggedHelperHelper.php index cd71b3f05..53f17f6af 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/PluggedHelperHelper.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/View/Helper/PluggedHelperHelper.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPlugin.View.Helper * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Command/ExampleShell.php b/lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Command/ExampleShell.php index 192d967a6..066b5be94 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Command/ExampleShell.php +++ b/lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Command/ExampleShell.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPluginTwo.Console.Command * @since CakePHP(tm) v 1.2.0.7871 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Command/WelcomeShell.php b/lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Command/WelcomeShell.php index 23a44f020..dd38dca7f 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Command/WelcomeShell.php +++ b/lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Command/WelcomeShell.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Plugin.TestPluginTwo.Console.Command * @since CakePHP(tm) v 1.2.0.7871 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Vendor/Test/MyTest.php b/lib/Cake/Test/test_app/Vendor/Test/MyTest.php index 237dd6897..d65342e9d 100644 --- a/lib/Cake/Test/test_app/Vendor/Test/MyTest.php +++ b/lib/Cake/Test/test_app/Vendor/Test/MyTest.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Vendor.Test * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Vendor/Test/hello.php b/lib/Cake/Test/test_app/Vendor/Test/hello.php index 10228c011..5e835e9bc 100644 --- a/lib/Cake/Test/test_app/Vendor/Test/hello.php +++ b/lib/Cake/Test/test_app/Vendor/Test/hello.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Vendor.Test * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Vendor/sample/configure_test_vendor_sample.php b/lib/Cake/Test/test_app/Vendor/sample/configure_test_vendor_sample.php index 6030ef020..634027d9d 100644 --- a/lib/Cake/Test/test_app/Vendor/sample/configure_test_vendor_sample.php +++ b/lib/Cake/Test/test_app/Vendor/sample/configure_test_vendor_sample.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Vendor.sample * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Vendor/somename/some.name.php b/lib/Cake/Test/test_app/Vendor/somename/some.name.php index a1cf5489c..6e795464f 100644 --- a/lib/Cake/Test/test_app/Vendor/somename/some.name.php +++ b/lib/Cake/Test/test_app/Vendor/somename/some.name.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Vendor.somename * @since CakePHP(tm) v 1.2.0.4206 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/Test/test_app/Vendor/welcome.php b/lib/Cake/Test/test_app/Vendor/welcome.php index 0d050dab0..91b019ac5 100644 --- a/lib/Cake/Test/test_app/Vendor/welcome.php +++ b/lib/Cake/Test/test_app/Vendor/welcome.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.Test.test_app.Vendor * @since CakePHP(tm) v 1.2.0.7629 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/TestSuite/CakeTestCase.php b/lib/Cake/TestSuite/CakeTestCase.php index 5b62b6b45..fdabdafd5 100644 --- a/lib/Cake/TestSuite/CakeTestCase.php +++ b/lib/Cake/TestSuite/CakeTestCase.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.TestSuite * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php b/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php index 31267b573..41778b357 100644 --- a/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php +++ b/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php @@ -4,7 +4,7 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License diff --git a/lib/Cake/TestSuite/ControllerTestCase.php b/lib/Cake/TestSuite/ControllerTestCase.php index 3e4859513..c017942d3 100644 --- a/lib/Cake/TestSuite/ControllerTestCase.php +++ b/lib/Cake/TestSuite/ControllerTestCase.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.TestSuite * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/TestSuite/Fixture/CakeTestFixture.php b/lib/Cake/TestSuite/Fixture/CakeTestFixture.php index 821c92f41..9ef39cf46 100644 --- a/lib/Cake/TestSuite/Fixture/CakeTestFixture.php +++ b/lib/Cake/TestSuite/Fixture/CakeTestFixture.php @@ -1,13 +1,13 @@ + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.TestSuite.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/TestSuite/Fixture/CakeTestModel.php b/lib/Cake/TestSuite/Fixture/CakeTestModel.php index b2a833570..bba231a2f 100644 --- a/lib/Cake/TestSuite/Fixture/CakeTestModel.php +++ b/lib/Cake/TestSuite/Fixture/CakeTestModel.php @@ -1,13 +1,13 @@ + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.TestSuite.Fixture * @since CakePHP(tm) v 1.2.0.4667 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/TestSuite/Reporter/CakeBaseReporter.php b/lib/Cake/TestSuite/Reporter/CakeBaseReporter.php index d60f54905..6ac39c079 100644 --- a/lib/Cake/TestSuite/Reporter/CakeBaseReporter.php +++ b/lib/Cake/TestSuite/Reporter/CakeBaseReporter.php @@ -4,7 +4,7 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License diff --git a/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php b/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php index 9c59d03cc..8159cb064 100644 --- a/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php +++ b/lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php @@ -4,7 +4,7 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License diff --git a/lib/Cake/TestSuite/Reporter/CakeTextReporter.php b/lib/Cake/TestSuite/Reporter/CakeTextReporter.php index 5425a7b50..1c8c20142 100644 --- a/lib/Cake/TestSuite/Reporter/CakeTextReporter.php +++ b/lib/Cake/TestSuite/Reporter/CakeTextReporter.php @@ -4,7 +4,7 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License diff --git a/lib/Cake/TestSuite/templates/footer.php b/lib/Cake/TestSuite/templates/footer.php index 137f070cf..06af88ef7 100644 --- a/lib/Cake/TestSuite/templates/footer.php +++ b/lib/Cake/TestSuite/templates/footer.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.TestSuite.templates * @since CakePHP(tm) v 1.2.0.4433 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/TestSuite/templates/header.php b/lib/Cake/TestSuite/templates/header.php index 9e7f13dd3..fe16df4df 100644 --- a/lib/Cake/TestSuite/templates/header.php +++ b/lib/Cake/TestSuite/templates/header.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.TestSuite.templates * @since CakePHP(tm) v 1.2.0.4433 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/TestSuite/templates/menu.php b/lib/Cake/TestSuite/templates/menu.php index d60457e40..a775a8ce9 100644 --- a/lib/Cake/TestSuite/templates/menu.php +++ b/lib/Cake/TestSuite/templates/menu.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.TestSuite.templates * @since CakePHP(tm) v 1.2.0.4433 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/TestSuite/templates/missing_connection.php b/lib/Cake/TestSuite/templates/missing_connection.php index cadf335db..fc9e3ca40 100644 --- a/lib/Cake/TestSuite/templates/missing_connection.php +++ b/lib/Cake/TestSuite/templates/missing_connection.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.TestSuite.templates * @since CakePHP(tm) v 1.2.0.4433 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/TestSuite/templates/phpunit.php b/lib/Cake/TestSuite/templates/phpunit.php index 6c45c3c20..2a3dc6e7f 100644 --- a/lib/Cake/TestSuite/templates/phpunit.php +++ b/lib/Cake/TestSuite/templates/phpunit.php @@ -5,14 +5,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.TestSuite.templates * @since CakePHP(tm) v 1.2.0.4433 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) diff --git a/lib/Cake/TestSuite/templates/xdebug.php b/lib/Cake/TestSuite/templates/xdebug.php index d3deb338c..ecf24cb84 100644 --- a/lib/Cake/TestSuite/templates/xdebug.php +++ b/lib/Cake/TestSuite/templates/xdebug.php @@ -4,14 +4,14 @@ * * PHP 5 * - * CakePHP(tm) Tests + * CakePHP(tm) Tests * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice * * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests + * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests * @package Cake.TestSuite.templates * @since CakePHP(tm) v 1.2.0.4433 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) From eb059d3fa6e8e74485f3e4243167c3873442b5bb Mon Sep 17 00:00:00 2001 From: Kyle Robinson Young Date: Thu, 26 Apr 2012 20:14:52 -0700 Subject: [PATCH 14/85] Fix typos in test cases --- .../Test/Case/Controller/Component/Acl/DbAclTest.php | 6 +++--- lib/Cake/Test/Case/Model/models.php | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/Cake/Test/Case/Controller/Component/Acl/DbAclTest.php b/lib/Cake/Test/Case/Controller/Component/Acl/DbAclTest.php index 4137e648d..79d901db6 100644 --- a/lib/Cake/Test/Case/Controller/Component/Acl/DbAclTest.php +++ b/lib/Cake/Test/Case/Controller/Component/Acl/DbAclTest.php @@ -343,14 +343,14 @@ class DbAclTest extends CakeTestCase { * @return void */ public function testCheckMissingPermission() { - $this->Acl->check('users', 'NonExistant', 'read'); + $this->Acl->check('users', 'NonExistent', 'read'); } /** * testDbAclCascadingDeny function * * Setup the acl permissions such that Bobs inherits from admin. - * deny Admin delete access to a specific resource, check the permisssions are inherited. + * deny Admin delete access to a specific resource, check the permissions are inherited. * * @return void */ @@ -477,7 +477,7 @@ class DbAclTest extends CakeTestCase { /** * debug function - to help editing/creating test cases for the ACL component * - * To check the overal ACL status at any time call $this->__debug(); + * To check the overall ACL status at any time call $this->__debug(); * Generates a list of the current aro and aco structures and a grid dump of the permissions that are defined * Only designed to work with the db based ACL * diff --git a/lib/Cake/Test/Case/Model/models.php b/lib/Cake/Test/Case/Model/models.php index a206b0790..9707832ee 100644 --- a/lib/Cake/Test/Case/Model/models.php +++ b/lib/Cake/Test/Case/Model/models.php @@ -2537,15 +2537,15 @@ class NumberTree extends CakeTestModel { * @param mixed $currentLevel * @param mixed $parent_id * @param string $prefix - * @param bool $hierachial + * @param bool $hierarchal * @return void */ - public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = null, $parentId = null, $prefix = '1', $hierachial = true) { + public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = null, $parentId = null, $prefix = '1', $hierarchal = true) { if (!$parentId) { $db = ConnectionManager::getDataSource($this->useDbConfig); $db->truncate($this->table); $this->save(array($this->name => array('name' => '1. Root'))); - $this->initialize($levelLimit, $childLimit, 1, $this->id, '1', $hierachial); + $this->initialize($levelLimit, $childLimit, 1, $this->id, '1', $hierarchal); $this->create(array()); } @@ -2558,7 +2558,7 @@ class NumberTree extends CakeTestModel { $data = array($this->name => array('name' => $name)); $this->create($data); - if ($hierachial) { + if ($hierarchal) { if ($this->name == 'UnconventionalTree') { $data[$this->name]['join'] = $parentId; } else { @@ -2566,7 +2566,7 @@ class NumberTree extends CakeTestModel { } } $this->save($data); - $this->initialize($levelLimit, $childLimit, $currentLevel + 1, $this->id, $name, $hierachial); + $this->initialize($levelLimit, $childLimit, $currentLevel + 1, $this->id, $name, $hierarchal); } } From 77f6d88a9e6819f4e69f970d13082b2986595c32 Mon Sep 17 00:00:00 2001 From: Tigran Gabrielyan Date: Thu, 26 Apr 2012 21:20:11 -0700 Subject: [PATCH 15/85] Fixed bug in model validation translate --- lib/Cake/Model/Model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index dfcd14508..d5ca5f0c6 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -3191,7 +3191,9 @@ class Model extends Object implements CakeEventListener { } if (!empty($args)) { foreach ($args as $k => $arg) { - $args[$k] = __d($validationDomain, $arg); + if (is_string($arg)) { + $args[$k] = __d($validationDomain, $arg); + } } } $message = __d($validationDomain, $message, $args); From 6b6fdd2b842caba3750f24047454245dc2646d0e Mon Sep 17 00:00:00 2001 From: AD7six Date: Sun, 29 Apr 2012 16:25:07 +0200 Subject: [PATCH 16/85] don't dump fatal errors as html on the cli --- lib/Cake/Console/ShellDispatcher.php | 2 ++ lib/Cake/Core/App.php | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Console/ShellDispatcher.php b/lib/Cake/Console/ShellDispatcher.php index 87c3c6e02..40c27cc15 100644 --- a/lib/Cake/Console/ShellDispatcher.php +++ b/lib/Cake/Console/ShellDispatcher.php @@ -160,9 +160,11 @@ class ShellDispatcher { $errorHandler = new ConsoleErrorHandler(); if (empty($error['consoleHandler'])) { $error['consoleHandler'] = array($errorHandler, 'handleError'); + Configure::write('error', $error); } if (empty($exception['consoleHandler'])) { $exception['consoleHandler'] = array($errorHandler, 'handleException'); + Configure::write('exception', $exception); } set_exception_handler($exception['consoleHandler']); set_error_handler($error['consoleHandler'], Configure::read('Error.level')); diff --git a/lib/Cake/Core/App.php b/lib/Cake/Core/App.php index 01e0d1ae6..071faa7a6 100644 --- a/lib/Cake/Core/App.php +++ b/lib/Cake/Core/App.php @@ -913,7 +913,11 @@ class App { return; } - $errorHandler = Configure::read('Error.handler'); + if (PHP_SAPI === 'cli') { + $errorHandler = Configure::read('Error.consoleHandler'); + } else { + $errorHandler = Configure::read('Error.handler'); + } if (!is_callable($errorHandler)) { return; } From 6a744b277ef2bec4d28315b9f75b84bb5761c79a Mon Sep 17 00:00:00 2001 From: AD7six Date: Sun, 29 Apr 2012 16:44:58 +0200 Subject: [PATCH 17/85] create tests for baking a test for a component, behavior and helper --- .../Console/Command/Task/TestTaskTest.php | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php index 37f854b2e..c6ab22601 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php @@ -487,6 +487,69 @@ class TestTaskTest extends CakeTestCase { $this->assertContains("'app.articles_tag'", $result); } +/** + * test baking component test files, + * + * @return void + */ + public function testBakeComponentTest() { + $this->Task->expects($this->once())->method('createFile')->will($this->returnValue(true)); + + $result = $this->Task->bake('Component', 'Example'); + + $this->assertContains("App::uses('ExampleComponent', 'Controller/Component')", $result); + $this->assertContains('class ExampleComponentTest extends CakeTestCase', $result); + + $this->assertContains('function setUp()', $result); + $this->assertContains("\$Collection = new ComponentCollection()", $result); + $this->assertContains("\$this->Example = new ExampleComponent(\$Collection)", $result); + + $this->assertContains('function tearDown()', $result); + $this->assertContains('unset($this->Example)', $result); + } + +/** + * test baking behavior test files, + * + * @return void + */ + public function testBakeBehaviorTest() { + $this->Task->expects($this->once())->method('createFile')->will($this->returnValue(true)); + + $result = $this->Task->bake('Behavior', 'Example'); + + $this->assertContains("App::uses('ExampleBehavior', 'Model/Behavior')", $result); + $this->assertContains('class ExampleBehaviorTest extends CakeTestCase', $result); + + $this->assertContains('function setUp()', $result); + $this->assertContains("\$this->Example = new ExampleBehavior()", $result); + + $this->assertContains('function tearDown()', $result); + $this->assertContains('unset($this->Example)', $result); + } + +/** + * test baking helper test files, + * + * @return void + */ + public function testBakeHelperTest() { + $this->Task->expects($this->once())->method('createFile')->will($this->returnValue(true)); + + $result = $this->Task->bake('Helper', 'Example'); + + $this->assertContains("App::uses('ExampleHelper', 'View/Helper')", $result); + $this->assertContains('class ExampleHelperTest extends CakeTestCase', $result); + + $this->assertContains('function setUp()', $result); + $this->assertContains("\$View = new View()", $result); + $this->assertContains("\$this->Example = new ExampleHelper(\$View)", $result); + + $this->assertContains('function tearDown()', $result); + $this->assertContains('unset($this->Example)', $result); + } + + /** * test Constructor generation ensure that constructClasses is called for controllers * From 9444af2f81ea3c179deadf8e0c1826f4757facbc Mon Sep 17 00:00:00 2001 From: AD7six Date: Sun, 29 Apr 2012 17:16:29 +0200 Subject: [PATCH 18/85] classify the first cli argument for this task the $type is used to lookup in the $classTypes property what kind of entity is being baked. if it's underscored, getRealClassName will bail on it's first condition of "is it in the $classTypes property" producing mostly useless test stubs for everything except models --- lib/Cake/Console/Command/Task/TestTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Console/Command/Task/TestTask.php b/lib/Cake/Console/Command/Task/TestTask.php index 6b86f7fbe..1a3d1a0d7 100644 --- a/lib/Cake/Console/Command/Task/TestTask.php +++ b/lib/Cake/Console/Command/Task/TestTask.php @@ -77,7 +77,7 @@ class TestTask extends BakeTask { } if (count($this->args) > 1) { - $type = Inflector::underscore($this->args[0]); + $type = Inflector::classify($this->args[0]); if ($this->bake($type, $this->args[1])) { $this->out('Done'); } From f6b33db02c1323c7e7fce1467724ed2a8ad85c14 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 29 Apr 2012 14:48:45 -0400 Subject: [PATCH 19/85] Add test for accept header. Refs #2828 --- lib/Cake/Test/Case/Network/CakeRequestTest.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/Cake/Test/Case/Network/CakeRequestTest.php b/lib/Cake/Test/Case/Network/CakeRequestTest.php index 4ca06914c..aa1d22013 100644 --- a/lib/Cake/Test/Case/Network/CakeRequestTest.php +++ b/lib/Cake/Test/Case/Network/CakeRequestTest.php @@ -929,6 +929,22 @@ class CakeRequestTest extends CakeTestCase { $this->assertEquals($expected, $result); } +/** + * Test parsing accept with a confusing accept value. + * + * @return void + */ + public function testParseAcceptNoQValues() { + $_SERVER['HTTP_ACCEPT'] = 'application/json, text/plain, */*'; + + $request = new CakeRequest('/', false); + $result = $request->parseAccept(); + $expected = array( + '1.0' => array('application/json', 'text/plain', '*/*'), + ); + $this->assertEquals($expected, $result); + } + /** * testBaseUrlAndWebrootWithModRewrite method * From f14f18f0d75a863abe6c7f86b735d0c14a48c046 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sun, 29 Apr 2012 21:03:38 -0430 Subject: [PATCH 20/85] Update version number to 2.2.0-beta --- lib/Cake/VERSION.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/VERSION.txt b/lib/Cake/VERSION.txt index 970cf7e07..97b2db322 100644 --- a/lib/Cake/VERSION.txt +++ b/lib/Cake/VERSION.txt @@ -17,4 +17,4 @@ // @license MIT License (http://www.opensource.org/licenses/mit-license.php) // +--------------------------------------------------------------------------------------------+ // //////////////////////////////////////////////////////////////////////////////////////////////////// -2.2.0-dev +2.2.0-beta From 7fd19551dbb03275298cdf27ce265a4782e7a00a Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sun, 29 Apr 2012 21:07:12 -0430 Subject: [PATCH 21/85] Update version number to 2.1.2 --- lib/Cake/VERSION.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/VERSION.txt b/lib/Cake/VERSION.txt index f092e3ba8..2225bff48 100644 --- a/lib/Cake/VERSION.txt +++ b/lib/Cake/VERSION.txt @@ -17,4 +17,4 @@ // @license MIT License (http://www.opensource.org/licenses/mit-license.php) // +--------------------------------------------------------------------------------------------+ // //////////////////////////////////////////////////////////////////////////////////////////////////// -2.1.1 +2.1.2 From 23d8e636b977b5d58cbcff90349fb114d0a4366a Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Tue, 1 May 2012 09:28:02 +1000 Subject: [PATCH 22/85] Fixed coding errors in db_acl.php in app/ --- app/Config/Schema/db_acl.php | 56 +++++++++++++++++------------------- 1 file changed, 27 insertions(+), 29 deletions(-) diff --git a/app/Config/Schema/db_acl.php b/app/Config/Schema/db_acl.php index e03a8950f..149ded03e 100644 --- a/app/Config/Schema/db_acl.php +++ b/app/Config/Schema/db_acl.php @@ -1,6 +1,4 @@ array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'), - 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), - 'model' => array('type'=>'string', 'null' => true), - 'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), - 'alias' => array('type'=>'string', 'null' => true), - 'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), - 'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), - 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)) - ); + 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'), + 'parent_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10), + 'model' => array('type' => 'string', 'null' => true), + 'foreign_key' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10), + 'alias' => array('type' => 'string', 'null' => true), + 'lft' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10), + 'rght' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10), + 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)) + ); public $aros = array( - 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'), - 'parent_id' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), - 'model' => array('type'=>'string', 'null' => true), - 'foreign_key' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), - 'alias' => array('type'=>'string', 'null' => true), - 'lft' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), - 'rght' => array('type'=>'integer', 'null' => true, 'default' => NULL, 'length' => 10), - 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)) - ); + 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'), + 'parent_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10), + 'model' => array('type' => 'string', 'null' => true), + 'foreign_key' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10), + 'alias' => array('type' => 'string', 'null' => true), + 'lft' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10), + 'rght' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10), + 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)) + ); public $aros_acos = array( - 'id' => array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'), - 'aro_id' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'), - 'aco_id' => array('type'=>'integer', 'null' => false, 'length' => 10), - '_create' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2), - '_read' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2), - '_update' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2), - '_delete' => array('type'=>'string', 'null' => false, 'default' => '0', 'length' => 2), - 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'ARO_ACO_KEY' => array('column' => array('aro_id', 'aco_id'), 'unique' => 1)) - ); + 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'), + 'aro_id' => array('type' => 'integer', 'null' => false, 'length' => 10, 'key' => 'index'), + 'aco_id' => array('type' => 'integer', 'null' => false, 'length' => 10), + '_create' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2), + '_read' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2), + '_update' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2), + '_delete' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2), + 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'ARO_ACO_KEY' => array('column' => array('aro_id', 'aco_id'), 'unique' => 1)) + ); } From d40a8a90a8c239fe0af487273b7dc2e2112196b9 Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Tue, 1 May 2012 09:30:22 +1000 Subject: [PATCH 23/85] Fixing coding standards in i18n schema in app/ --- app/Config/Schema/i18n.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/app/Config/Schema/i18n.php b/app/Config/Schema/i18n.php index 8ca081c99..8de0052dd 100644 --- a/app/Config/Schema/i18n.php +++ b/app/Config/Schema/i18n.php @@ -1,6 +1,4 @@ array('type'=>'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'), - 'locale' => array('type'=>'string', 'null' => false, 'length' => 6, 'key' => 'index'), - 'model' => array('type'=>'string', 'null' => false, 'key' => 'index'), - 'foreign_key' => array('type'=>'integer', 'null' => false, 'length' => 10, 'key' => 'index'), - 'field' => array('type'=>'string', 'null' => false, 'key' => 'index'), - 'content' => array('type'=>'text', 'null' => true, 'default' => NULL), - 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'locale' => array('column' => 'locale', 'unique' => 0), 'model' => array('column' => 'model', 'unique' => 0), 'row_id' => array('column' => 'foreign_key', 'unique' => 0), 'field' => array('column' => 'field', 'unique' => 0)) - ); + 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'), + 'locale' => array('type' => 'string', 'null' => false, 'length' => 6, 'key' => 'index'), + 'model' => array('type' => 'string', 'null' => false, 'key' => 'index'), + 'foreign_key' => array('type' => 'integer', 'null' => false, 'length' => 10, 'key' => 'index'), + 'field' => array('type' => 'string', 'null' => false, 'key' => 'index'), + 'content' => array('type' => 'text', 'null' => true, 'default' => null), + 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'locale' => array('column' => 'locale', 'unique' => 0), 'model' => array('column' => 'model', 'unique' => 0), 'row_id' => array('column' => 'foreign_key', 'unique' => 0), 'field' => array('column' => 'field', 'unique' => 0)) + ); } From 9539023b825d0288a26d63a437c99cb7c7f5e33e Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Tue, 1 May 2012 09:32:10 +1000 Subject: [PATCH 24/85] Fixed coding standard errors in schema.php in app/ --- app/Config/Schema/sessions.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/Config/Schema/sessions.php b/app/Config/Schema/sessions.php index 7b7db69ab..e98ca060f 100644 --- a/app/Config/Schema/sessions.php +++ b/app/Config/Schema/sessions.php @@ -1,6 +1,4 @@ array('type'=>'string', 'null' => false, 'key' => 'primary'), - 'data' => array('type'=>'text', 'null' => true, 'default' => NULL), - 'expires' => array('type'=>'integer', 'null' => true, 'default' => NULL), - 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)) - ); + 'id' => array('type' => 'string', 'null' => false, 'key' => 'primary'), + 'data' => array('type' => 'text', 'null' => true, 'default' => null), + 'expires' => array('type' => 'integer', 'null' => true, 'default' => null), + 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)) + ); } From ce5e6027cd8fb93291c991f40a7b33caf360d0cb Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Tue, 1 May 2012 09:34:26 +1000 Subject: [PATCH 25/85] Fixed coding standards in cake.php console in app/ --- app/Console/cake.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/cake.php b/app/Console/cake.php index 9732be9ef..edef89473 100644 --- a/app/Console/cake.php +++ b/app/Console/cake.php @@ -22,10 +22,10 @@ $dispatcher = 'Cake' . $ds . 'Console' . $ds . 'ShellDispatcher.php'; if (function_exists('ini_set')) { $root = dirname(dirname(dirname(__FILE__))); - ini_set('include_path', $root . $ds. 'lib' . PATH_SEPARATOR . ini_get('include_path')); + ini_set('include_path', $root . $ds . 'lib' . PATH_SEPARATOR . ini_get('include_path')); } -if (!include($dispatcher)) { +if (!include ($dispatcher)) { trigger_error('Could not locate CakePHP core files.', E_USER_ERROR); } unset($paths, $path, $dispatcher, $root, $ds); From dc0d05516aa7a2208585301ff0d130726d9197c6 Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Tue, 1 May 2012 09:36:08 +1000 Subject: [PATCH 26/85] Removed single line of whitespace to fix some coding standards in PagesController in app/ --- app/Controller/PagesController.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Controller/PagesController.php b/app/Controller/PagesController.php index 4759719ae..5a2e57db4 100644 --- a/app/Controller/PagesController.php +++ b/app/Controller/PagesController.php @@ -38,7 +38,6 @@ class PagesController extends AppController { */ public $name = 'Pages'; - /** * This controller does not use a model * From 1253529c44c7aaef72da956798b8684774c2bb4e Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Tue, 1 May 2012 09:38:16 +1000 Subject: [PATCH 27/85] Removed indentation to satisfy coding standards in webroot/index.php in app/ --- app/webroot/index.php | 62 +++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/app/webroot/index.php b/app/webroot/index.php index 36090de65..e125e09da 100644 --- a/app/webroot/index.php +++ b/app/webroot/index.php @@ -21,9 +21,9 @@ /** * Use the DS to separate the directories in other defines */ - if (!defined('DS')) { - define('DS', DIRECTORY_SEPARATOR); - } +if (!defined('DS')) { + define('DS', DIRECTORY_SEPARATOR); +} /** * These defines should only be edited if you have cake installed in * a directory layout other than the way it is distributed. @@ -34,16 +34,16 @@ * The full path to the directory which holds "app", WITHOUT a trailing DS. * */ - if (!defined('ROOT')) { - define('ROOT', dirname(dirname(dirname(__FILE__)))); - } +if (!defined('ROOT')) { + define('ROOT', dirname(dirname(dirname(__FILE__)))); +} /** * The actual directory name for the "app". * */ - if (!defined('APP_DIR')) { - define('APP_DIR', basename(dirname(dirname(__FILE__)))); - } +if (!defined('APP_DIR')) { + define('APP_DIR', basename(dirname(dirname(__FILE__)))); +} /** * The absolute path to the "cake" directory, WITHOUT a trailing DS. @@ -63,30 +63,30 @@ * Change at your own risk. * */ - if (!defined('WEBROOT_DIR')) { - define('WEBROOT_DIR', basename(dirname(__FILE__))); - } - if (!defined('WWW_ROOT')) { - define('WWW_ROOT', dirname(__FILE__) . DS); - } +if (!defined('WEBROOT_DIR')) { + define('WEBROOT_DIR', basename(dirname(__FILE__))); +} +if (!defined('WWW_ROOT')) { + define('WWW_ROOT', dirname(__FILE__) . DS); +} - if (!defined('CAKE_CORE_INCLUDE_PATH')) { - if (function_exists('ini_set')) { - ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path')); - } - if (!include('Cake' . DS . 'bootstrap.php')) { - $failed = true; - } - } else { - if (!include(CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) { - $failed = true; - } +if (!defined('CAKE_CORE_INCLUDE_PATH')) { + if (function_exists('ini_set')) { + ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path')); } - if (!empty($failed)) { - trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR); + if (!include ('Cake' . DS . 'bootstrap.php')) { + $failed = true; } +} else { + if (!include (CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) { + $failed = true; + } +} +if (!empty($failed)) { + trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR); +} - App::uses('Dispatcher', 'Routing'); +App::uses('Dispatcher', 'Routing'); - $Dispatcher = new Dispatcher(); - $Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding')))); +$Dispatcher = new Dispatcher(); +$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding')))); From 7f04fbd7dc506aa93d25b2849b48eb696fdd1eb9 Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Tue, 1 May 2012 09:40:16 +1000 Subject: [PATCH 28/85] Minor spacing changes to fix coding standards in webroot/test.php in app/ --- app/webroot/test.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/webroot/test.php b/app/webroot/test.php index 8c4f14966..39bea7a91 100644 --- a/app/webroot/test.php +++ b/app/webroot/test.php @@ -21,9 +21,9 @@ ini_set('display_errors', 1); /** * Use the DS to separate the directories in other defines */ - if (!defined('DS')) { - define('DS', DIRECTORY_SEPARATOR); - } +if (!defined('DS')) { + define('DS', DIRECTORY_SEPARATOR); +} /** * These defines should only be edited if you have cake installed in * a directory layout other than the way it is distributed. @@ -34,16 +34,16 @@ ini_set('display_errors', 1); * The full path to the directory which holds "app", WITHOUT a trailing DS. * */ - if (!defined('ROOT')) { - define('ROOT', dirname(dirname(dirname(__FILE__)))); - } +if (!defined('ROOT')) { + define('ROOT', dirname(dirname(dirname(__FILE__)))); +} /** * The actual directory name for the "app". * */ - if (!defined('APP_DIR')) { - define('APP_DIR', basename(dirname(dirname(__FILE__)))); - } +if (!defined('APP_DIR')) { + define('APP_DIR', basename(dirname(dirname(__FILE__)))); +} /** * The absolute path to the "Cake" directory, WITHOUT a trailing DS. @@ -71,11 +71,11 @@ if (!defined('CAKE_CORE_INCLUDE_PATH')) { if (function_exists('ini_set')) { ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path')); } - if (!include('Cake' . DS . 'bootstrap.php')) { + if (!include ('Cake' . DS . 'bootstrap.php')) { $failed = true; } } else { - if (!include(CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) { + if (!include (CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) { $failed = true; } } From ef7e1b6c6cf4f23d82e771ab575d0114be01e46b Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Tue, 1 May 2012 09:41:43 +1000 Subject: [PATCH 29/85] Removed leading indentation to fix coding standards in /index.php --- index.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/index.php b/index.php index 480a9c732..b54f617f3 100644 --- a/index.php +++ b/index.php @@ -20,21 +20,23 @@ * @since CakePHP(tm) v 0.2.9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ + /** * Get Cake's root directory */ - define('APP_DIR', 'app'); - define('DS', DIRECTORY_SEPARATOR); - define('ROOT', dirname(__FILE__)); - define('WEBROOT_DIR', 'webroot'); - define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS); +define('APP_DIR', 'app'); +define('DS', DIRECTORY_SEPARATOR); +define('ROOT', dirname(__FILE__)); +define('WEBROOT_DIR', 'webroot'); +define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS); + /** * This only needs to be changed if the "cake" directory is located * outside of the distributed structure. * Full path to the directory containing "cake". Do not add trailing directory separator */ - if (!defined('CAKE_CORE_INCLUDE_PATH')) { - define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib'); - } +if (!defined('CAKE_CORE_INCLUDE_PATH')) { + define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib'); +} - require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php'; +require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php'; From c77c6f3b5734b280becad4d762b19ca73d350316 Mon Sep 17 00:00:00 2001 From: Graham Weldon Date: Tue, 1 May 2012 09:51:22 +1000 Subject: [PATCH 30/85] Removed unncessary line to fix coding standards --- lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php index c6ab22601..6d80e1ae5 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php @@ -549,7 +549,6 @@ class TestTaskTest extends CakeTestCase { $this->assertContains('unset($this->Example)', $result); } - /** * test Constructor generation ensure that constructClasses is called for controllers * From 004bc5b6e761a039e498e1ec25c6a2f35269c0f0 Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 30 Apr 2012 20:36:03 -0400 Subject: [PATCH 31/85] Fix overwriting of GET/POST ControllerTestCase was overwriting GET and POST and not restoring them at the end of testAction. Fixes #2841 --- .../Case/TestSuite/ControllerTestCaseTest.php | 19 +++++++++++++++++++ lib/Cake/TestSuite/ControllerTestCase.php | 6 ++++++ 2 files changed, 25 insertions(+) diff --git a/lib/Cake/Test/Case/TestSuite/ControllerTestCaseTest.php b/lib/Cake/Test/Case/TestSuite/ControllerTestCaseTest.php index af124be1d..cf6bbb85a 100644 --- a/lib/Cake/Test/Case/TestSuite/ControllerTestCaseTest.php +++ b/lib/Cake/Test/Case/TestSuite/ControllerTestCaseTest.php @@ -542,4 +542,23 @@ class ControllerTestCaseTest extends CakeTestCase { $this->assertSame($this->Case->controller->request, $this->Case->controller->RequestHandler->request); } +/** + * Test that testAction() doesn't destroy data in GET & POST + * + * @return void + */ + public function testRestoreGetPost() { + $restored = array('new' => 'value'); + + $_GET = $restored; + $_POST = $restored; + + $this->Case->generate('TestsApps'); + $options = array('method' => 'get'); + $this->Case->testAction('/tests_apps/index', $options); + + $this->assertEquals($restored, $_GET); + $this->assertEquals($restored, $_POST); + } + } diff --git a/lib/Cake/TestSuite/ControllerTestCase.php b/lib/Cake/TestSuite/ControllerTestCase.php index c017942d3..ad279785f 100644 --- a/lib/Cake/TestSuite/ControllerTestCase.php +++ b/lib/Cake/TestSuite/ControllerTestCase.php @@ -217,6 +217,8 @@ abstract class ControllerTestCase extends CakeTestCase { 'return' => 'result' ), $options); + $restore = array('get' => $_GET, 'post' => $_POST); + $_SERVER['REQUEST_METHOD'] = strtoupper($options['method']); if (is_array($options['data'])) { if (strtoupper($options['method']) == 'GET') { @@ -272,6 +274,10 @@ abstract class ControllerTestCase extends CakeTestCase { } $this->__dirtyController = true; $this->headers = $Dispatch->response->header(); + + $_GET = $restore['get']; + $_POST = $restore['post']; + return $this->{$options['return']}; } From 128c719bd01bc66e3a59b88c2edb287b0bf482b0 Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 30 Apr 2012 20:52:17 -0400 Subject: [PATCH 32/85] Add no-op method to base class. Fixes #2839 --- lib/Cake/Model/Datasource/DataSource.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Cake/Model/Datasource/DataSource.php b/lib/Cake/Model/Datasource/DataSource.php index 085a2c910..70f4d436f 100644 --- a/lib/Cake/Model/Datasource/DataSource.php +++ b/lib/Cake/Model/Datasource/DataSource.php @@ -416,6 +416,14 @@ class DataSource extends Object { return null; } +/** + * Close the connection to the datasource. + * + * @return void + */ + public function close() { + } + /** * Closes the current datasource. * From e7fa2a526ff456e5e776290d60461397f73fc464 Mon Sep 17 00:00:00 2001 From: Rachman Chavik Date: Tue, 1 May 2012 21:35:48 +0700 Subject: [PATCH 33/85] remove whitespace at eol --- lib/Cake/Console/Command/Task/TemplateTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Console/Command/Task/TemplateTask.php b/lib/Cake/Console/Command/Task/TemplateTask.php index bbc586f65..34da4f00c 100644 --- a/lib/Cake/Console/Command/Task/TemplateTask.php +++ b/lib/Cake/Console/Command/Task/TemplateTask.php @@ -61,7 +61,7 @@ class TemplateTask extends AppShell { */ protected function _findThemes() { $paths = App::path('Console'); - + $plugins = App::objects('plugin'); foreach ($plugins as $plugin) { $paths[] = $this->_pluginPath($plugin) . 'Console' . DS; From c703a633bd94bcef9dff8213577379c937e3ab8d Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 19 Apr 2012 21:53:45 -0400 Subject: [PATCH 34/85] Add dump() method to IniReader. --- lib/Cake/Configure/IniReader.php | 31 ++++++++++++++++--- .../Test/Case/Configure/IniReaderTest.php | 30 ++++++++++++++++++ 2 files changed, 57 insertions(+), 4 deletions(-) diff --git a/lib/Cake/Configure/IniReader.php b/lib/Cake/Configure/IniReader.php index f47713294..77035e9c2 100644 --- a/lib/Cake/Configure/IniReader.php +++ b/lib/Cake/Configure/IniReader.php @@ -16,13 +16,15 @@ * @since CakePHP(tm) v 2.0 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ +App::uses('Hash', 'Utility'); /** - * Ini file configuration parser. Since IniReader uses parse_ini_file underneath, - * you should be aware that this class shares the same behavior, especially with - * regards to boolean and null values. + * Ini file configuration engine. * - * In addition to the native parse_ini_file features, IniReader also allows you + * Since IniReader uses parse_ini_file underneath, you should be aware that this + * class shares the same behavior, especially with regards to boolean and null values. + * + * In addition to the native `parse_ini_file` features, IniReader also allows you * to create nested array structures through usage of `.` delimited names. This allows * you to create nested arrays structures in an ini config file. For example: * @@ -135,4 +137,25 @@ class IniReader implements ConfigReaderInterface { return $values; } +/** + * Dumps the state of Configure data into an ini formatted string. + * + * @param array $data The data to convert to ini file. + * @return string The converted configuration as an ini string + */ + public function dump($data) { + $result = array(); + foreach ($data as $key => $value) { + if ($key[0] != '[') { + $result[] = "[$key]"; + } + if (is_array($value)) { + $keyValues = Hash::flatten($value, '.'); + foreach ($keyValues as $k => $v) { + $result[] = "$k = " . trim(var_export($v, true), "'"); + } + } + } + return join("\n", $result); + } } diff --git a/lib/Cake/Test/Case/Configure/IniReaderTest.php b/lib/Cake/Test/Case/Configure/IniReaderTest.php index 6ce077fa2..6d69c0371 100644 --- a/lib/Cake/Test/Case/Configure/IniReaderTest.php +++ b/lib/Cake/Test/Case/Configure/IniReaderTest.php @@ -125,4 +125,34 @@ class IniReaderTest extends CakeTestCase { $config = $reader->read('nested'); $this->assertTrue($config['bools']['test_on']); } + +/** + * test dump method. + * + * @return void + */ + public function testDump() { + $reader = new IniReader($this->path); + $data = array( + 'One' => array( + 'two' => 'value', + 'three' => array( + 'four' => 'value four' + ) + ), + 'Asset' => array( + 'timestamp' => 'force' + ), + ); + $result = $reader->dump($data); + $expected = <<assertEquals($expected, $result); + } + } From 578dac92598a585beea27840d513832bd5d5be3a Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 19 Apr 2012 22:07:05 -0400 Subject: [PATCH 35/85] Add dump() to PhpReader. --- lib/Cake/Configure/PhpReader.php | 11 +++++ .../Test/Case/Configure/PhpReaderTest.php | 42 +++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/lib/Cake/Configure/PhpReader.php b/lib/Cake/Configure/PhpReader.php index ed3d2e4b7..6ee4e3770 100644 --- a/lib/Cake/Configure/PhpReader.php +++ b/lib/Cake/Configure/PhpReader.php @@ -87,4 +87,15 @@ class PhpReader implements ConfigReaderInterface { return $config; } +/** + * Converts the provided $data into a string of PHP code that can + * be used saved into a file and loaded later. + * + * @param array $data Data to dump. + * @return string String or PHP code. + */ + public function dump($data) { + return 'assertTrue(isset($result['plugin_load'])); CakePlugin::unload(); } + +/** + * Test dumping data to PHP format. + * + * @return void + */ + public function testDump() { + $reader = new PhpReader($this->path); + $data = array( + 'One' => array( + 'two' => 'value', + 'three' => array( + 'four' => 'value four' + ), + 'null' => null + ), + 'Asset' => array( + 'timestamp' => 'force' + ), + ); + $result = $reader->dump($data); + $expected = << + array ( + 'two' => 'value', + 'three' => + array ( + 'four' => 'value four', + ), + 'null' => NULL, + ), + 'Asset' => + array ( + 'timestamp' => 'force', + ), +); +PHP; + $this->assertEquals($expected, $result); + } + } From 9f37277dab6eeeb4959beb862c34f5ae43e6bd99 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 19 Apr 2012 22:45:01 -0400 Subject: [PATCH 36/85] Add Configure::dump(). --- lib/Cake/Core/Configure.php | 22 +++++++++++++++++++++ lib/Cake/Test/Case/Core/ConfigureTest.php | 24 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/lib/Cake/Core/Configure.php b/lib/Cake/Core/Configure.php index 45e60fd2d..9a4e1adc9 100644 --- a/lib/Cake/Core/Configure.php +++ b/lib/Cake/Core/Configure.php @@ -278,6 +278,28 @@ class Configure { return self::write($values); } +/** + * Dump data currently in Configure into $filename. The serialization format + * is decided by the config reader attached as $config. For example, if the + * 'default' adapter is a PhpReader, the generated file will be a PHP configuration + * file loadable by the PhpReader. + * + * @param string $filename The filename to save content into. + * @param string $config The name of the configured adapter to dump data with. + * @return void + * @throws ConfigureException if the adapter does not implement a `dump` method. + */ + public static function dump($filename, $config = 'default') { + if (empty(self::$_readers[$config])) { + throw new ConfigureException(__d('cake', 'There is no "%s" adapter.', $config)); + } + if (!method_exists(self::$_readers[$config], 'dump')) { + throw new ConfigureException(__d('cake', 'The "%s" adapter, does not have a dump() method.', $config)); + } + $content = self::$_readers[$config]->dump(self::$_values); + return file_put_contents($filename, $content); + } + /** * Used to determine the current version of CakePHP. * diff --git a/lib/Cake/Test/Case/Core/ConfigureTest.php b/lib/Cake/Test/Case/Core/ConfigureTest.php index 705e83b95..88a996e19 100644 --- a/lib/Cake/Test/Case/Core/ConfigureTest.php +++ b/lib/Cake/Test/Case/Core/ConfigureTest.php @@ -362,4 +362,28 @@ class ConfigureTest extends CakeTestCase { $this->assertNull(Configure::read('debug')); $this->assertNull(Configure::read('test')); } + +/** + * @expectedException ConfigureException + */ + public function testDumpNoAdapter() { + Configure::dump(TMP . 'test.php', 'does_not_exist'); + } + +/** + * test dump integrated with the PhpReader. + * + * @return void + */ + public function testDump() { + Configure::config('test_reader', new PhpReader(TMP)); + + $result = Configure::dump(TMP . 'config_test.php', 'test_reader'); + $this->assertTrue($result > 0); + $result = file_get_contents(TMP . 'config_test.php'); + $this->assertContains('assertContains('$config = ', $result); + @unlink(TMP . 'config_test.php'); + } + } From 6ba923d20fbb317567b88fc660f75fd6f4655a0f Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 21 Apr 2012 20:26:35 -0400 Subject: [PATCH 37/85] Make the configure adapters responsible for persistence. Each adapter should be handling persistence. This allows different adapters to handle saving config files in different ways or places. --- lib/Cake/Configure/IniReader.php | 8 +++++--- lib/Cake/Configure/PhpReader.php | 8 +++++--- lib/Cake/Core/Configure.php | 10 +++++----- lib/Cake/Test/Case/Configure/IniReaderTest.php | 8 +++++++- lib/Cake/Test/Case/Configure/PhpReaderTest.php | 8 ++++++-- lib/Cake/Test/Case/Core/ConfigureTest.php | 2 +- 6 files changed, 29 insertions(+), 15 deletions(-) diff --git a/lib/Cake/Configure/IniReader.php b/lib/Cake/Configure/IniReader.php index 77035e9c2..b571c7004 100644 --- a/lib/Cake/Configure/IniReader.php +++ b/lib/Cake/Configure/IniReader.php @@ -140,10 +140,11 @@ class IniReader implements ConfigReaderInterface { /** * Dumps the state of Configure data into an ini formatted string. * + * @param string $filename The filename on $this->_path to save into. * @param array $data The data to convert to ini file. - * @return string The converted configuration as an ini string + * @return int Bytes saved. */ - public function dump($data) { + public function dump($filename, $data) { $result = array(); foreach ($data as $key => $value) { if ($key[0] != '[') { @@ -156,6 +157,7 @@ class IniReader implements ConfigReaderInterface { } } } - return join("\n", $result); + $contents = join("\n", $result); + return file_put_contents($this->_path . $filename, $contents); } } diff --git a/lib/Cake/Configure/PhpReader.php b/lib/Cake/Configure/PhpReader.php index 6ee4e3770..f5d961961 100644 --- a/lib/Cake/Configure/PhpReader.php +++ b/lib/Cake/Configure/PhpReader.php @@ -91,11 +91,13 @@ class PhpReader implements ConfigReaderInterface { * Converts the provided $data into a string of PHP code that can * be used saved into a file and loaded later. * + * @param string $filename The filename to create on $this->_path. * @param array $data Data to dump. - * @return string String or PHP code. + * @return int Bytes saved. */ - public function dump($data) { - return '_path . $filename, $contents); } } diff --git a/lib/Cake/Core/Configure.php b/lib/Cake/Core/Configure.php index 9a4e1adc9..9b4a85ee3 100644 --- a/lib/Cake/Core/Configure.php +++ b/lib/Cake/Core/Configure.php @@ -284,20 +284,20 @@ class Configure { * 'default' adapter is a PhpReader, the generated file will be a PHP configuration * file loadable by the PhpReader. * - * @param string $filename The filename to save content into. + * @param string $key The identifier to create in the config adapter. + * This could be a filename or a cache key depending on the adapter being used. * @param string $config The name of the configured adapter to dump data with. - * @return void + * @return boolean success * @throws ConfigureException if the adapter does not implement a `dump` method. */ - public static function dump($filename, $config = 'default') { + public static function dump($key, $config = 'default') { if (empty(self::$_readers[$config])) { throw new ConfigureException(__d('cake', 'There is no "%s" adapter.', $config)); } if (!method_exists(self::$_readers[$config], 'dump')) { throw new ConfigureException(__d('cake', 'The "%s" adapter, does not have a dump() method.', $config)); } - $content = self::$_readers[$config]->dump(self::$_values); - return file_put_contents($filename, $content); + return (bool)self::$_readers[$config]->dump($key, self::$_values); } /** diff --git a/lib/Cake/Test/Case/Configure/IniReaderTest.php b/lib/Cake/Test/Case/Configure/IniReaderTest.php index 6d69c0371..0caaf92e2 100644 --- a/lib/Cake/Test/Case/Configure/IniReaderTest.php +++ b/lib/Cake/Test/Case/Configure/IniReaderTest.php @@ -144,7 +144,9 @@ class IniReaderTest extends CakeTestCase { 'timestamp' => 'force' ), ); - $result = $reader->dump($data); + $result = $reader->dump('test.ini', $data); + $this->assertTrue($result > 0); + $expected = <<path . 'test.ini'; + $result = file_get_contents($file); + unlink($file); + $this->assertEquals($expected, $result); } diff --git a/lib/Cake/Test/Case/Configure/PhpReaderTest.php b/lib/Cake/Test/Case/Configure/PhpReaderTest.php index a80152aeb..ef7932988 100644 --- a/lib/Cake/Test/Case/Configure/PhpReaderTest.php +++ b/lib/Cake/Test/Case/Configure/PhpReaderTest.php @@ -116,7 +116,8 @@ class PhpReaderTest extends CakeTestCase { 'timestamp' => 'force' ), ); - $result = $reader->dump($data); + $result = $reader->dump('test.php', $data); + $this->assertTrue($result > 0); $expected = <<assertEquals($expected, $result); + $file = $this->path . 'test.php'; + $contents = file_get_contents($file); + @unlink($contents); + $this->assertEquals($expected, $contents); } } diff --git a/lib/Cake/Test/Case/Core/ConfigureTest.php b/lib/Cake/Test/Case/Core/ConfigureTest.php index 88a996e19..a384c591c 100644 --- a/lib/Cake/Test/Case/Core/ConfigureTest.php +++ b/lib/Cake/Test/Case/Core/ConfigureTest.php @@ -378,7 +378,7 @@ class ConfigureTest extends CakeTestCase { public function testDump() { Configure::config('test_reader', new PhpReader(TMP)); - $result = Configure::dump(TMP . 'config_test.php', 'test_reader'); + $result = Configure::dump('config_test.php', 'test_reader'); $this->assertTrue($result > 0); $result = file_get_contents(TMP . 'config_test.php'); $this->assertContains(' Date: Mon, 30 Apr 2012 21:07:32 -0400 Subject: [PATCH 38/85] Update dump() to allow partial dumps. --- lib/Cake/Core/Configure.php | 25 +++++++++++++++++++---- lib/Cake/Test/Case/Core/ConfigureTest.php | 19 +++++++++++++++++ lib/Cake/Test/test_app/Config/test.php | 16 +++++++++++++++ 3 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 lib/Cake/Test/test_app/Config/test.php diff --git a/lib/Cake/Core/Configure.php b/lib/Cake/Core/Configure.php index 9b4a85ee3..b90fcfc6d 100644 --- a/lib/Cake/Core/Configure.php +++ b/lib/Cake/Core/Configure.php @@ -281,23 +281,40 @@ class Configure { /** * Dump data currently in Configure into $filename. The serialization format * is decided by the config reader attached as $config. For example, if the - * 'default' adapter is a PhpReader, the generated file will be a PHP configuration - * file loadable by the PhpReader. + * 'default' adapter is a PhpReader, the generated file will be a PHP + * configuration file loadable by the PhpReader. + * + * ## Usage + * + * Given that the 'default' reader is an instance of PhpReader. + * Save all data in Configure to the file `my_config.php`: + * + * `Configure::dump('my_config.php', 'default');` + * + * Save only the error handling configuration: + * + * `Configure::dump('error.php', 'default', array('Error', 'Exception');` * * @param string $key The identifier to create in the config adapter. * This could be a filename or a cache key depending on the adapter being used. * @param string $config The name of the configured adapter to dump data with. + * @param array $keys The name of the top-level keys you want to dump. + * This allows you save only some data stored in Configure. * @return boolean success * @throws ConfigureException if the adapter does not implement a `dump` method. */ - public static function dump($key, $config = 'default') { + public static function dump($key, $config = 'default', $keys = array()) { if (empty(self::$_readers[$config])) { throw new ConfigureException(__d('cake', 'There is no "%s" adapter.', $config)); } if (!method_exists(self::$_readers[$config], 'dump')) { throw new ConfigureException(__d('cake', 'The "%s" adapter, does not have a dump() method.', $config)); } - return (bool)self::$_readers[$config]->dump($key, self::$_values); + $values = self::$_values; + if (!empty($keys) && is_array($keys)) { + $values = array_intersect_key($values, array_flip($keys)); + } + return (bool)self::$_readers[$config]->dump($key, $values); } /** diff --git a/lib/Cake/Test/Case/Core/ConfigureTest.php b/lib/Cake/Test/Case/Core/ConfigureTest.php index a384c591c..7351f83f1 100644 --- a/lib/Cake/Test/Case/Core/ConfigureTest.php +++ b/lib/Cake/Test/Case/Core/ConfigureTest.php @@ -386,4 +386,23 @@ class ConfigureTest extends CakeTestCase { @unlink(TMP . 'config_test.php'); } +/** + * Test dumping only some of the data. + * + * @return + */ + public function testDumpPartial() { + Configure::config('test_reader', new PhpReader(TMP)); + + $result = Configure::dump('config_test.php', 'test_reader', array('Error')); + $this->assertTrue($result > 0); + $result = file_get_contents(TMP . 'config_test.php'); + $this->assertContains('assertContains('$config = ', $result); + $this->assertContains('Error', $result); + $this->assertNotContains('debug', $result); + + @unlink(TMP . 'config_test.php'); + } + } diff --git a/lib/Cake/Test/test_app/Config/test.php b/lib/Cake/Test/test_app/Config/test.php new file mode 100644 index 000000000..bc7c05ce2 --- /dev/null +++ b/lib/Cake/Test/test_app/Config/test.php @@ -0,0 +1,16 @@ + + array ( + 'two' => 'value', + 'three' => + array ( + 'four' => 'value four', + ), + 'null' => NULL, + ), + 'Asset' => + array ( + 'timestamp' => 'force', + ), +); \ No newline at end of file From 7c4b7a2cbe758b4e237387f9a390a4fc67bbd0a7 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 1 May 2012 21:06:24 -0400 Subject: [PATCH 39/85] Fix mistake in path. Remove incorrectly added file. --- lib/Cake/Test/Case/Configure/PhpReaderTest.php | 3 ++- lib/Cake/Test/test_app/Config/test.php | 16 ---------------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 lib/Cake/Test/test_app/Config/test.php diff --git a/lib/Cake/Test/Case/Configure/PhpReaderTest.php b/lib/Cake/Test/Case/Configure/PhpReaderTest.php index ef7932988..70a768501 100644 --- a/lib/Cake/Test/Case/Configure/PhpReaderTest.php +++ b/lib/Cake/Test/Case/Configure/PhpReaderTest.php @@ -138,7 +138,8 @@ class PhpReaderTest extends CakeTestCase { PHP; $file = $this->path . 'test.php'; $contents = file_get_contents($file); - @unlink($contents); + + unlink($file); $this->assertEquals($expected, $contents); } diff --git a/lib/Cake/Test/test_app/Config/test.php b/lib/Cake/Test/test_app/Config/test.php deleted file mode 100644 index bc7c05ce2..000000000 --- a/lib/Cake/Test/test_app/Config/test.php +++ /dev/null @@ -1,16 +0,0 @@ - - array ( - 'two' => 'value', - 'three' => - array ( - 'four' => 'value four', - ), - 'null' => NULL, - ), - 'Asset' => - array ( - 'timestamp' => 'force', - ), -); \ No newline at end of file From e7153b533392548a9b3ee90719dc2f88827b0e07 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 1 May 2012 21:43:01 -0400 Subject: [PATCH 40/85] Add more tests Fix an issue in IniReader and add tests to ensure that dumped files can be re-read. --- lib/Cake/Configure/IniReader.php | 23 +++++++- .../Test/Case/Configure/IniReaderTest.php | 58 +++++++++++++------ .../Test/Case/Configure/PhpReaderTest.php | 58 +++++++++++++------ 3 files changed, 104 insertions(+), 35 deletions(-) diff --git a/lib/Cake/Configure/IniReader.php b/lib/Cake/Configure/IniReader.php index b571c7004..debd685c6 100644 --- a/lib/Cake/Configure/IniReader.php +++ b/lib/Cake/Configure/IniReader.php @@ -128,6 +128,7 @@ class IniReader implements ConfigReaderInterface { if ($value === '') { $value = false; } + unset($values[$key]); if (strpos($key, '.') !== false) { $values = Hash::insert($values, $key, $value); } else { @@ -153,11 +154,31 @@ class IniReader implements ConfigReaderInterface { if (is_array($value)) { $keyValues = Hash::flatten($value, '.'); foreach ($keyValues as $k => $v) { - $result[] = "$k = " . trim(var_export($v, true), "'"); + $result[] = "$k = " . $this->_value($v); } } } $contents = join("\n", $result); return file_put_contents($this->_path . $filename, $contents); } + +/** + * Converts a value into the ini equivalent + * + * @param mixed $value to export. + * @return string String value for ini file. + */ + protected function _value($val) { + if ($val === null) { + return 'null'; + } + if ($val === true) { + return 'true'; + } + if ($val === false) { + return 'false'; + } + return (string)$val; + } + } diff --git a/lib/Cake/Test/Case/Configure/IniReaderTest.php b/lib/Cake/Test/Case/Configure/IniReaderTest.php index 0caaf92e2..e4b463450 100644 --- a/lib/Cake/Test/Case/Configure/IniReaderTest.php +++ b/lib/Cake/Test/Case/Configure/IniReaderTest.php @@ -21,11 +21,24 @@ App::uses('IniReader', 'Configure'); class IniReaderTest extends CakeTestCase { /** - * The test file that will be read. + * Test data to serialize and unserialize. * - * @var string + * @var array */ - public $file; + public $testData = array( + 'One' => array( + 'two' => 'value', + 'three' => array( + 'four' => 'value four' + ), + 'is_null' => null, + 'bool_false' => false, + 'bool_true' => true, + ), + 'Asset' => array( + 'timestamp' => 'force' + ), + ); /** * setup @@ -92,6 +105,8 @@ class IniReaderTest extends CakeTestCase { $this->assertTrue(isset($config['database']['db']['username'])); $this->assertEquals('mark', $config['database']['db']['username']); $this->assertEquals(3, $config['nesting']['one']['two']['three']); + $this->assertFalse(isset($config['database.db.username'])); + $this->assertFalse(isset($config['database']['db.username'])); } /** @@ -132,32 +147,41 @@ class IniReaderTest extends CakeTestCase { * @return void */ public function testDump() { - $reader = new IniReader($this->path); - $data = array( - 'One' => array( - 'two' => 'value', - 'three' => array( - 'four' => 'value four' - ) - ), - 'Asset' => array( - 'timestamp' => 'force' - ), - ); - $result = $reader->dump('test.ini', $data); + $reader = new IniReader(TMP); + $result = $reader->dump('test.ini', $this->testData); $this->assertTrue($result > 0); $expected = <<path . 'test.ini'; + $file = TMP . 'test.ini'; $result = file_get_contents($file); unlink($file); + $this->assertTextEquals($expected, $result); + } + +/** + * Test that dump() makes files read() can read. + * + * @return void + */ + public function testDumpRead() { + $reader = new IniReader(TMP); + $reader->dump('test.ini', $this->testData); + $result = $reader->read('test.ini'); + unlink(TMP . 'test.ini'); + + $expected = $this->testData; + $expected['One']['is_null'] = false; + $this->assertEquals($expected, $result); } diff --git a/lib/Cake/Test/Case/Configure/PhpReaderTest.php b/lib/Cake/Test/Case/Configure/PhpReaderTest.php index 70a768501..3967db355 100644 --- a/lib/Cake/Test/Case/Configure/PhpReaderTest.php +++ b/lib/Cake/Test/Case/Configure/PhpReaderTest.php @@ -20,6 +20,26 @@ App::uses('PhpReader', 'Configure'); class PhpReaderTest extends CakeTestCase { +/** + * Test data to serialize and unserialize. + * + * @var array + */ + public $testData = array( + 'One' => array( + 'two' => 'value', + 'three' => array( + 'four' => 'value four' + ), + 'is_null' => null, + 'bool_false' => false, + 'bool_true' => true, + ), + 'Asset' => array( + 'timestamp' => 'force' + ), + ); + /** * setup * @@ -103,20 +123,8 @@ class PhpReaderTest extends CakeTestCase { * @return void */ public function testDump() { - $reader = new PhpReader($this->path); - $data = array( - 'One' => array( - 'two' => 'value', - 'three' => array( - 'four' => 'value four' - ), - 'null' => null - ), - 'Asset' => array( - 'timestamp' => 'force' - ), - ); - $result = $reader->dump('test.php', $data); + $reader = new PhpReader(TMP); + $result = $reader->dump('test.php', $this->testData); $this->assertTrue($result > 0); $expected = << 'value four', ), - 'null' => NULL, + 'is_null' => NULL, + 'bool_false' => false, + 'bool_true' => true, ), 'Asset' => array ( @@ -136,11 +146,25 @@ class PhpReaderTest extends CakeTestCase { ), ); PHP; - $file = $this->path . 'test.php'; + $file = TMP . 'test.php'; $contents = file_get_contents($file); unlink($file); - $this->assertEquals($expected, $contents); + $this->assertTextEquals($expected, $contents); + } + +/** + * Test that dump() makes files read() can read. + * + * @return void + */ + public function testDumpRead() { + $reader = new PhpReader(TMP); + $reader->dump('test.php', $this->testData); + $result = $reader->read('test.php'); + unlink(TMP . 'test.php'); + + $this->assertTextEquals($this->testData, $result); } } From e18200ad8706f0fbbfb724c125ac17eb82ccf9a4 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 1 May 2012 21:45:06 -0400 Subject: [PATCH 41/85] Fix assertion. --- lib/Cake/Test/Case/Configure/PhpReaderTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Configure/PhpReaderTest.php b/lib/Cake/Test/Case/Configure/PhpReaderTest.php index 3967db355..08982cb4e 100644 --- a/lib/Cake/Test/Case/Configure/PhpReaderTest.php +++ b/lib/Cake/Test/Case/Configure/PhpReaderTest.php @@ -164,7 +164,7 @@ PHP; $result = $reader->read('test.php'); unlink(TMP . 'test.php'); - $this->assertTextEquals($this->testData, $result); + $this->assertEquals($this->testData, $result); } } From 49f8e73ab347079089191d2138a2970424961aa7 Mon Sep 17 00:00:00 2001 From: ADmad Date: Thu, 3 May 2012 01:39:12 +0530 Subject: [PATCH 42/85] Allow bulk storing/updating of mime types. Closes #2844 --- lib/Cake/Network/CakeResponse.php | 90 +++++++++---------- .../Test/Case/Network/CakeResponseTest.php | 5 +- 2 files changed, 48 insertions(+), 47 deletions(-) diff --git a/lib/Cake/Network/CakeResponse.php b/lib/Cake/Network/CakeResponse.php index 591ae6421..26681691f 100644 --- a/lib/Cake/Network/CakeResponse.php +++ b/lib/Cake/Network/CakeResponse.php @@ -328,7 +328,7 @@ class CakeResponse { /** * Holds cookies to be sent to the client - * + * * @var array */ protected $_cookies = array(); @@ -384,7 +384,7 @@ class CakeResponse { * Sets the cookies that have been added via static method CakeResponse::addCookie() * before any other output is sent to the client. * Will set the cookies in the order they have been set. - * + * * @return void */ protected function _setCookies() { @@ -595,7 +595,7 @@ class CakeResponse { * Sets the response content type. It can be either a file extension * which will be mapped internally to a mime-type or a string representing a mime-type * if $contentType is null the current content type is returned - * if $contentType is an associative array, it will be stored as a content type definition + * if $contentType is an associative array, content type definitions will be stored/replaced * * ### Setting the content type * @@ -605,9 +605,9 @@ class CakeResponse { * * e.g `type();` * - * ### Storing a content type definition + * ### Storing content type definitions * - * e.g `type(array('keynote' => 'application/keynote'));` + * e.g `type(array('keynote' => 'application/keynote', 'bat' => 'application/bat'));` * * ### Replacing a content type definition * @@ -621,9 +621,9 @@ class CakeResponse { return $this->_contentType; } if (is_array($contentType)) { - $type = key($contentType); - $defitition = current($contentType); - $this->_mimeTypes[$type] = $defitition; + foreach ($contentType as $type => $definition) { + $this->_mimeTypes[$type] = $definition; + } return $this->_contentType; } if (isset($this->_mimeTypes[$contentType])) { @@ -800,12 +800,12 @@ class CakeResponse { /** * Sets the Cache-Control must-revalidate directive. - * must-revalidate indicates that the response should not be served - * stale by a cache under any cirumstance without first revalidating + * must-revalidate indicates that the response should not be served + * stale by a cache under any cirumstance without first revalidating * with the origin. * If called with no parameters, this function will return wheter must-revalidate is present. * - * @param int $seconds if null, the method will return the current + * @param int $seconds if null, the method will return the current * must-revalidate value * @return boolean */ @@ -886,8 +886,8 @@ class CakeResponse { } /** - * Sets the response as Not Modified by removing any body contents - * setting the status code to "304 Not Modified" and removing all + * Sets the response as Not Modified by removing any body contents + * setting the status code to "304 Not Modified" and removing all * conflicting headers * * @return void @@ -911,11 +911,11 @@ class CakeResponse { /** * Sets the Vary header for the response, if an array is passed, - * values will be imploded into a comma separated string. If no - * parameters are passed, then an array with the current Vary header + * values will be imploded into a comma separated string. If no + * parameters are passed, then an array with the current Vary header * value is returned * - * @param string|array $cacheVariances a single Vary string or a array + * @param string|array $cacheVariances a single Vary string or a array * containig the list for variances. * @return array **/ @@ -932,22 +932,22 @@ class CakeResponse { /** * Sets the response Etag, Etags are a strong indicative that a response - * can be cached by a HTTP client. A bad way of generaing Etags is - * creating a hash of the response output, instead generate a unique - * hash of the unique components that identifies a request, such as a - * modification time, a resource Id, and anything else you consider it + * can be cached by a HTTP client. A bad way of generaing Etags is + * creating a hash of the response output, instead generate a unique + * hash of the unique components that identifies a request, such as a + * modification time, a resource Id, and anything else you consider it * makes it unique. * - * Second parameter is used to instuct clients that the content has - * changed, but sematicallly, it can be used as the same thing. Think - * for instance of a page with a hit counter, two different page views - * are equivalent, but they differ by a few bytes. This leaves off to + * Second parameter is used to instuct clients that the content has + * changed, but sematicallly, it can be used as the same thing. Think + * for instance of a page with a hit counter, two different page views + * are equivalent, but they differ by a few bytes. This leaves off to * the Client the decision of using or not the cached page. * * If no parameters are passed, current Etag header is returned. * * @param string $hash the unique has that identifies this resposnse - * @param boolean $weak whether the response is semantically the same as + * @param boolean $weak whether the response is semantically the same as * other with th same hash or not * @return string **/ @@ -965,7 +965,7 @@ class CakeResponse { * Returns a DateTime object initialized at the $time param and using UTC * as timezone * - * @param string|int|DateTime $time + * @param string|int|DateTime $time * @return DateTime */ protected function _getUTCDate($time = null) { @@ -1043,16 +1043,16 @@ class CakeResponse { } /** - * Checks whether a response has not been modified according to the 'If-None-Match' - * (Etags) and 'If-Modified-Since' (last modification date) request - * headers headers. If the response is detected to be not modified, it + * Checks whether a response has not been modified according to the 'If-None-Match' + * (Etags) and 'If-Modified-Since' (last modification date) request + * headers headers. If the response is detected to be not modified, it * is marked as so accordingly so the client can be informed of that. * - * In order to mark a response as not modified, you need to set at least - * the Last-Modified response header or a response etag to be compared + * In order to mark a response as not modified, you need to set at least + * the Last-Modified response header or a response etag to be compared * with the request itself * - * @return boolean whether the response was marked as not modified or + * @return boolean whether the response was marked as not modified or * not **/ public function checkNotModified(CakeRequest $request) { @@ -1087,19 +1087,19 @@ class CakeResponse { /** * Getter/Setter for cookie configs - * + * * This method acts as a setter/getter depending on the type of the argument. * If the method is called with no arguments, it returns all configurations. - * + * * If the method is called with a string as argument, it returns either the * given configuration if it is set, or null, if it's not set. - * + * * If the method is called with an array as argument, it will set the cookie * configuration to the cookie container. - * + * * @param $options Either null to get all cookies, string for a specific cookie * or array to set cookie. - * + * * ### Options (when setting a configuration) * - name: The Cookie name * - value: Value of the cookie @@ -1108,21 +1108,21 @@ class CakeResponse { * - domain: Domain the cookie is for. * - secure: Is the cookie https? * - httpOnly: Is the cookie available in the client? - * + * * ## Examples - * + * * ### Getting all cookies - * + * * `$this->cookie()` - * + * * ### Getting a certain cookie configuration - * + * * `$this->cookie('MyCookie')` - * + * * ### Setting a cookie configuration - * + * * `$this->cookie((array) $options)` - * + * * @return mixed */ public function cookie($options = null) { diff --git a/lib/Cake/Test/Case/Network/CakeResponseTest.php b/lib/Cake/Test/Case/Network/CakeResponseTest.php index 91be19de8..9f601b1b4 100644 --- a/lib/Cake/Test/Case/Network/CakeResponseTest.php +++ b/lib/Cake/Test/Case/Network/CakeResponseTest.php @@ -118,8 +118,9 @@ class CakeResponseTest extends CakeTestCase { $this->assertEquals('application/vnd.wap.xhtml+xml', $response->type('xhtml-mobile')); $this->assertEquals('text/csv', $response->type('csv')); - $response->type(array('keynote' => 'application/keynote')); + $response->type(array('keynote' => 'application/keynote', 'bat' => 'application/bat')); $this->assertEquals('application/keynote', $response->type('keynote')); + $this->assertEquals('application/bat', $response->type('bat')); $this->assertFalse($response->type('wackytype')); } @@ -925,7 +926,7 @@ class CakeResponseTest extends CakeTestCase { /** * Test cookie setting - * + * * @return void */ public function testCookieSettings() { From b57489f3f1d08f600e947c0e535c32bcd2d7f956 Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 2 May 2012 20:54:50 -0400 Subject: [PATCH 43/85] Remove duplicate template. Also remove double creating the home.ctp file. Fixes #2842 --- lib/Cake/Console/Command/Task/ProjectTask.php | 20 ---- .../Console/Templates/default/views/home.ctp | 113 ------------------ 2 files changed, 133 deletions(-) delete mode 100644 lib/Cake/Console/Templates/default/views/home.ctp diff --git a/lib/Cake/Console/Command/Task/ProjectTask.php b/lib/Cake/Console/Command/Task/ProjectTask.php index 92135906a..03386dc99 100644 --- a/lib/Cake/Console/Command/Task/ProjectTask.php +++ b/lib/Cake/Console/Command/Task/ProjectTask.php @@ -70,12 +70,6 @@ class ProjectTask extends AppShell { $success = true; if ($this->bake($project)) { $path = Folder::slashTerm($project); - if ($this->createHome($path)) { - $this->out(__d('cake_console', ' * Welcome page created')); - } else { - $this->err(__d('cake_console', 'The Welcome page was NOT created')); - $success = false; - } if ($this->securitySalt($path) === true) { $this->out(__d('cake_console', ' * Random hash key created for \'Security.salt\'')); @@ -220,20 +214,6 @@ class ProjectTask extends AppShell { } } -/** - * Writes a file with a default home page to the project. - * - * @param string $dir Path to project - * @return boolean Success - */ - public function createHome($dir) { - $app = basename($dir); - $path = $dir . 'View' . DS . 'Pages' . DS; - $source = CAKE . 'Console' . DS . 'Templates' . DS . 'default' . DS . 'views' . DS . 'home.ctp'; - include $source; - return $this->createFile($path . 'home.ctp', $output); - } - /** * Generates the correct path to the CakePHP libs that are generating the project * and points app/console/cake.php to the right place diff --git a/lib/Cake/Console/Templates/default/views/home.ctp b/lib/Cake/Console/Templates/default/views/home.ctp deleted file mode 100644 index 424051981..000000000 --- a/lib/Cake/Console/Templates/default/views/home.ctp +++ /dev/null @@ -1,113 +0,0 @@ - -

For updates and important announcements, visit http://cakefest.org

-\n"; -$output .= "

Sweet, \"" . Inflector::humanize($app) . "\" got Baked by CakePHP!

\n"; -$output .=" - 0): - Debugger::checkSecurityKeys(); -endif; -?> -

-=')): - echo ''; - echo __d('cake_dev', 'Your version of PHP is 5.2.8 or higher.'); - echo ''; - else: - echo ''; - echo __d('cake_dev', 'Your version of PHP is too low. You need PHP 5.2.8 or higher to use CakePHP.'); - echo ''; - endif; -?> -

-

-'; - echo __d('cake_dev', 'Your tmp directory is writable.'); - echo ''; - else: - echo ''; - echo __d('cake_dev', 'Your tmp directory is NOT writable.'); - echo ''; - endif; -?> -

-

-'; - echo __d('cake_dev', 'The %s is being used for core caching. To change the config edit APP/Config/core.php ', ''. \$settings['engine'] . 'Engine'); - echo ''; - else: - echo ''; - echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/Config/core.php'); - echo ''; - endif; -?> -

-

-'; - echo __d('cake_dev', 'Your database configuration file is present.'); - \$filePresent = true; - echo ''; - else: - echo ''; - echo __d('cake_dev', 'Your database configuration file is NOT present.'); - echo '
'; - echo __d('cake_dev', 'Rename APP/Config/database.php.default to APP/Config/database.php'); - echo '
'; - endif; -?> -

- -

- isConnected()): - echo ''; - echo __d('cake_dev', 'Cake is able to connect to the database.'); - echo ''; - else: - echo ''; - echo __d('cake_dev', 'Cake is NOT able to connect to the database.'); - echo ''; - endif; - ?> -

- -'; - __d('cake_dev', 'PCRE has not been compiled with Unicode support.'); - echo '
'; - __d('cake_dev', 'Recompile PCRE with Unicode support by adding --enable-unicode-properties when configuring'); - echo '

'; - } -?>\n"; -$output .= "

\n"; -$output .= "

\n"; -$output .= "', APP . 'View' . DS . 'Layouts' . DS . 'default.ctp.
', APP . 'webroot' . DS . 'css');\n"; -$output .= "?>\n"; -$output .= "

\n"; -?> From 3a183849298e606475af8a606cb2c3a9c512ad8c Mon Sep 17 00:00:00 2001 From: Ceeram Date: Thu, 3 May 2012 09:55:52 +0200 Subject: [PATCH 44/85] fix failing testcase --- lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php b/lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php index 998e561a4..28d44b49b 100644 --- a/lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php +++ b/lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php @@ -93,7 +93,7 @@ class AssetDispatcherTest extends CakeTestCase { 'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS) )); $time = filemtime(App::themePath('TestTheme') . 'webroot' . DS . 'img' . DS . 'cake.power.gif'); - $time = new DateTime(date('Y-m-d H:i:s', $time), new DateTimeZone('UTC')); + $time = new DateTime('@' . $time); $response = $this->getMock('CakeResponse', array('send', 'checkNotModified')); $request = new CakeRequest('theme/test_theme/img/cake.power.gif'); From 73b0345ff4c2fc55339a19b204131daf27069b2e Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 3 May 2012 20:35:01 -0400 Subject: [PATCH 45/85] Fix issue with non-sequential array keys. Xml::fromArray() should not cause errors with non-sequential numeric array keys. Fixes #2580 --- lib/Cake/Test/Case/Utility/XmlTest.php | 37 ++++++++++++++++++++++++++ lib/Cake/Utility/Xml.php | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Utility/XmlTest.php b/lib/Cake/Test/Case/Utility/XmlTest.php index d1bf8d1b2..7eb68f823 100644 --- a/lib/Cake/Test/Case/Utility/XmlTest.php +++ b/lib/Cake/Test/Case/Utility/XmlTest.php @@ -322,6 +322,43 @@ class XmlTest extends CakeTestCase { $this->assertEquals(str_replace(array("\r", "\n"), '', $obj->asXML()), $xmlText); } +/** + * Test non-sequential keys in list types. + * + * @return void + */ + public function testFromArrayNonSequentialKeys() { + $xmlArray = array( + 'Event' => array( + array( + 'id' => '235', + 'Attribute' => array( + 0 => array( + 'id' => '9646', + ), + 2 => array( + 'id' => '9647', + ) + ) + ) + ) + ); + $obj = Xml::fromArray($xmlArray); + $expected = << + + 235 + + 9646 + + + 9647 + + +XML; + $this->assertXmlStringEqualsXmlString($expected, $obj->asXML()); + } + /** * data provider for fromArray() failures * diff --git a/lib/Cake/Utility/Xml.php b/lib/Cake/Utility/Xml.php index 70044471e..6b96f7f61 100644 --- a/lib/Cake/Utility/Xml.php +++ b/lib/Cake/Utility/Xml.php @@ -230,7 +230,7 @@ class Xml { if ($key[0] === '@') { throw new XmlException(__d('cake_dev', 'Invalid array')); } - if (array_keys($value) === range(0, count($value) - 1)) { // List + if (is_numeric(implode(array_keys($value), ''))) { // List foreach ($value as $item) { $itemData = compact('dom', 'node', 'key', 'format'); $itemData['value'] = $item; From 4ab6d37abb7f52637e2afd68f3344ad0cd72d436 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 3 May 2012 21:00:52 -0400 Subject: [PATCH 46/85] Update assertions. Use assertXmlStringEqualsXmlString() it gives better error reporting. Also update string concat into heredocs. --- lib/Cake/Test/Case/Utility/XmlTest.php | 239 +++++++++++++++++-------- 1 file changed, 168 insertions(+), 71 deletions(-) diff --git a/lib/Cake/Test/Case/Utility/XmlTest.php b/lib/Cake/Test/Case/Utility/XmlTest.php index 7eb68f823..cd1fc87b4 100644 --- a/lib/Cake/Test/Case/Utility/XmlTest.php +++ b/lib/Cake/Test/Case/Utility/XmlTest.php @@ -141,8 +141,14 @@ class XmlTest extends CakeTestCase { $obj = Xml::build($xml, array('return' => 'domdocument')); $this->assertEquals('tags', $obj->firstChild->nodeName); - $this->assertEquals(Xml::build($xml, array('return' => 'domdocument')), Xml::build(file_get_contents($xml), array('return' => 'domdocument'))); - $this->assertEquals(Xml::build($xml, array('return' => 'simplexml')), Xml::build($xml, 'simplexml')); + $this->assertEquals( + Xml::build($xml, array('return' => 'domdocument')), + Xml::build(file_get_contents($xml), array('return' => 'domdocument')) + ); + $this->assertEquals( + Xml::build($xml, array('return' => 'simplexml')), + Xml::build($xml, 'simplexml') + ); $xml = array('tag' => 'value'); $obj = Xml::build($xml); @@ -234,15 +240,33 @@ class XmlTest extends CakeTestCase { $this->assertTrue($obj instanceof SimpleXMLElement); $this->assertEquals('tags', $obj->getName()); $this->assertEquals(2, count($obj)); - $xmlText = '<' . '?xml version="1.0" encoding="UTF-8"?>'; - $this->assertEquals(str_replace(array("\r", "\n"), '', $obj->asXML()), $xmlText); + $xmlText = << + + + + +XML; + $this->assertXmlStringEqualsXmlString($xmlText, $obj->asXML()); $obj = Xml::fromArray($xml); $this->assertTrue($obj instanceof SimpleXMLElement); $this->assertEquals('tags', $obj->getName()); $this->assertEquals(2, count($obj)); - $xmlText = '<' . '?xml version="1.0" encoding="UTF-8"?>1defect2enhancement'; - $this->assertEquals(str_replace(array("\r", "\n"), '', $obj->asXML()), $xmlText); + $xmlText = << + + + 1 + defect + + + 2 + enhancement + + +XML; + $this->assertXmlStringEqualsXmlString($xmlText, $obj->asXML()); $xml = array( 'tags' => array( @@ -286,8 +310,18 @@ class XmlTest extends CakeTestCase { ) ); $obj = Xml::fromArray($xml, 'tags'); - $xmlText = '<' . '?xml version="1.0" encoding="UTF-8"?>defectenhancement'; - $this->assertEquals(str_replace(array("\r", "\n"), '', $obj->asXML()), $xmlText); + $xmlText = << + + + defect + + + enhancement + + +XML; + $this->assertXmlStringEqualsXmlString($xmlText, $obj->asXML()); $xml = array( 'tags' => array( @@ -306,8 +340,11 @@ class XmlTest extends CakeTestCase { ) ); $obj = Xml::fromArray($xml, 'tags'); - $xmlText = '<' . '?xml version="1.0" encoding="UTF-8"?>All tagsTag 1defectenhancement'; - $this->assertEquals(str_replace(array("\r", "\n"), '', $obj->asXML()), $xmlText); + $xmlText = << +All tagsTag 1defectenhancement +XML; + $this->assertXmlStringEqualsXmlString($xmlText, $obj->asXML()); $xml = array( 'tags' => array( @@ -319,7 +356,7 @@ class XmlTest extends CakeTestCase { ); $obj = Xml::fromArray($xml, 'attributes'); $xmlText = '<' . '?xml version="1.0" encoding="UTF-8"?>defect'; - $this->assertEquals(str_replace(array("\r", "\n"), '', $obj->asXML()), $xmlText); + $this->assertXmlStringEqualsXmlString($xmlText, $obj->asXML()); } /** @@ -514,9 +551,11 @@ XML; $this->assertEquals($expected, Xml::toArray(Xml::fromArray($array, 'attributes'))); $this->assertEquals($expected, Xml::toArray(Xml::fromArray($array, array('format' => 'attributes', 'return' => 'domdocument')))); - $xml = ''; - $xml .= 'defect'; - $xml .= ''; + $xml = << +defect + +XML; $obj = Xml::build($xml); $expected = array( @@ -529,11 +568,13 @@ XML; ); $this->assertEquals($expected, Xml::toArray($obj)); - $xml = ''; - $xml .= '
ApplesBananas
'; - $xml .= 'CakePHPMIT
'; - $xml .= 'The book is on the table.
'; - $xml .= '
'; + $xml = << +
ApplesBananas
+ CakePHPMIT
+ The book is on the table.
+ +XML; $obj = Xml::build($xml); $expected = array( @@ -547,10 +588,12 @@ XML; ); $this->assertEquals($expected, Xml::toArray($obj)); - $xml = ''; - $xml .= 'defect'; - $xml .= '1'; - $xml .= ''; + $xml = << +defect +1 + +XML; $obj = Xml::build($xml); $expected = array( @@ -614,18 +657,27 @@ XML; ) ); $rssAsSimpleXML = Xml::fromArray($rss); - $xmlText = '<' . '?xml version="1.0" encoding="UTF-8"?>'; - $xmlText .= ''; - $xmlText .= ''; - $xmlText .= ''; - $xmlText .= 'The Bakery: '; - $xmlText .= 'http://bakery.cakephp.org/'; - $xmlText .= 'Recent Articles at The Bakery.'; - $xmlText .= 'Sun, 12 Sep 2010 04:18:26 -0500'; - $xmlText .= 'CakePHP 1.3.4 releasedhttp://bakery.cakephp.org/articles/view/cakephp-1-3-4-released'; - $xmlText .= 'Wizard Component 1.2 Tutorialhttp://bakery.cakephp.org/articles/view/wizard-component-1-2-tutorial'; - $xmlText .= ''; - $this->assertEquals(str_replace(array("\r", "\n"), '', $rssAsSimpleXML->asXML()), $xmlText); + $xmlText = << + + + + The Bakery: + http://bakery.cakephp.org/ + Recent Articles at The Bakery. + Sun, 12 Sep 2010 04:18:26 -0500 + + CakePHP 1.3.4 released + http://bakery.cakephp.org/articles/view/cakephp-1-3-4-released + + + Wizard Component 1.2 Tutorial + http://bakery.cakephp.org/articles/view/wizard-component-1-2-tutorial + + + +XML; + $this->assertXmlStringEqualsXmlString($xmlText, $rssAsSimpleXML->asXML()); } /** @@ -667,7 +719,27 @@ XML; ); $this->assertSame(Xml::toArray($xml), $expected); - $xmlText = '1testing'; + $xmlText = << + + + + + + + + 1 + + + testing + + + + + + + +XML; $xml = Xml::build($xmlText); $expected = array( 'methodResponse' => array( @@ -690,7 +762,7 @@ XML; $this->assertSame(Xml::toArray($xml), $expected); $xml = Xml::fromArray($expected, 'tags'); - $this->assertEquals(str_replace(array("\r", "\n"), '', $xml->asXML()), $xmlText); + $this->assertXmlStringEqualsXmlString($xmlText, $xml->asXML()); } /** @@ -738,12 +810,15 @@ XML; ) ); $xmlRequest = Xml::fromArray($xml, array('encoding' => null)); - $xmlText = '<' . '?xml version="1.0"?>'; - $xmlText .= ''; - $xmlText .= ''; - $xmlText .= 'IBM'; - $xmlText .= ''; - $this->assertEquals(str_replace(array("\r", "\n"), '', $xmlRequest->asXML()), $xmlText); + $xmlText = << + + + IBM + + +XML; + $this->assertXmlStringEqualsXmlString($xmlText, $xmlRequest->asXML()); } /** @@ -752,7 +827,16 @@ XML; * @return void */ public function testNamespace() { - $xmlResponse = Xml::build('goodbadTag without ns'); + $xml = << + + good + bad + + Tag without ns + +XML; + $xmlResponse = Xml::build($xml); $expected = array( 'root' => array( 'ns:tag' => array( @@ -812,9 +896,17 @@ XML; ) ) ); - $expected = '<' . '?xml version="1.0" encoding="UTF-8"?>item 1item 2'; + $expected = << + + + item 1 + item 2 + + +XML; $xmlResponse = Xml::fromArray($xml); - $this->assertEquals(str_replace(array("\r", "\n"), '', $xmlResponse->asXML()), $expected); + $this->assertXmlStringEqualsXmlString($expected, $xmlResponse->asXML()); $xml = array( 'root' => array( @@ -825,7 +917,7 @@ XML; ); $expected = '<' . '?xml version="1.0" encoding="UTF-8"?>'; $xmlResponse = Xml::fromArray($xml); - $this->assertEquals(str_replace(array("\r", "\n"), '', $xmlResponse->asXML()), $expected); + $this->assertXmlStringEqualsXmlString($expected, $xmlResponse->asXML()); $xml = array( 'root' => array( @@ -834,7 +926,7 @@ XML; ); $expected = '<' . '?xml version="1.0" encoding="UTF-8"?>'; $xmlResponse = Xml::fromArray($xml); - $this->assertEquals(str_replace(array("\r", "\n"), '', $xmlResponse->asXML()), $expected); + $this->assertXmlStringEqualsXmlString($expected, $xmlResponse->asXML()); $xml = array( 'root' => array( @@ -843,7 +935,7 @@ XML; ); $expected = '<' . '?xml version="1.0" encoding="UTF-8"?>'; $xmlResponse = Xml::fromArray($xml); - $this->assertEquals(str_replace(array("\r", "\n"), '', $xmlResponse->asXML()), $expected); + $this->assertXmlStringEqualsXmlString($expected, $xmlResponse->asXML()); } /** @@ -893,34 +985,38 @@ XML; $data = $user->read(null, 1); $obj = Xml::build(compact('data')); - $expected = '<' . '?xml version="1.0" encoding="UTF-8"?>'; - $expected .= '1mariano5f4dcc3b5aa765d61d8327deb882cf99'; - $expected .= '2007-03-17 01:16:232007-03-17 01:18:31'; - $expected .= '
11First ArticleFirst Article Body'; - $expected .= 'Y2007-03-18 10:39:232007-03-18 10:41:31
'; - $expected .= '
31Third ArticleThird Article Body'; - $expected .= 'Y2007-03-18 10:43:232007-03-18 10:45:31
'; - $expected .= '
'; - $this->assertEquals($expected, str_replace(array("\r", "\n"), '', $obj->asXML())); + $expected = << +1mariano5f4dcc3b5aa765d61d8327deb882cf99 +2007-03-17 01:16:232007-03-17 01:18:31 +
11First ArticleFirst Article Body +Y2007-03-18 10:39:232007-03-18 10:41:31
+
31Third ArticleThird Article Body +Y2007-03-18 10:43:232007-03-18 10:45:31
+
+XML; + $this->assertXmlStringEqualsXmlString($expected, $obj->asXML()); //multiple model results - without a records key it would fatal error $data = $user->find('all', array('limit' => 2)); $data = array('records' => $data); $obj = Xml::build(compact('data')); - $expected = '<' . '?xml version="1.0" encoding="UTF-8"?>'; - $expected .= ''; - $expected .= '1mariano5f4dcc3b5aa765d61d8327deb882cf99'; - $expected .= '2007-03-17 01:16:232007-03-17 01:18:31'; - $expected .= '
11First ArticleFirst Article Body'; - $expected .= 'Y2007-03-18 10:39:232007-03-18 10:41:31
'; - $expected .= '
31Third ArticleThird Article Body'; - $expected .= 'Y2007-03-18 10:43:232007-03-18 10:45:31
'; - $expected .= '
2nate5f4dcc3b5aa765d61d8327deb882cf99'; - $expected .= '2007-03-17 01:18:232007-03-17 01:20:31
'; - $expected .= ''; - $expected .= ''; + $expected = << + +1mariano5f4dcc3b5aa765d61d8327deb882cf99 +2007-03-17 01:16:232007-03-17 01:18:31 +
11First ArticleFirst Article Body +Y2007-03-18 10:39:232007-03-18 10:41:31
+
31Third ArticleThird Article Body +Y2007-03-18 10:43:232007-03-18 10:45:31
+
2nate5f4dcc3b5aa765d61d8327deb882cf99 +2007-03-17 01:18:232007-03-17 01:20:31
+ + +XML; $result = $obj->asXML(); - $this->assertEquals($expected, str_replace(array("\r", "\n"), '', $obj->asXML())); + $this->assertXmlStringEqualsXmlString($expected, $obj->asXML()); } /** @@ -938,4 +1034,5 @@ XML; $result = $obj->asXml(); $this->assertContains('mark & mark', $result); } + } From ef9c5bc004c8575500de088b949a452b669a5591 Mon Sep 17 00:00:00 2001 From: AD7six Date: Fri, 4 May 2012 20:13:44 +0200 Subject: [PATCH 47/85] ClassRegistry::getDataSource doesn't exist --- lib/Cake/TestSuite/Fixture/CakeFixtureManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php b/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php index 7116632fa..13a8f3018 100644 --- a/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php +++ b/lib/Cake/TestSuite/Fixture/CakeFixtureManager.php @@ -158,7 +158,7 @@ class CakeFixtureManager { protected function _setupTable($fixture, $db = null, $drop = true) { if (!$db) { if (!empty($fixture->useDbConfig)) { - $db = ClassRegistry::getDataSource($fixture->useDbConfig); + $db = ConnectionManager::getDataSource($fixture->useDbConfig); } else { $db = $this->_db; } From efe836480bff948897edb77616a0f063bfb0b4c6 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 5 May 2012 12:54:41 -0400 Subject: [PATCH 48/85] Fix error when rendering fatal error page. If you included parse errors in AppController, the fatal error page would not correctly display. --- lib/Cake/Error/ErrorHandler.php | 5 ++++- lib/Cake/Error/ExceptionRenderer.php | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Error/ErrorHandler.php b/lib/Cake/Error/ErrorHandler.php index 0a25b1c27..99b589655 100644 --- a/lib/Cake/Error/ErrorHandler.php +++ b/lib/Cake/Error/ErrorHandler.php @@ -204,7 +204,10 @@ class ErrorHandler { return false; } - ob_clean(); + if (ob_get_level()) { + ob_clean(); + } + if (Configure::read('debug')) { call_user_func($exceptionHandler, new FatalErrorException($description, 500, $file, $line)); } else { diff --git a/lib/Cake/Error/ExceptionRenderer.php b/lib/Cake/Error/ExceptionRenderer.php index adb6d4cce..0a0aa28ed 100644 --- a/lib/Cake/Error/ExceptionRenderer.php +++ b/lib/Cake/Error/ExceptionRenderer.php @@ -147,8 +147,12 @@ class ExceptionRenderer { } $response = new CakeResponse(array('charset' => Configure::read('App.encoding'))); try { - $controller = new CakeErrorController($request, $response); + if (class_exists('AppController')) { + $controller = new CakeErrorController($request, $response); + } } catch (Exception $e) { + } + if (empty($controller)) { $controller = new Controller($request, $response); $controller->viewPath = 'Errors'; } From 7416c530a205cce38f070d89a12f1434eab90cbf Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 5 May 2012 13:25:36 -0400 Subject: [PATCH 49/85] Fix missing view variables. When rendering a exception caught when rendering an exception, some view variables were missing causing fatal errors. Fixes #2843 --- lib/Cake/Error/ExceptionRenderer.php | 5 +++++ lib/Cake/Test/Case/Error/ExceptionRendererTest.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Error/ExceptionRenderer.php b/lib/Cake/Error/ExceptionRenderer.php index 0a0aa28ed..d471b3123 100644 --- a/lib/Cake/Error/ExceptionRenderer.php +++ b/lib/Cake/Error/ExceptionRenderer.php @@ -268,6 +268,11 @@ class ExceptionRenderer { $this->controller->afterFilter(); $this->controller->response->send(); } catch (Exception $e) { + $this->controller->set(array( + 'error' => $e, + 'name' => $e->getMessage(), + 'code' => $e->getCode(), + )); $this->_outputMessageSafe('error500'); } } diff --git a/lib/Cake/Test/Case/Error/ExceptionRendererTest.php b/lib/Cake/Test/Case/Error/ExceptionRendererTest.php index 5324ad246..4e236aefe 100644 --- a/lib/Cake/Test/Case/Error/ExceptionRendererTest.php +++ b/lib/Cake/Test/Case/Error/ExceptionRendererTest.php @@ -639,7 +639,7 @@ class ExceptionRendererTest extends CakeTestCase { ->with('missingHelper') ->will($this->throwException($exception)); - $ExceptionRenderer->controller->expects($this->at(4)) + $ExceptionRenderer->controller->expects($this->at(5)) ->method('render') ->with('error500') ->will($this->returnValue(true)); @@ -671,7 +671,7 @@ class ExceptionRendererTest extends CakeTestCase { ->with('error400') ->will($this->throwException($exception)); - $ExceptionRenderer->controller->expects($this->at(3)) + $ExceptionRenderer->controller->expects($this->at(4)) ->method('render') ->with('error500') ->will($this->returnValue(true)); From d180f6c3e5f2af175a406c521bd7540d6f0cf7df Mon Sep 17 00:00:00 2001 From: Kim Egede Jakobsen Date: Sun, 6 May 2012 01:21:20 +0200 Subject: [PATCH 50/85] Changed some of the doc-block links. !But think there is a mistake somewhere with the links! Camel-case or lowercase? doc block content -> working link (Model.php) \#useTable -> \#usetable \#displayField -> \#displayfield \#cacheQueries -> \#cachequeries \#sortByKey -> \#sortByKey (equals - basic.php) --- lib/Cake/Model/Model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 54ab14d29..193f710de 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -59,7 +59,7 @@ class Model extends Object implements CakeEventListener { * Custom database table name, or null/false if no table association is desired. * * @var string - * @link http://book.cakephp.org/2.0/en/models/model-attributes.html#useTable + * @link http://book.cakephp.org/2.0/en/models/model-attributes.html#usetable */ public $useTable = null; @@ -69,7 +69,7 @@ class Model extends Object implements CakeEventListener { * This field is also used in `find('list')` when called with no extra parameters in the fields list * * @var string - * @link http://book.cakephp.org/2.0/en/models/model-attributes.html#displayField + * @link http://book.cakephp.org/2.0/en/models/model-attributes.html#displayfield */ public $displayField = null; @@ -261,7 +261,7 @@ class Model extends Object implements CakeEventListener { * caching only, the results are not stored beyond the current request. * * @var boolean - * @link http://book.cakephp.org/2.0/en/models/model-attributes.html#cacheQueries + * @link http://book.cakephp.org/2.0/en/models/model-attributes.html#cachequeries */ public $cacheQueries = false; From fe0c7d348a8d4cb0ec6ce2bf083d6b9f9c6aa928 Mon Sep 17 00:00:00 2001 From: Ceeram Date: Wed, 11 Apr 2012 11:32:54 +0200 Subject: [PATCH 51/85] add strict parameter to inList() and multiple() --- lib/Cake/Test/Case/Utility/ValidationTest.php | 4 ++++ lib/Cake/Utility/Validation.php | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/Cake/Test/Case/Utility/ValidationTest.php b/lib/Cake/Test/Case/Utility/ValidationTest.php index 34e1e9b44..9bd7af111 100644 --- a/lib/Cake/Test/Case/Utility/ValidationTest.php +++ b/lib/Cake/Test/Case/Utility/ValidationTest.php @@ -1822,6 +1822,8 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::inList('three', array('one', 'two'))); $this->assertFalse(Validation::inList('1one', array(0, 1, 2, 3))); $this->assertFalse(Validation::inList('one', array(0, 1, 2, 3))); + $this->assertFalse(Validation::inList('2', array(1, 2, 3))); + $this->assertTrue(Validation::inList('2', array(1, 2, 3), false)); } /** @@ -1932,6 +1934,8 @@ class ValidationTest extends CakeTestCase { $this->assertFalse(Validation::multiple(array('foo', 'bar', 'baz', 'squirrel'), array('min' => 10))); $this->assertTrue(Validation::multiple(array(0, 5, 9), array('in' => range(0, 10), 'max' => 5))); + $this->assertFalse(Validation::multiple(array('0', '5', '9'), array('in' => range(0, 10), 'max' => 5))); + $this->assertTrue(Validation::multiple(array('0', '5', '9'), array('in' => range(0, 10), 'max' => 5), false)); $this->assertFalse(Validation::multiple(array(0, 5, 9, 8, 6, 2, 1), array('in' => range(0, 10), 'max' => 5))); $this->assertFalse(Validation::multiple(array(0, 5, 9, 8, 11), array('in' => range(0, 10), 'max' => 5))); diff --git a/lib/Cake/Utility/Validation.php b/lib/Cake/Utility/Validation.php index 29fecadfc..66300448e 100644 --- a/lib/Cake/Utility/Validation.php +++ b/lib/Cake/Utility/Validation.php @@ -527,9 +527,10 @@ class Validation { * * @param mixed $check Value to check * @param mixed $options Options for the check. + * @param boolean $strict Defaults to true, set to false to disable strict type check * @return boolean Success */ - public static function multiple($check, $options = array()) { + public static function multiple($check, $options = array(), $strict = true) { $defaults = array('in' => null, 'max' => null, 'min' => null); $options = array_merge($defaults, $options); $check = array_filter((array)$check); @@ -544,7 +545,7 @@ class Validation { } if ($options['in'] && is_array($options['in'])) { foreach ($check as $val) { - if (!in_array($val, $options['in'], true)) { + if (!in_array($val, $options['in'], $strict)) { return false; } } @@ -716,10 +717,11 @@ class Validation { * * @param string $check Value to check * @param array $list List to check against + * @param boolean $strict Defaults to true, set to false to disable strict type check * @return boolean Success */ - public static function inList($check, $list) { - return in_array($check, $list, true); + public static function inList($check, $list, $strict = true) { + return in_array($check, $list, $strict); } /** From db20600d026958a089b591b6be3755ff93510919 Mon Sep 17 00:00:00 2001 From: Norio Suzuki Date: Mon, 7 May 2012 22:34:14 +0000 Subject: [PATCH 52/85] Fix SMTP Transparency (RFC5321 4.5.2. first line period) --- lib/Cake/Network/Email/CakeEmail.php | 3 --- lib/Cake/Network/Email/SmtpTransport.php | 11 ++++++++++- .../Test/Case/Network/Email/DebugTransportTest.php | 3 ++- .../Test/Case/Network/Email/SmtpTransportTest.php | 3 ++- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/lib/Cake/Network/Email/CakeEmail.php b/lib/Cake/Network/Email/CakeEmail.php index 7f6257da5..acd212da1 100644 --- a/lib/Cake/Network/Email/CakeEmail.php +++ b/lib/Cake/Network/Email/CakeEmail.php @@ -1238,9 +1238,6 @@ class CakeEmail { $formatted[] = ''; continue; } - if ($line[0] === '.') { - $line = '.' . $line; - } if (!preg_match('/\<[a-z]/i', $line)) { $formatted = array_merge($formatted, explode("\n", wordwrap($line, self::LINE_LENGTH_SHOULD, "\n"))); continue; diff --git a/lib/Cake/Network/Email/SmtpTransport.php b/lib/Cake/Network/Email/SmtpTransport.php index e89b21557..cf5a13296 100644 --- a/lib/Cake/Network/Email/SmtpTransport.php +++ b/lib/Cake/Network/Email/SmtpTransport.php @@ -168,7 +168,16 @@ class SmtpTransport extends AbstractTransport { $headers = $this->_cakeEmail->getHeaders(array('from', 'sender', 'replyTo', 'readReceipt', 'returnPath', 'to', 'cc', 'subject')); $headers = $this->_headersToString($headers); - $message = implode("\r\n", $this->_cakeEmail->message()); + $lines = $this->_cakeEmail->message(); + $messages = array(); + foreach ($lines as $line) { + if ((! empty($line)) && ($line[0] === '.')) { + $messages[] = '.' . $line; + } else { + $messages[] = $line; + } + } + $message = implode("\r\n", $messages); $this->_smtpSend($headers . "\r\n\r\n" . $message . "\r\n\r\n\r\n."); $this->_content = array('headers' => $headers, 'message' => $message); } diff --git a/lib/Cake/Test/Case/Network/Email/DebugTransportTest.php b/lib/Cake/Test/Case/Network/Email/DebugTransportTest.php index e66c05373..11512fd66 100644 --- a/lib/Cake/Test/Case/Network/Email/DebugTransportTest.php +++ b/lib/Cake/Test/Case/Network/Email/DebugTransportTest.php @@ -51,7 +51,7 @@ class DebugTransportTest extends CakeTestCase { $email->subject('Testing Message'); $date = date(DATE_RFC2822); $email->setHeaders(array('X-Mailer' => DebugCakeEmail::EMAIL_CLIENT, 'Date' => $date)); - $email->expects($this->any())->method('message')->will($this->returnValue(array('First Line', 'Second Line', ''))); + $email->expects($this->any())->method('message')->will($this->returnValue(array('First Line', 'Second Line', '.Third Line', ''))); $headers = "From: CakePHP Test \r\n"; $headers .= "To: CakePHP \r\n"; @@ -66,6 +66,7 @@ class DebugTransportTest extends CakeTestCase { $data = "First Line\r\n"; $data .= "Second Line\r\n"; + $data .= ".Third Line\r\n"; // Not use 'RFC5321 4.5.2.Transparency' in DebugTransport. $result = $this->DebugTransport->send($email); diff --git a/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php b/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php index ebfb29263..0310e5320 100644 --- a/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php +++ b/lib/Cake/Test/Case/Network/Email/SmtpTransportTest.php @@ -221,7 +221,7 @@ class SmtpTransportTest extends CakeTestCase { $email->subject('Testing SMTP'); $date = date(DATE_RFC2822); $email->setHeaders(array('X-Mailer' => SmtpCakeEmail::EMAIL_CLIENT, 'Date' => $date)); - $email->expects($this->any())->method('message')->will($this->returnValue(array('First Line', 'Second Line', ''))); + $email->expects($this->any())->method('message')->will($this->returnValue(array('First Line', 'Second Line', '.Third Line', ''))); $data = "From: CakePHP Test \r\n"; $data .= "Return-Path: CakePHP Return \r\n"; @@ -237,6 +237,7 @@ class SmtpTransportTest extends CakeTestCase { $data .= "\r\n"; $data .= "First Line\r\n"; $data .= "Second Line\r\n"; + $data .= "..Third Line\r\n"; // RFC5321 4.5.2.Transparency $data .= "\r\n"; $data .= "\r\n\r\n.\r\n"; From 05bcc4fe58ff96aaa5175ebc5338844488fdc740 Mon Sep 17 00:00:00 2001 From: Norio Suzuki Date: Wed, 9 May 2012 00:16:17 +0900 Subject: [PATCH 53/85] Delete a space between ! and empty --- lib/Cake/Network/Email/SmtpTransport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Network/Email/SmtpTransport.php b/lib/Cake/Network/Email/SmtpTransport.php index cf5a13296..636e5a31b 100644 --- a/lib/Cake/Network/Email/SmtpTransport.php +++ b/lib/Cake/Network/Email/SmtpTransport.php @@ -171,7 +171,7 @@ class SmtpTransport extends AbstractTransport { $lines = $this->_cakeEmail->message(); $messages = array(); foreach ($lines as $line) { - if ((! empty($line)) && ($line[0] === '.')) { + if ((!empty($line)) && ($line[0] === '.')) { $messages[] = '.' . $line; } else { $messages[] = $line; From d1f522e53a0ce1585e15a7a271d03180964b6abe Mon Sep 17 00:00:00 2001 From: AD7six Date: Mon, 30 Apr 2012 16:44:46 +0200 Subject: [PATCH 54/85] attempt to get baked code output closer to phpcs standard --- lib/Cake/Console/Templates/default/classes/fixture.ctp | 7 +++++-- lib/Cake/Console/Templates/default/classes/model.ctp | 6 +++++- lib/Cake/Console/Templates/default/classes/test.ctp | 7 ++++++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/lib/Cake/Console/Templates/default/classes/fixture.ctp b/lib/Cake/Console/Templates/default/classes/fixture.ctp index 48f6c7834..2bec6a549 100644 --- a/lib/Cake/Console/Templates/default/classes/fixture.ctp +++ b/lib/Cake/Console/Templates/default/classes/fixture.ctp @@ -25,6 +25,7 @@ * */ class Fixture extends CakeTestFixture { + /** * Table name @@ -32,6 +33,7 @@ class Fixture extends CakeTestFixture { * @var string */ public $table = ''; + /** @@ -40,8 +42,8 @@ class Fixture extends CakeTestFixture { * @var array */ public $import = ; - + /** * Fields @@ -49,8 +51,8 @@ class Fixture extends CakeTestFixture { * @var array */ public $fields = ; - + /** * Records @@ -58,5 +60,6 @@ class Fixture extends CakeTestFixture { * @var array */ public $records = ; + } diff --git a/lib/Cake/Console/Templates/default/classes/model.ctp b/lib/Cake/Console/Templates/default/classes/model.ctp index 3634b802f..265aae84e 100644 --- a/lib/Cake/Console/Templates/default/classes/model.ctp +++ b/lib/Cake/Console/Templates/default/classes/model.ctp @@ -36,6 +36,7 @@ foreach (array('hasOne', 'belongsTo', 'hasMany', 'hasAndBelongsToMany') as $asso ?> */ class extends AppModel { + /** * Use database config @@ -43,11 +44,12 @@ class extends AppModel { * @var string */ public $useDbConfig = ''; + /** @@ -56,6 +58,7 @@ if ($primaryKey !== 'id'): ?> * @var string */ public $primaryKey = ''; + /** @@ -64,6 +67,7 @@ if ($displayField): ?> * @var string */ public $displayField = ''; + ', ''); * */ class Test extends { + /** * Auto render * @@ -55,13 +56,16 @@ class Test extends { * */ class Test extends CakeTestCase { + /** * Fixtures * * @var array */ - public $fixtures = array(''); + public $fixtures = array( + '' + ); /** @@ -96,5 +100,6 @@ class Test extends CakeTestCase { public function test() { } + } From 0c4613fdd217a48faebe23085839d01b8c47cd0a Mon Sep 17 00:00:00 2001 From: AD7six Date: Tue, 1 May 2012 23:39:35 +0200 Subject: [PATCH 55/85] prevent NULL in fixture files --- lib/Cake/Model/CakeSchema.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Cake/Model/CakeSchema.php b/lib/Cake/Model/CakeSchema.php index b9ae0ad0d..74b426e40 100644 --- a/lib/Cake/Model/CakeSchema.php +++ b/lib/Cake/Model/CakeSchema.php @@ -577,6 +577,9 @@ class CakeSchema extends Object { $vals[] = "'{$key}' => array('" . implode("', '", $val) . "')"; } elseif (!is_numeric($key)) { $val = var_export($val, true); + if ($val === 'NULL') { + $val = 'null'; + } $vals[] = "'{$key}' => {$val}"; } } From 5ef2a0100b5249354c254fb9874940b8886585e2 Mon Sep 17 00:00:00 2001 From: AD7six Date: Wed, 2 May 2012 00:17:07 +0200 Subject: [PATCH 56/85] code standard fix the baked test must have a blank line inbetwen the last function and the end of the class --- lib/Cake/Console/Templates/default/classes/test.ctp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Cake/Console/Templates/default/classes/test.ctp b/lib/Cake/Console/Templates/default/classes/test.ctp index bc41d3978..b7c13f98d 100644 --- a/lib/Cake/Console/Templates/default/classes/test.ctp +++ b/lib/Cake/Console/Templates/default/classes/test.ctp @@ -48,6 +48,7 @@ class Test extends { public function redirect($url, $status = null, $exit = true) { $this->redirectUrl = $url; } + } From 3a5e00fa53f05b52ebb588800ddcf0c9a8d2d9ef Mon Sep 17 00:00:00 2001 From: AD7six Date: Wed, 9 May 2012 16:08:50 +0200 Subject: [PATCH 57/85] var_export dumps null as NULL correct for that so code standards are met with the results --- lib/Cake/Console/Command/Task/FixtureTask.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Cake/Console/Command/Task/FixtureTask.php b/lib/Cake/Console/Command/Task/FixtureTask.php index c4bf93d62..92e5154c6 100644 --- a/lib/Cake/Console/Command/Task/FixtureTask.php +++ b/lib/Cake/Console/Command/Task/FixtureTask.php @@ -362,6 +362,9 @@ class FixtureTask extends BakeTask { $values = array(); foreach ($record as $field => $value) { $val = var_export($value, true); + if ($val === 'NULL') { + $val = 'null'; + } $values[] = "\t\t\t'$field' => $val"; } $out .= "\t\tarray(\n"; From 8060dd57d3283e815ee78cfea5fd3c31215f375d Mon Sep 17 00:00:00 2001 From: AD7six Date: Wed, 9 May 2012 16:29:06 +0200 Subject: [PATCH 58/85] don't dump indexes all on the same line --- lib/Cake/Model/CakeSchema.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Model/CakeSchema.php b/lib/Cake/Model/CakeSchema.php index 74b426e40..35698a347 100644 --- a/lib/Cake/Model/CakeSchema.php +++ b/lib/Cake/Model/CakeSchema.php @@ -414,12 +414,12 @@ class CakeSchema extends Object { unset($value['type']); $col .= join(', ', $this->_values($value)); } elseif ($field == 'indexes') { - $col = "\t\t'indexes' => array("; + $col = "\t\t'indexes' => array(\n\t\t\t"; $props = array(); foreach ((array)$value as $key => $index) { $props[] = "'{$key}' => array(" . join(', ', $this->_values($index)) . ")"; } - $col .= join(', ', $props); + $col .= join(",\n\t\t\t", $props) . "\n\t\t"; } elseif ($field == 'tableParameters') { $col = "\t\t'tableParameters' => array("; $props = array(); From 5b507636c79657043b63807dfa19b811fe7051ca Mon Sep 17 00:00:00 2001 From: AD7six Date: Thu, 10 May 2012 00:28:02 +0200 Subject: [PATCH 59/85] baked controller code generates no errors --- .../default/actions/controller_actions.ctp | 6 +- .../Templates/default/classes/controller.ctp | 56 +++++++++---------- 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/lib/Cake/Console/Templates/default/actions/controller_actions.ctp b/lib/Cake/Console/Templates/default/actions/controller_actions.ctp index c0921c2c4..e34c382d5 100644 --- a/lib/Cake/Console/Templates/default/actions/controller_actions.ctp +++ b/lib/Cake/Console/Templates/default/actions/controller_actions.ctp @@ -31,6 +31,7 @@ /** * view method * + * @throws NotFoundException * @param string $id * @return void */ @@ -85,6 +86,7 @@ /** * edit method * + * @throws NotFoundException * @param string $id * @return void */ @@ -129,6 +131,8 @@ /** * delete method * + * @throws MethodNotAllowedException + * @throws NotFoundException * @param string $id * @return void */ @@ -154,4 +158,4 @@ $this->flash(__(' was not deleted'), array('action' => 'index')); $this->redirect(array('action' => 'index')); - } \ No newline at end of file + } diff --git a/lib/Cake/Console/Templates/default/classes/controller.ctp b/lib/Cake/Console/Templates/default/classes/controller.ctp index 741e06b00..6e27d0d19 100644 --- a/lib/Cake/Console/Templates/default/classes/controller.ctp +++ b/lib/Cake/Console/Templates/default/classes/controller.ctp @@ -46,36 +46,36 @@ class Controller extends App * @var mixed */ public $scaffold; - - - } From 39a53fe0e2713ced77cc85cff692430d95710f36 Mon Sep 17 00:00:00 2001 From: AD7six Date: Thu, 10 May 2012 00:35:51 +0200 Subject: [PATCH 60/85] updating model bake tempalte to meet code standards --- .../Console/Templates/default/classes/model.ctp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/Cake/Console/Templates/default/classes/model.ctp b/lib/Cake/Console/Templates/default/classes/model.ctp index 265aae84e..f7895da2b 100644 --- a/lib/Cake/Console/Templates/default/classes/model.ctp +++ b/lib/Cake/Console/Templates/default/classes/model.ctp @@ -45,12 +45,14 @@ class extends AppModel { */ public $useDbConfig = ''; - - /** * Primary key field @@ -60,6 +62,7 @@ if ($primaryKey !== 'id'): ?> public $primaryKey = ''; /** * Display field From 2c1b5d978dc7a5b4442e22977191ad8af2688751 Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 9 May 2012 22:52:03 -0400 Subject: [PATCH 61/85] Optimize the content type search. Move most commonly used types to the top of the list. This reduces the time spent iterating content types. --- lib/Cake/Network/CakeResponse.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Cake/Network/CakeResponse.php b/lib/Cake/Network/CakeResponse.php index 26681691f..aa760aa65 100644 --- a/lib/Cake/Network/CakeResponse.php +++ b/lib/Cake/Network/CakeResponse.php @@ -80,6 +80,10 @@ class CakeResponse { * @var array */ protected $_mimeTypes = array( + 'html' => array('text/html', '*/*'), + 'json' => 'application/json', + 'xml' => array('application/xml', 'text/xml'), + 'rss' => 'application/rss+xml', 'ai' => 'application/postscript', 'bcpio' => 'application/x-bcpio', 'bin' => 'application/octet-stream', @@ -206,7 +210,6 @@ class CakeResponse { 'f90' => 'text/plain', 'h' => 'text/plain', 'hh' => 'text/plain', - 'html' => array('text/html', '*/*'), 'htm' => array('text/html', '*/*'), 'ics' => 'text/calendar', 'm' => 'text/plain', @@ -218,7 +221,6 @@ class CakeResponse { 'tpl' => 'text/template', 'txt' => 'text/plain', 'text' => 'text/plain', - 'xml' => array('application/xml', 'text/xml'), 'avi' => 'video/x-msvideo', 'fli' => 'video/x-fli', 'mov' => 'video/quicktime', @@ -261,12 +263,10 @@ class CakeResponse { 'pdb' => 'chemical/x-pdb', 'xyz' => 'chemical/x-pdb', 'javascript' => 'text/javascript', - 'json' => 'application/json', 'form' => 'application/x-www-form-urlencoded', 'file' => 'multipart/form-data', 'xhtml' => array('application/xhtml+xml', 'application/xhtml', 'text/xhtml'), 'xhtml-mobile' => 'application/vnd.wap.xhtml+xml', - 'rss' => 'application/rss+xml', 'atom' => 'application/atom+xml', 'amf' => 'application/x-amf', 'wap' => array('text/vnd.wap.wml', 'text/vnd.wap.wmlscript', 'image/vnd.wap.wbmp'), From 08c3008874089c836e1361c556f95019f800aa9f Mon Sep 17 00:00:00 2001 From: AD7six Date: Thu, 10 May 2012 23:29:47 +0200 Subject: [PATCH 62/85] load app classes automatically for plugins Otherwise baking a test for a plugin model (example) fails --- lib/Cake/Console/Command/Task/TestTask.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Cake/Console/Command/Task/TestTask.php b/lib/Cake/Console/Command/Task/TestTask.php index 1a3d1a0d7..8e91d82cc 100644 --- a/lib/Cake/Console/Command/Task/TestTask.php +++ b/lib/Cake/Console/Command/Task/TestTask.php @@ -241,6 +241,12 @@ class TestTask extends BakeTask { */ public function isLoadableClass($package, $class) { App::uses($class, $package); + list($plugin, $ns) = pluginSplit($package); + if ($plugin) { + App::uses("{$plugin}AppController", $package); + App::uses("{$plugin}AppModel", $package); + App::uses("{$plugin}AppHelper", $package); + } return class_exists($class); } From 6aca8036f4d65ac6332c6eeccdeef3154fab71c8 Mon Sep 17 00:00:00 2001 From: AD7six Date: Thu, 10 May 2012 23:38:43 +0200 Subject: [PATCH 63/85] baked tests match code standard by default --- lib/Cake/Console/Templates/default/classes/test.ctp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Cake/Console/Templates/default/classes/test.ctp b/lib/Cake/Console/Templates/default/classes/test.ctp index b7c13f98d..b322a6b92 100644 --- a/lib/Cake/Console/Templates/default/classes/test.ctp +++ b/lib/Cake/Console/Templates/default/classes/test.ctp @@ -23,7 +23,7 @@ echo "', ''); - + /** * Test * @@ -99,7 +99,6 @@ class Test extends CakeTestCase { * @return void */ public function test() { - } From 6933b31be59fb88dc3b32ea0c9cd81c17fcd9351 Mon Sep 17 00:00:00 2001 From: AD7six Date: Fri, 11 May 2012 00:33:10 +0200 Subject: [PATCH 64/85] include plugin name in model tests --- lib/Cake/Console/Command/Task/TestTask.php | 7 ++++--- lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/Cake/Console/Command/Task/TestTask.php b/lib/Cake/Console/Command/Task/TestTask.php index 8e91d82cc..feb107e07 100644 --- a/lib/Cake/Console/Command/Task/TestTask.php +++ b/lib/Cake/Console/Command/Task/TestTask.php @@ -139,7 +139,7 @@ class TestTask extends BakeTask { $methods = $this->getTestableMethods($fullClassName); } $mock = $this->hasMockClass($type, $fullClassName); - list($preConstruct, $construction, $postConstruct) = $this->generateConstructor($type, $fullClassName); + list($preConstruct, $construction, $postConstruct) = $this->generateConstructor($type, $fullClassName, $plugin); $uses = $this->generateUses($type, $realType, $fullClassName); $this->out("\n" . __d('cake_console', 'Baking test case for %s %s ...', $className, $type), 1, Shell::QUIET); @@ -446,13 +446,14 @@ class TestTask extends BakeTask { * * @param string $type The Type of object you are generating tests for eg. controller * @param string $fullClassName The Classname of the class the test is being generated for. + * @param string $plugin The plugin name. * @return array Constructor snippets for the thing you are building. */ - public function generateConstructor($type, $fullClassName) { + public function generateConstructor($type, $fullClassName, $plugin) { $type = strtolower($type); $pre = $post = ''; if ($type == 'model') { - $construct = "ClassRegistry::init('$fullClassName');\n"; + $construct = "ClassRegistry::init('{$plugin}$fullClassName');\n"; } if ($type == 'behavior') { $construct = "new $fullClassName();\n"; diff --git a/lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php b/lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php index 6d80e1ae5..bc5877a49 100644 --- a/lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php +++ b/lib/Cake/Test/Case/Console/Command/Task/TestTaskTest.php @@ -555,15 +555,15 @@ class TestTaskTest extends CakeTestCase { * @return void */ public function testGenerateConstructor() { - $result = $this->Task->generateConstructor('controller', 'PostsController'); + $result = $this->Task->generateConstructor('controller', 'PostsController', null); $expected = array('', "new TestPostsController();\n", "\$this->Posts->constructClasses();\n"); $this->assertEquals($expected, $result); - $result = $this->Task->generateConstructor('model', 'Post'); + $result = $this->Task->generateConstructor('model', 'Post', null); $expected = array('', "ClassRegistry::init('Post');\n", ''); $this->assertEquals($expected, $result); - $result = $this->Task->generateConstructor('helper', 'FormHelper'); + $result = $this->Task->generateConstructor('helper', 'FormHelper', null); $expected = array("\$View = new View();\n", "new FormHelper(\$View);\n", ''); $this->assertEquals($expected, $result); } From 7695da637cf48985d92133eb16343edfc7ef12bd Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 4 May 2012 08:16:43 -0400 Subject: [PATCH 65/85] Use correct argument order. --- lib/Cake/Utility/Xml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Utility/Xml.php b/lib/Cake/Utility/Xml.php index 6b96f7f61..1f9f69caf 100644 --- a/lib/Cake/Utility/Xml.php +++ b/lib/Cake/Utility/Xml.php @@ -230,7 +230,7 @@ class Xml { if ($key[0] === '@') { throw new XmlException(__d('cake_dev', 'Invalid array')); } - if (is_numeric(implode(array_keys($value), ''))) { // List + if (is_numeric(implode('', array_keys($value)))) { // List foreach ($value as $item) { $itemData = compact('dom', 'node', 'key', 'format'); $itemData['value'] = $item; From 2be9ac8888aa3a0dd2a4b40353dc6e158a7112c8 Mon Sep 17 00:00:00 2001 From: Frank de Graaf Date: Fri, 4 May 2012 16:58:51 +0200 Subject: [PATCH 66/85] Fixed HTTP status codes for non-redirects which were breaking AuthComponent. --- lib/Cake/Controller/Controller.php | 17 ++++++++--------- .../Test/Case/Controller/ControllerTest.php | 5 +++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/Cake/Controller/Controller.php b/lib/Cake/Controller/Controller.php index 25427a544..ec862aec5 100644 --- a/lib/Cake/Controller/Controller.php +++ b/lib/Cake/Controller/Controller.php @@ -531,7 +531,7 @@ class Controller extends Object implements CakeEventListener { } /** - * Merge components, helpers, and uses vars from + * Merge components, helpers, and uses vars from * Controller::$_mergeParent and PluginAppController. * * @return void @@ -770,18 +770,17 @@ class Controller extends Object implements CakeEventListener { session_write_close(); } - if (!empty($status) && is_string($status)) { - $codes = array_flip($this->response->httpCodes()); - if (isset($codes[$status])) { - $status = $codes[$status]; - } - } - if ($url !== null) { $this->response->header('Location', Router::url($url, true)); } - if (!empty($status) && ($status >= 300 && $status < 400)) { + if (!empty($status)) { + if (is_string($status)) { + $codes = array_flip($this->response->httpCodes()); + if (isset($codes[$status])) { + $status = $codes[$status]; + } + } $this->response->statusCode($status); } diff --git a/lib/Cake/Test/Case/Controller/ControllerTest.php b/lib/Cake/Test/Case/Controller/ControllerTest.php index b77a35bf3..33bc9678b 100644 --- a/lib/Cake/Test/Case/Controller/ControllerTest.php +++ b/lib/Cake/Test/Case/Controller/ControllerTest.php @@ -387,7 +387,7 @@ class AnotherTestController extends ControllerTestAppController { /** * merge parent - * + * * @var string */ protected $_mergeParent = 'ControllerTestAppController'; @@ -728,7 +728,8 @@ class ControllerTest extends CakeTestCase { array(303, "See Other"), array(304, "Not Modified"), array(305, "Use Proxy"), - array(307, "Temporary Redirect") + array(307, "Temporary Redirect"), + array(403, "Forbidden"), ); } From c9e59c3b51c31113633cd33bfb4fb1e8ed36f033 Mon Sep 17 00:00:00 2001 From: Phally Date: Sat, 5 May 2012 17:09:43 +0200 Subject: [PATCH 67/85] Removed triple nested condition. --- lib/Cake/Controller/Controller.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/Cake/Controller/Controller.php b/lib/Cake/Controller/Controller.php index ec862aec5..6341a4901 100644 --- a/lib/Cake/Controller/Controller.php +++ b/lib/Cake/Controller/Controller.php @@ -774,13 +774,14 @@ class Controller extends Object implements CakeEventListener { $this->response->header('Location', Router::url($url, true)); } - if (!empty($status)) { - if (is_string($status)) { - $codes = array_flip($this->response->httpCodes()); - if (isset($codes[$status])) { - $status = $codes[$status]; - } + if (is_string($status)) { + $codes = array_flip($this->response->httpCodes()); + if (isset($codes[$status])) { + $status = $codes[$status]; } + } + + if ($status) { $this->response->statusCode($status); } From 8334ebebed86a349b3ea4bb6560efa2f26794d3e Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 6 May 2012 21:29:39 -0400 Subject: [PATCH 68/85] Fix saving translate records with saveAll() Also fixes issues saving translated data with validation disabled. By enabling data backup in beforeSave() and beforeValidate() the existing behavior is preserved, and the current issue is fixed. Fixes #2857 --- lib/Cake/Model/Behavior/TranslateBehavior.php | 30 ++- .../Model/Behavior/TranslateBehaviorTest.php | 179 ++++++++++++++---- lib/Cake/Test/Case/Model/models.php | 11 +- .../Test/Fixture/TranslatedItemFixture.php | 7 +- 4 files changed, 187 insertions(+), 40 deletions(-) diff --git a/lib/Cake/Model/Behavior/TranslateBehavior.php b/lib/Cake/Model/Behavior/TranslateBehavior.php index bce937cca..79036e01a 100644 --- a/lib/Cake/Model/Behavior/TranslateBehavior.php +++ b/lib/Cake/Model/Behavior/TranslateBehavior.php @@ -310,8 +310,35 @@ class TranslateBehavior extends ModelBehavior { * @return boolean */ public function beforeValidate(Model $model) { + unset($this->runtime[$model->alias]['beforeSave']); + $this->_setRuntimeData($model); + return true; + } + +/** + * beforeSave callback. + * + * @param Model $model Model save was called on. + * @return boolean true. + */ + public function beforeSave(Model $model) { + $this->_setRuntimeData($model); + return true; + } + +/** + * Sets the runtime data. + * + * Used from beforeValidate() and beforeSave() for compatibility issues, + * and to allow translations to be persisted even when validation + * is disabled. + * + * @param Model $model + * @return void + */ + protected function _setRuntimeData(Model $model) { $locale = $this->_getLocale($model); - if (empty($locale)) { + if (empty($locale) || isset($this->runtime[$model->alias]['beforeSave'])) { return true; } $fields = array_merge($this->settings[$model->alias], $this->runtime[$model->alias]['fields']); @@ -333,7 +360,6 @@ class TranslateBehavior extends ModelBehavior { } } $this->runtime[$model->alias]['beforeSave'] = $tempData; - return true; } /** diff --git a/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php b/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php index b480f65dc..61b38cf31 100644 --- a/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php @@ -16,9 +16,6 @@ * @since CakePHP(tm) v 1.2.0.5669 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ -if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) { - define('CAKEPHP_UNIT_TEST_EXECUTION', 1); -} App::uses('Model', 'Model'); App::uses('AppModel', 'Model'); @@ -110,7 +107,11 @@ class TranslateBehaviorTest extends CakeTestCase { $TestModel->locale = false; $result = $TestModel->read(null, 1); - $expected = array('TranslatedItem' => array('id' => 1, 'slug' => 'first_translated')); + $expected = array('TranslatedItem' => array( + 'id' => 1, + 'slug' => 'first_translated', + 'translated_article_id' => 1, + )); $this->assertEquals($expected, $result); $result = $TestModel->find('all', array('fields' => array('slug'))); @@ -138,7 +139,7 @@ class TranslateBehaviorTest extends CakeTestCase { $result = $TestModel->read(null, 1); $expected = array( - 'TranslatedItem' => array('id' => 1, 'slug' => 'first_translated'), + 'TranslatedItem' => array('id' => 1, 'slug' => 'first_translated', 'translated_article_id' => 1), 'Title' => array( array('id' => 1, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title #1'), array('id' => 3, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Titel #1'), @@ -194,7 +195,8 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'first_translated', 'locale' => 'eng', 'title' => 'Title #1', - 'content' => 'Content #1' + 'content' => 'Content #1', + 'translated_article_id' => 1, ) ); $this->assertEquals($expected, $result); @@ -207,7 +209,8 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'first_translated', 'locale' => 'eng', 'title' => 'Title #1', - 'content' => 'Content #1' + 'content' => 'Content #1', + 'translated_article_id' => 1, ) ), array( @@ -216,7 +219,8 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'second_translated', 'locale' => 'eng', 'title' => 'Title #2', - 'content' => 'Content #2' + 'content' => 'Content #2', + 'translated_article_id' => 1, ) ), array( @@ -225,7 +229,8 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'third_translated', 'locale' => 'eng', 'title' => 'Title #3', - 'content' => 'Content #3' + 'content' => 'Content #3', + 'translated_article_id' => 1, ) ) ); @@ -250,7 +255,8 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'first_translated', 'locale' => 'eng', 'title' => 'Title #1', - 'content' => 'Content #1' + 'content' => 'Content #1', + 'translated_article_id' => 1, ) ) ); @@ -264,7 +270,8 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'first_translated', 'locale' => 'eng', 'title' => 'Title #1', - 'content' => 'Content #1' + 'content' => 'Content #1', + 'translated_article_id' => 1, ) ) ); @@ -292,7 +299,8 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'first_translated', 'locale' => 'eng', 'title' => 'Title #1', - 'content' => 'Content #1' + 'content' => 'Content #1', + 'translated_article_id' => 1, ), 'Title' => array( array('id' => 1, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title #1'), @@ -313,17 +321,35 @@ class TranslateBehaviorTest extends CakeTestCase { $result = $TestModel->find('all', array('fields' => array('TranslatedItem.title'))); $expected = array( array( - 'TranslatedItem' => array('id' => 1, 'locale' => 'eng', 'title' => 'Title #1', 'slug' => 'first_translated'), + 'TranslatedItem' => array( + 'id' => 1, + 'locale' => 'eng', + 'title' => 'Title #1', + 'slug' => 'first_translated', + 'translated_article_id' => 1, + ), 'Title' => array(array('foreign_key' => 1, 'content' => 'Title #1')), 'Content' => array(array('foreign_key' => 1, 'content' => 'Content #1')) ), array( - 'TranslatedItem' => array('id' => 2, 'locale' => 'eng', 'title' => 'Title #2', 'slug' => 'second_translated'), + 'TranslatedItem' => array( + 'id' => 2, + 'locale' => 'eng', + 'title' => 'Title #2', + 'slug' => 'second_translated', + 'translated_article_id' => 1, + ), 'Title' => array(array('foreign_key' => 2, 'content' => 'Title #2')), 'Content' => array(array('foreign_key' => 2, 'content' => 'Content #2')) ), array( - 'TranslatedItem' => array('id' => 3, 'locale' => 'eng', 'title' => 'Title #3','slug' => 'third_translated'), + 'TranslatedItem' => array( + 'id' => 3, + 'locale' => 'eng', + 'title' => 'Title #3', + 'slug' => 'third_translated', + 'translated_article_id' => 1, + ), 'Title' => array(array('foreign_key' => 3, 'content' => 'Title #3')), 'Content' => array(array('foreign_key' => 3, 'content' => 'Content #3')) ) @@ -349,7 +375,8 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'first_translated', 'locale' => 'deu', 'title' => 'Titel #1', - 'content' => 'Inhalt #1' + 'content' => 'Inhalt #1', + 'translated_article_id' => 1, ) ); $this->assertEquals($expected, $result); @@ -361,7 +388,7 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'first_translated', 'locale' => 'deu', 'content' => 'Inhalt #1', - 'title' => 'Titel #1' + 'title' => 'Titel #1', ) ), array( @@ -369,7 +396,7 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'second_translated', 'locale' => 'deu', 'title' => 'Titel #2', - 'content' => 'Inhalt #2' + 'content' => 'Inhalt #2', ) ), array( @@ -377,7 +404,7 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'third_translated', 'locale' => 'deu', 'title' => 'Titel #3', - 'content' => 'Inhalt #3' + 'content' => 'Inhalt #3', ) ) ); @@ -406,7 +433,8 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'first_translated', 'locale' => 'rus', 'title' => '', - 'content' => '' + 'content' => '', + 'translated_article_id' => 1, ) ); $this->assertEquals($expected, $result); @@ -490,7 +518,12 @@ class TranslateBehaviorTest extends CakeTestCase { $TestModel = new TranslatedItem(); $TestModel->locale = 'spa'; - $data = array('slug' => 'fourth_translated', 'title' => 'Leyenda #4', 'content' => 'Contenido #4'); + $data = array( + 'slug' => 'fourth_translated', + 'title' => 'Leyenda #4', + 'content' => 'Contenido #4', + 'translated_article_id' => null + ); $TestModel->create($data); $TestModel->save(); $result = $TestModel->read(); @@ -508,7 +541,7 @@ class TranslateBehaviorTest extends CakeTestCase { $TestModel = new TranslatedItem(); $TestModel->locale = 'spa'; - $oldData = array('slug' => 'fourth_translated', 'title' => 'Leyenda #4'); + $oldData = array('slug' => 'fourth_translated', 'title' => 'Leyenda #4', 'translated_article_id' => 1); $TestModel->create($oldData); $TestModel->save(); $id = $TestModel->id; @@ -545,7 +578,14 @@ class TranslateBehaviorTest extends CakeTestCase { $result = $TestModel->read(); $expected = array( - 'TranslatedItem' => array('id' => 4, 'slug' => 'new_translated', 'locale' => 'eng', 'title' => 'New title', 'content' => 'New content'), + 'TranslatedItem' => array( + 'id' => 4, + 'slug' => 'new_translated', + 'locale' => 'eng', + 'title' => 'New title', + 'content' => 'New content', + 'translated_article_id' => null, + ), 'Title' => array( array('id' => 21, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 4, 'field' => 'title', 'content' => 'New title'), array('id' => 22, 'locale' => 'spa', 'model' => 'TranslatedItem', 'foreign_key' => 4, 'field' => 'title', 'content' => 'Nuevo leyenda') @@ -582,7 +622,14 @@ class TranslateBehaviorTest extends CakeTestCase { $TestModel->bindTranslation($translations, false); $result = $TestModel->read(null, 1); $expected = array( - 'TranslatedItem' => array('id' => '1', 'slug' => 'first_translated', 'locale' => 'eng', 'title' => 'New Title #1', 'content' => 'New Content #1'), + 'TranslatedItem' => array( + 'id' => '1', + 'slug' => 'first_translated', + 'locale' => 'eng', + 'title' => 'New Title #1', + 'content' => 'New Content #1', + 'translated_article_id' => 1, + ), 'Title' => array( array('id' => 1, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'New Title #1'), array('id' => 3, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Neue Titel #1'), @@ -625,7 +672,14 @@ class TranslateBehaviorTest extends CakeTestCase { $result['Title'] = Hash::sort($result['Title'], '{n}.id', 'asc'); $result['Content'] = Hash::sort($result['Content'], '{n}.id', 'asc'); $expected = array( - 'TranslatedItem' => array('id' => 1, 'slug' => 'first_translated', 'locale' => 'cze', 'title' => 'Titulek #1', 'content' => 'Upraveny obsah #1'), + 'TranslatedItem' => array( + 'id' => 1, + 'slug' => 'first_translated', + 'locale' => 'cze', + 'title' => 'Titulek #1', + 'content' => 'Upraveny obsah #1', + 'translated_article_id' => 1, + ), 'Title' => array( array('id' => 1, 'locale' => 'eng', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Updated Title #1'), array('id' => 3, 'locale' => 'deu', 'model' => 'TranslatedItem', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Titel #1'), @@ -641,6 +695,44 @@ class TranslateBehaviorTest extends CakeTestCase { $this->assertEquals($expected, $result); } +/** + * Test that saveAll() works with hasMany associations that contain + * translations. + * + * @return void + */ + public function testSaveAllTranslatedAssociations() { + $this->loadFixtures('Translate', 'TranslateArticle', 'TranslatedItem', 'TranslatedArticle', 'User'); + $Model = new TranslatedArticle(); + $Model->locale = 'eng'; + + $data = array( + 'TranslatedArticle' => array( + 'user_id' => 1, + 'published' => 'Y', + 'title' => 'Title (eng) #1', + 'body' => 'Body (eng) #1' + ), + 'TranslatedItem' => array( + array( + 'title' => 'Nuevo leyenda #1', + 'content' => 'Upraveny obsah #1' + ), + array( + 'title' => 'New Title #2', + 'content' => 'New Content #2' + ), + ) + ); + $result = $Model->saveAll($data); + $this->assertTrue($result); + + $result = $Model->TranslatedItem->find('all', array( + 'conditions' => array('translated_article_id' => $Model->id) + )); + $this->assertCount(2, $result); + } + /** * testValidation method * @@ -652,11 +744,13 @@ class TranslateBehaviorTest extends CakeTestCase { $TestModel = new TranslatedItem(); $TestModel->locale = 'eng'; $TestModel->validate['title'] = '/Only this title/'; - $data = array('TranslatedItem' => array( - 'id' => 1, - 'title' => array('eng' => 'New Title #1', 'deu' => 'Neue Titel #1', 'cze' => 'Novy Titulek #1'), - 'content' => array('eng' => 'New Content #1', 'deu' => 'Neue Inhalt #1', 'cze' => 'Novy Obsah #1') - )); + $data = array( + 'TranslatedItem' => array( + 'id' => 1, + 'title' => array('eng' => 'New Title #1', 'deu' => 'Neue Titel #1', 'cze' => 'Novy Titulek #1'), + 'content' => array('eng' => 'New Content #1', 'deu' => 'Neue Inhalt #1', 'cze' => 'Novy Obsah #1') + ) + ); $TestModel->create(); $this->assertFalse($TestModel->save($data)); $this->assertEquals(array('This field cannot be left blank'), $TestModel->validationErrors['title']); @@ -739,7 +833,8 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'first_translated', 'locale' => 'eng', 'title' => 'Another Title #1', - 'content' => 'Another Content #1' + 'content' => 'Another Content #1', + 'translated_article_id' => 1, ) ); $this->assertEquals($expected, $result); @@ -751,7 +846,7 @@ class TranslateBehaviorTest extends CakeTestCase { * @return void */ public function testTranslateWithAssociations() { - $this->loadFixtures('TranslateArticle', 'TranslatedArticle', 'User', 'Comment', 'ArticlesTag', 'Tag'); + $this->loadFixtures('TranslateArticle', 'TranslatedArticle', 'TranslatedItem', 'User', 'Comment', 'ArticlesTag', 'Tag'); $TestModel = new TranslatedArticle(); $TestModel->locale = 'eng'; @@ -775,6 +870,23 @@ class TranslateBehaviorTest extends CakeTestCase { 'password' => '5f4dcc3b5aa765d61d8327deb882cf99', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31' + ), + 'TranslatedItem' => array( + array( + 'id' => 1, + 'translated_article_id' => 1, + 'slug' => 'first_translated' + ), + array( + 'id' => 2, + 'translated_article_id' => 1, + 'slug' => 'second_translated' + ), + array( + 'id' => 3, + 'translated_article_id' => 1, + 'slug' => 'third_translated' + ), ) ); $this->assertEquals($expected, $result); @@ -854,7 +966,8 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'first_translated', 'locale' => 'eng', 'content' => 'Content #1', - 'title' => 'Title #1' + 'title' => 'Title #1', + 'translated_article_id' => 1, )); $this->assertEquals($expected, $result); } diff --git a/lib/Cake/Test/Case/Model/models.php b/lib/Cake/Test/Case/Model/models.php index e5c2856e8..43bad3123 100644 --- a/lib/Cake/Test/Case/Model/models.php +++ b/lib/Cake/Test/Case/Model/models.php @@ -3119,7 +3119,7 @@ class TranslatedItem2 extends CakeTestModel { /** * translateModel property * - * @var string 'TranslateTestModel' + * @var string */ public $translateModel = 'TranslateWithPrefix'; @@ -3163,7 +3163,7 @@ class TranslatedItemWithTable extends CakeTestModel { /** * translateModel property * - * @var string 'TranslateTestModel' + * @var string */ public $translateModel = 'TranslateTestModel'; @@ -3248,6 +3248,13 @@ class TranslatedArticle extends CakeTestModel { */ public $belongsTo = array('User'); +/** + * belongsTo property + * + * @var array + */ + public $hasMany = array('TranslatedItem'); + } class CounterCacheUser extends CakeTestModel { diff --git a/lib/Cake/Test/Fixture/TranslatedItemFixture.php b/lib/Cake/Test/Fixture/TranslatedItemFixture.php index 28485f26d..3d5490371 100644 --- a/lib/Cake/Test/Fixture/TranslatedItemFixture.php +++ b/lib/Cake/Test/Fixture/TranslatedItemFixture.php @@ -38,6 +38,7 @@ class TranslatedItemFixture extends CakeTestFixture { */ public $fields = array( 'id' => array('type' => 'integer', 'key' => 'primary'), + 'translated_article_id' => array('type' => 'integer'), 'slug' => array('type' => 'string', 'null' => false) ); @@ -47,8 +48,8 @@ class TranslatedItemFixture extends CakeTestFixture { * @var array */ public $records = array( - array('slug' => 'first_translated'), - array('slug' => 'second_translated'), - array('slug' => 'third_translated') + array('translated_article_id' => 1, 'slug' => 'first_translated'), + array('translated_article_id' => 1, 'slug' => 'second_translated'), + array('translated_article_id' => 1, 'slug' => 'third_translated') ); } From d73bc6b8674cd318c0af79882c86bb4c54efd79d Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 6 May 2012 23:39:02 -0400 Subject: [PATCH 69/85] Fix error in Sqlite tests. --- lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php b/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php index 61b38cf31..9ad0f3d30 100644 --- a/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php @@ -522,7 +522,7 @@ class TranslateBehaviorTest extends CakeTestCase { 'slug' => 'fourth_translated', 'title' => 'Leyenda #4', 'content' => 'Contenido #4', - 'translated_article_id' => null + 'translated_article_id' => 1, ); $TestModel->create($data); $TestModel->save(); @@ -715,10 +715,12 @@ class TranslateBehaviorTest extends CakeTestCase { ), 'TranslatedItem' => array( array( + 'slug' => '', 'title' => 'Nuevo leyenda #1', 'content' => 'Upraveny obsah #1' ), array( + 'slug' => '', 'title' => 'New Title #2', 'content' => 'New Content #2' ), From e53074dab9dd2a579a5691939eb0a0e27ef9e5bb Mon Sep 17 00:00:00 2001 From: Jelle Henkens Date: Mon, 7 May 2012 21:48:58 +0100 Subject: [PATCH 70/85] Fixing order inconsistency in queryString and bug with string based existing querystring --- lib/Cake/Routing/Router.php | 11 +++++-- lib/Cake/Test/Case/Routing/RouterTest.php | 37 +++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index 0f0a60947..93d25c353 100644 --- a/lib/Cake/Routing/Router.php +++ b/lib/Cake/Routing/Router.php @@ -957,12 +957,19 @@ class Router { $out = ''; if (is_array($q)) { - $q = array_merge($extra, $q); + $q = array_merge($q, $extra); } else { $out = $q; $q = $extra; } - $out .= http_build_query($q, null, $join); + $addition = http_build_query($q, null, $join); + + if ($out && $addition) { + $out .= $join; + } + + $out .= $addition; + if (isset($out[0]) && $out[0] != '?') { $out = '?' . $out; } diff --git a/lib/Cake/Test/Case/Routing/RouterTest.php b/lib/Cake/Test/Case/Routing/RouterTest.php index 919798130..09638f50b 100644 --- a/lib/Cake/Test/Case/Routing/RouterTest.php +++ b/lib/Cake/Test/Case/Routing/RouterTest.php @@ -2590,4 +2590,41 @@ class RouterTest extends CakeTestCase { Router::defaultRouteClass('NonExistentClass'); } +/** + * Tests generating well-formed querystrings + * + * @return void + */ + public function testQueryString() { + $result = Router::queryString(array('var' => 'foo bar')); + $expected = '?var=foo+bar'; + $this->assertEquals($expected, $result); + + $result = Router::queryString(false, array('some' => 'param', 'foo' => 'bar')); + $expected = '?some=param&foo=bar'; + $this->assertEquals($expected, $result); + + $existing = array('apple' => 'red', 'pear' => 'green'); + $result = Router::queryString($existing, array('some' => 'param', 'foo' => 'bar')); + $expected = '?apple=red&pear=green&some=param&foo=bar'; + $this->assertEquals($expected, $result); + + $existing = 'apple=red&pear=green'; + $result = Router::queryString($existing, array('some' => 'param', 'foo' => 'bar')); + $expected = '?apple=red&pear=green&some=param&foo=bar'; + $this->assertEquals($expected, $result); + + $existing = '?apple=red&pear=green'; + $result = Router::queryString($existing, array('some' => 'param', 'foo' => 'bar')); + $expected = '?apple=red&pear=green&some=param&foo=bar'; + $this->assertEquals($expected, $result); + + $result = Router::queryString('apple=red&pear=green'); + $expected = '?apple=red&pear=green'; + $this->assertEquals($expected, $result); + + $result = Router::queryString('foo=bar', array('php' => 'nut', 'jose' => 'zap'), true); + $expected = '?foo=bar&php=nut&jose=zap'; + $this->assertEquals($expected, $result); + } } From d9bf3cf9873ece2268a3cdac1a04b1205f642b05 Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 7 May 2012 21:36:28 -0400 Subject: [PATCH 71/85] Fix additional issues with saveAll(). Fixes #2857 --- lib/Cake/Model/Behavior/TranslateBehavior.php | 24 +++++++++++++++---- .../Model/Behavior/TranslateBehaviorTest.php | 2 ++ 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/lib/Cake/Model/Behavior/TranslateBehavior.php b/lib/Cake/Model/Behavior/TranslateBehavior.php index 79036e01a..83378a6c2 100644 --- a/lib/Cake/Model/Behavior/TranslateBehavior.php +++ b/lib/Cake/Model/Behavior/TranslateBehavior.php @@ -318,10 +318,19 @@ class TranslateBehavior extends ModelBehavior { /** * beforeSave callback. * + * Copies data into the runtime property when `$options['validate']` is + * disabled. Or the runtime data hasn't been set yet. + * * @param Model $model Model save was called on. * @return boolean true. */ - public function beforeSave(Model $model) { + public function beforeSave(Model $model, $options = array()) { + if (isset($options['validate']) && $options['validate'] == false) { + unset($this->runtime[$model->alias]['beforeSave']); + } + if (isset($this->runtime[$model->alias]['beforeSave'])) { + return true; + } $this->_setRuntimeData($model); return true; } @@ -338,7 +347,7 @@ class TranslateBehavior extends ModelBehavior { */ protected function _setRuntimeData(Model $model) { $locale = $this->_getLocale($model); - if (empty($locale) || isset($this->runtime[$model->alias]['beforeSave'])) { + if (empty($locale)) { return true; } $fields = array_merge($this->settings[$model->alias], $this->runtime[$model->alias]['fields']); @@ -370,12 +379,17 @@ class TranslateBehavior extends ModelBehavior { * @return void */ public function afterSave(Model $model, $created) { - if (!isset($this->runtime[$model->alias]['beforeSave'])) { + if (!isset($this->runtime[$model->alias]['beforeValidate']) && !isset($this->runtime[$model->alias]['beforeSave'])) { return true; } $locale = $this->_getLocale($model); - $tempData = $this->runtime[$model->alias]['beforeSave']; - unset($this->runtime[$model->alias]['beforeSave']); + if (isset($this->runtime[$model->alias]['beforeValidate'])) { + $tempData = $this->runtime[$model->alias]['beforeValidate']; + } else { + $tempData = $this->runtime[$model->alias]['beforeSave']; + } + + unset($this->runtime[$model->alias]['beforeValidate'], $this->runtime[$model->alias]['beforeSave']); $conditions = array('model' => $model->alias, 'foreign_key' => $model->id); $RuntimeModel = $this->translateModel($model); diff --git a/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php b/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php index 9ad0f3d30..b6dc3003a 100644 --- a/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php @@ -733,6 +733,8 @@ class TranslateBehaviorTest extends CakeTestCase { 'conditions' => array('translated_article_id' => $Model->id) )); $this->assertCount(2, $result); + $this->assertEquals($data['TranslatedItem'][0]['title'], $result[0]['TranslatedItem']['title']); + $this->assertEquals($data['TranslatedItem'][1]['title'], $result[1]['TranslatedItem']['title']); } /** From 7592eb94ac6153c53bc6fe9ba0e3e8d637726aed Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 7 May 2012 22:10:17 -0400 Subject: [PATCH 72/85] Fix test cases with postgres. Setting id values confuses postgres' sequences. --- .../Model/Behavior/TranslateBehaviorTest.php | 1 + .../Test/Fixture/TranslateArticleFixture.php | 36 +++++++++---------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php b/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php index b6dc3003a..b4a8c4fa5 100644 --- a/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php +++ b/lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php @@ -708,6 +708,7 @@ class TranslateBehaviorTest extends CakeTestCase { $data = array( 'TranslatedArticle' => array( + 'id' => 4, 'user_id' => 1, 'published' => 'Y', 'title' => 'Title (eng) #1', diff --git a/lib/Cake/Test/Fixture/TranslateArticleFixture.php b/lib/Cake/Test/Fixture/TranslateArticleFixture.php index 8ab79aec1..2fcfd9672 100644 --- a/lib/Cake/Test/Fixture/TranslateArticleFixture.php +++ b/lib/Cake/Test/Fixture/TranslateArticleFixture.php @@ -58,23 +58,23 @@ class TranslateArticleFixture extends CakeTestFixture { * @var array */ public $records = array( - array('id' => 1, 'locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title (eng) #1'), - array('id' => 2, 'locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'body', 'content' => 'Body (eng) #1'), - array('id' => 3, 'locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title (deu) #1'), - array('id' => 4, 'locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'body', 'content' => 'Body (deu) #1'), - array('id' => 5, 'locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title (cze) #1'), - array('id' => 6, 'locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'body', 'content' => 'Body (cze) #1'), - array('id' => 7, 'locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title (eng) #2'), - array('id' => 8, 'locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'body', 'content' => 'Body (eng) #2'), - array('id' => 9, 'locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title (deu) #2'), - array('id' => 10, 'locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'body', 'content' => 'Body (deu) #2'), - array('id' => 11, 'locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title (cze) #2'), - array('id' => 12, 'locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'body', 'content' => 'Body (cze) #2'), - array('id' => 13, 'locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title (eng) #3'), - array('id' => 14, 'locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'body', 'content' => 'Body (eng) #3'), - array('id' => 15, 'locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title (deu) #3'), - array('id' => 16, 'locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'body', 'content' => 'Body (deu) #3'), - array('id' => 17, 'locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title (cze) #3'), - array('id' => 18, 'locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'body', 'content' => 'Body (cze) #3') + array('locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title (eng) #1'), + array('locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'body', 'content' => 'Body (eng) #1'), + array('locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title (deu) #1'), + array('locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'body', 'content' => 'Body (deu) #1'), + array('locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'title', 'content' => 'Title (cze) #1'), + array('locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 1, 'field' => 'body', 'content' => 'Body (cze) #1'), + array('locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title (eng) #2'), + array('locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'body', 'content' => 'Body (eng) #2'), + array('locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title (deu) #2'), + array('locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'body', 'content' => 'Body (deu) #2'), + array('locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'title', 'content' => 'Title (cze) #2'), + array('locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 2, 'field' => 'body', 'content' => 'Body (cze) #2'), + array('locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title (eng) #3'), + array('locale' => 'eng', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'body', 'content' => 'Body (eng) #3'), + array('locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title (deu) #3'), + array('locale' => 'deu', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'body', 'content' => 'Body (deu) #3'), + array('locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'title', 'content' => 'Title (cze) #3'), + array('locale' => 'cze', 'model' => 'TranslatedArticle', 'foreign_key' => 3, 'field' => 'body', 'content' => 'Body (cze) #3') ); } From 7a1275a1b1166a800dad177ebf2c37f4ce67b0b5 Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Wed, 9 May 2012 22:57:21 +0200 Subject: [PATCH 73/85] Copy changes made to $this->data in beforeValidate callbacks back to saveAssociated data variable This allow changes in beforeValidate to be saved --- lib/Cake/Model/Model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 193f710de..b5a6ea7b8 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -2178,6 +2178,7 @@ class Model extends Object implements CakeEventListener { if ($options['validate'] === 'first') { $validates = $this->validateAssociated($data, $options); + $data = $this->data; if ((!$validates && $options['atomic']) || (!$options['atomic'] && in_array(false, $validates, true))) { return $validates; } From 484c3ec688899e452c1372ae1b4990bd750e66e4 Mon Sep 17 00:00:00 2001 From: Jelle Henkens Date: Wed, 9 May 2012 22:32:57 +0100 Subject: [PATCH 74/85] Adding support for a trailing & or & in the existing queryString --- lib/Cake/Routing/Router.php | 2 +- lib/Cake/Test/Case/Routing/RouterTest.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index 93d25c353..9c2945d34 100644 --- a/lib/Cake/Routing/Router.php +++ b/lib/Cake/Routing/Router.php @@ -964,7 +964,7 @@ class Router { } $addition = http_build_query($q, null, $join); - if ($out && $addition) { + if ($out && $addition && substr($out, strlen($join) * -1, strlen($join)) != $join) { $out .= $join; } diff --git a/lib/Cake/Test/Case/Routing/RouterTest.php b/lib/Cake/Test/Case/Routing/RouterTest.php index 09638f50b..dd7e6879a 100644 --- a/lib/Cake/Test/Case/Routing/RouterTest.php +++ b/lib/Cake/Test/Case/Routing/RouterTest.php @@ -2626,5 +2626,13 @@ class RouterTest extends CakeTestCase { $result = Router::queryString('foo=bar', array('php' => 'nut', 'jose' => 'zap'), true); $expected = '?foo=bar&php=nut&jose=zap'; $this->assertEquals($expected, $result); + + $result = Router::queryString('foo=bar&', array('php' => 'nut', 'jose' => 'zap'), true); + $expected = '?foo=bar&php=nut&jose=zap'; + $this->assertEquals($expected, $result); + + $result = Router::queryString('foo=bar&', array('php' => 'nut', 'jose' => 'zap')); + $expected = '?foo=bar&php=nut&jose=zap'; + $this->assertEquals($expected, $result); } } From fbd21323009678a50c036bf36bfc4510a2e44b10 Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Wed, 9 May 2012 23:34:37 +0200 Subject: [PATCH 75/85] Another fix for Pull request 642 --- lib/Cake/Model/Model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index b5a6ea7b8..382df68c5 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -2044,6 +2044,7 @@ class Model extends Object implements CakeEventListener { if ($options['validate'] === 'first') { $validates = $this->validateMany($data, $options); + $data = $this->data; if ((!$validates && $options['atomic']) || (!$options['atomic'] && in_array(false, $validates, true))) { return $validates; } From ad4e46150a57814cba8f7d09615084798d9d1393 Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Wed, 9 May 2012 23:59:02 +0200 Subject: [PATCH 76/85] Fixing saveMany --- lib/Cake/Model/Model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 382df68c5..4f4a80bb8 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -2117,6 +2117,7 @@ class Model extends Object implements CakeEventListener { } else { $validates = $this->create($record) && $this->validates($options); } + $data[$key] = $this->data; if ($validates === false || (is_array($validates) && in_array(false, $validates, true))) { $validationErrors[$key] = $this->validationErrors; $validates = false; @@ -2125,6 +2126,7 @@ class Model extends Object implements CakeEventListener { } $return[$key] = $validates; } + $this->data = $data; $this->validationErrors = $validationErrors; if (!$options['atomic']) { return $return; From 2cea66875520cc3c8b4f1c95d073e36c168bcf1c Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Wed, 9 May 2012 17:57:48 -0430 Subject: [PATCH 77/85] Revert "Merge pull request #643 from nodesagency/hotfix/beforeValidate-copy-data" This reverts commit b4a42e4a03a1c5a7321769636283ca163656b47f, reversing changes made to 6bd7da36e7e74fb0f83f619a552a852b8abe63a8. --- lib/Cake/Model/Model.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 4f4a80bb8..dd309fd1f 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -2044,7 +2044,6 @@ class Model extends Object implements CakeEventListener { if ($options['validate'] === 'first') { $validates = $this->validateMany($data, $options); - $data = $this->data; if ((!$validates && $options['atomic']) || (!$options['atomic'] && in_array(false, $validates, true))) { return $validates; } From e4c88d8cf9c506cf33091a4a02c4261017bcb707 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Wed, 9 May 2012 17:58:08 -0430 Subject: [PATCH 78/85] Revert "Merge pull request #644 from nodesagency/hotfix/beforeValidate-copy-data" This reverts commit 0f54758e5a5e2ac369234e506827925bd781d9ea, reversing changes made to b4a42e4a03a1c5a7321769636283ca163656b47f. --- lib/Cake/Model/Model.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index dd309fd1f..b5a6ea7b8 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -2116,7 +2116,6 @@ class Model extends Object implements CakeEventListener { } else { $validates = $this->create($record) && $this->validates($options); } - $data[$key] = $this->data; if ($validates === false || (is_array($validates) && in_array(false, $validates, true))) { $validationErrors[$key] = $this->validationErrors; $validates = false; @@ -2125,7 +2124,6 @@ class Model extends Object implements CakeEventListener { } $return[$key] = $validates; } - $this->data = $data; $this->validationErrors = $validationErrors; if (!$options['atomic']) { return $return; From 7db2b97f87f6591d77953a9b4c7c234c94084e47 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Wed, 9 May 2012 23:51:27 -0430 Subject: [PATCH 79/85] Fixing error with validateMany and validateAssociated not saving values altered in beforeValidate callbacks --- lib/Cake/Model/Model.php | 12 ++- .../Test/Case/Model/ModelValidationTest.php | 81 +++++++++++++++- lib/Cake/Test/Case/Model/ModelWriteTest.php | 97 +++++++++---------- lib/Cake/Test/Case/Model/models.php | 16 +++ 4 files changed, 151 insertions(+), 55 deletions(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index b5a6ea7b8..d24ab16aa 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -2107,14 +2107,15 @@ class Model extends Object implements CakeEventListener { * Otherwise: array similar to the $data array passed, but values are set to true/false * depending on whether each record validated successfully. */ - public function validateMany($data, $options = array()) { + public function validateMany(&$data, $options = array()) { $options = array_merge(array('atomic' => true, 'deep' => false), $options); $this->validationErrors = $validationErrors = $return = array(); - foreach ($data as $key => $record) { + foreach ($data as $key => &$record) { if ($options['deep']) { $validates = $this->validateAssociated($record, $options); } else { $validates = $this->create($record) && $this->validates($options); + $data[$key] = $this->data; } if ($validates === false || (is_array($validates) && in_array(false, $validates, true))) { $validationErrors[$key] = $this->validationErrors; @@ -2178,7 +2179,6 @@ class Model extends Object implements CakeEventListener { if ($options['validate'] === 'first') { $validates = $this->validateAssociated($data, $options); - $data = $this->data; if ((!$validates && $options['atomic']) || (!$options['atomic'] && in_array(false, $validates, true))) { return $validates; } @@ -2188,6 +2188,7 @@ class Model extends Object implements CakeEventListener { $db = $this->getDataSource(); $transactionBegun = $db->begin(); } + $associations = $this->getAssociated(); $return = array(); $validates = true; @@ -2306,7 +2307,7 @@ class Model extends Object implements CakeEventListener { * Otherwise: array similar to the $data array passed, but values are set to true/false * depending on whether each record validated successfully. */ - public function validateAssociated($data, $options = array()) { + public function validateAssociated(&$data, $options = array()) { $options = array_merge(array('atomic' => true, 'deep' => false), $options); $this->validationErrors = $validationErrors = $return = array(); if (!($this->create($data) && $this->validates($options))) { @@ -2315,8 +2316,9 @@ class Model extends Object implements CakeEventListener { } else { $return[$this->alias] = true; } + $data[$this->alias] = $this->data[$this->alias]; $associations = $this->getAssociated(); - foreach ($data as $association => $values) { + foreach ($data as $association => &$values) { $validates = true; if (isset($associations[$association])) { if (in_array($associations[$association], array('belongsTo', 'hasOne'))) { diff --git a/lib/Cake/Test/Case/Model/ModelValidationTest.php b/lib/Cake/Test/Case/Model/ModelValidationTest.php index 3256cd785..caee7a392 100644 --- a/lib/Cake/Test/Case/Model/ModelValidationTest.php +++ b/lib/Cake/Test/Case/Model/ModelValidationTest.php @@ -1029,4 +1029,83 @@ class ModelValidationTest extends BaseModelTest { $this->assertFalse($Article->validates()); } -} +/** + * Tests that altering data in a beforeValidate callback will lead to saving those + * values in database + * + * @return void + */ + public function testValidateFirstWithBeforeValidate() { + $this->loadFixtures('Article', 'User'); + $model = new CustomArticle(); + $model->validate = array( + 'title' => array( + 'notempty' => array( + 'rule' => 'notEmpty', + 'required' => true, + 'allowEmpty' => false + ) + ) + ); + $data = array( + 'CustomArticle' => array( + 'body' => 'foo0' + ) + ); + $result = $model->saveAll($data, array('validate' => 'first')); + $this->assertTrue($result); + + $title = $model->field('title', array('body' => 'foo0')); + $this->assertEquals('foo', $title); + + $data = array( + array('body' => 'foo1'), + array('body' => 'foo2'), + array('body' => 'foo3') + ); + + $result = $model->saveAll($data, array('validate' => 'first')); + $this->assertTrue($result); + + $this->assertEquals('foo', $model->field('title', array('body' => 'foo1'))); + $this->assertEquals('foo', $model->field('title', array('body' => 'foo2'))); + $this->assertEquals('foo', $model->field('title', array('body' => 'foo3'))); + } + +/** + * Tests that altering data in a beforeValidate callback will lead to saving those + * values in database + * + * @return void + */ + public function testValidateAssociatedWithBeforeValidate() { + $this->loadFixtures('Article', 'User'); + $model = new CustomArticle(); + $model->validate = array( + 'title' => array( + 'notempty' => array( + 'rule' => 'notEmpty', + 'required' => true + ) + ) + ); + $articles = array( + array('body' => 'foo1'), + array('body' => 'foo2'), + array('body' => 'foo3') + ); + $user = new User(); + $user->hasMany['CustomArticle'] = array('foreignKey' => 'user_id'); + $data = array( + 'User' => array('user' => 'foo', 'password' => 'bar'), + 'CustomArticle' => $articles + ); + $result = $user->saveAll($data, array('validate' => 'first')); + $this->assertTrue($result); + + $this->assertEquals('foo', $model->field('title', array('body' => 'foo1'))); + $this->assertEquals('foo', $model->field('title', array('body' => 'foo2'))); + $this->assertEquals('foo', $model->field('title', array('body' => 'foo3'))); + } + +} \ No newline at end of file diff --git a/lib/Cake/Test/Case/Model/ModelWriteTest.php b/lib/Cake/Test/Case/Model/ModelWriteTest.php index 1c9031ded..c0a3e3a52 100644 --- a/lib/Cake/Test/Case/Model/ModelWriteTest.php +++ b/lib/Cake/Test/Case/Model/ModelWriteTest.php @@ -4276,7 +4276,7 @@ class ModelWriteTest extends BaseModelTest { 'author_id' => '3', 'title' => 'Just update the title', 'body' => 'Second Post Body', - 'published' => 'Y', + 'published' => 'N', 'created' => '2007-03-18 10:41:23' )), array( @@ -4365,7 +4365,7 @@ class ModelWriteTest extends BaseModelTest { 'author_id' => '3', 'title' => 'Just update the title', 'body' => 'Second Post Body', - 'published' => 'Y', + 'published' => 'N', 'created' => '2007-03-18 10:41:23' ) ), @@ -5631,7 +5631,7 @@ class ModelWriteTest extends BaseModelTest { 'author_id' => '3', 'title' => 'Just update the title', 'body' => 'Second Post Body', - 'published' => 'Y', + 'published' => 'N', 'created' => '2007-03-18 10:41:23' ) ), @@ -5727,7 +5727,7 @@ class ModelWriteTest extends BaseModelTest { 'author_id' => '3', 'title' => 'Just update the title', 'body' => 'Second Post Body', - 'published' => 'Y', + 'published' => 'N', )), array( 'Post' => array( @@ -5779,24 +5779,24 @@ class ModelWriteTest extends BaseModelTest { public function testValidateMany() { $TestModel = new Article(); $TestModel->validate = array('title' => 'notEmpty'); - $result = $TestModel->validateMany( - array( + $data = array( 0 => array('title' => ''), 1 => array('title' => 'title 1'), 2 => array('title' => 'title 2'), - )); + ); + $result = $TestModel->validateMany($data); $this->assertFalse($result); $expected = array( 0 => array('title' => array('This field cannot be left blank')), ); $this->assertEquals($expected, $TestModel->validationErrors); - $result = $TestModel->validateMany( - array( + $data = array( 0 => array('title' => 'title 0'), 1 => array('title' => ''), 2 => array('title' => 'title 2'), - )); + ); + $result = $TestModel->validateMany($data); $this->assertFalse($result); $expected = array( 1 => array('title' => array('This field cannot be left blank')), @@ -5966,47 +5966,46 @@ class ModelWriteTest extends BaseModelTest { $TestModel->belongsTo = $TestModel->hasAndBelongsToMany = array(); $TestModel->Comment->validate = array('comment' => 'notEmpty'); - $result = $TestModel->validateAssociated( - array( - 'Article' => array('id' => 2), - 'Comment' => array( - array( - 'id' => 1, - 'comment' => '', - 'published' => 'Y', - 'user_id' => 1), - array( - 'id' => 2, - 'comment' => - 'comment', - 'published' => 'Y', - 'user_id' => 1 - )))); + $data = array( + 'Article' => array('id' => 2), + 'Comment' => array( + array( + 'id' => 1, + 'comment' => '', + 'published' => 'Y', + 'user_id' => 1), + array( + 'id' => 2, + 'comment' => + 'comment', + 'published' => 'Y', + 'user_id' => 1 + ))); + $result = $TestModel->validateAssociated($data); $this->assertFalse($result); - $result = $TestModel->validateAssociated( - array( - 'Article' => array('id' => 2), - 'Comment' => array( - array( - 'id' => 1, - 'comment' => '', - 'published' => 'Y', - 'user_id' => 1 - ), - array( - 'id' => 2, - 'comment' => 'comment', - 'published' => 'Y', - 'user_id' => 1 - ), - array( - 'id' => 3, - 'comment' => '', - 'published' => 'Y', - 'user_id' => 1 - ))), - array( + $data = array( + 'Article' => array('id' => 2), + 'Comment' => array( + array( + 'id' => 1, + 'comment' => '', + 'published' => 'Y', + 'user_id' => 1 + ), + array( + 'id' => 2, + 'comment' => 'comment', + 'published' => 'Y', + 'user_id' => 1 + ), + array( + 'id' => 3, + 'comment' => '', + 'published' => 'Y', + 'user_id' => 1 + ))); + $result = $TestModel->validateAssociated($data, array( 'atomic' => false )); $expected = array( diff --git a/lib/Cake/Test/Case/Model/models.php b/lib/Cake/Test/Case/Model/models.php index 43bad3123..41138e155 100644 --- a/lib/Cake/Test/Case/Model/models.php +++ b/lib/Cake/Test/Case/Model/models.php @@ -4948,6 +4948,13 @@ class CustomArticle extends AppModel { */ public $findMethods = array('unPublished' => true); +/** + * belongsTo property + * + * @var array + */ + public $belongsTo = array('User'); + /** * _findUnPublished custom find * @@ -4961,4 +4968,13 @@ class CustomArticle extends AppModel { return $results; } +/** + * Alters title data + * + * @return void + **/ + public function beforeValidate() { + $this->data[$this->alias]['title'] = 'foo'; + } + } From 1481f82ec1bc4d20683c8e20a6490b75ba80ed04 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Thu, 10 May 2012 00:05:30 -0430 Subject: [PATCH 80/85] Added warning messages in doc block for validateMany and validateAssociated about first param being passed by reference --- lib/Cake/Model/Model.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index d24ab16aa..3fa250c0f 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -2100,6 +2100,10 @@ class Model extends Object implements CakeEventListener { * - fieldList: Equivalent to the $fieldList parameter in Model::save() * - deep: If set to true, all associated data will be validated as well. * + * Warning: This method could potentially change the passed argument `$data`, + * If you do not want this to happen, make a copy of `$data` before passing it + * to this method + * * @param array $data Record data to validate. This should be a numerically-indexed array * @param array $options Options to use when validating record data (see above), See also $options of validates(). * @return boolean True on success, or false on failure. @@ -2301,6 +2305,10 @@ class Model extends Object implements CakeEventListener { * - fieldList: Equivalent to the $fieldList parameter in Model::save() * - deep: If set to true, not only directly associated data , but deeper nested associated data is validated as well. * + * Warning: This method could potentially change the passed argument `$data`, + * If you do not want this to happen, make a copy of `$data` before passing it + * to this method + * * @param array $data Record data to validate. This should be an array indexed by association name. * @param array $options Options to use when validating record data (see above), See also $options of validates(). * @return array|boolean If atomic: True on success, or false on failure. From 82e87791f6d01ee59389a7bdb1e8e3ee92aa1630 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Thu, 10 May 2012 00:47:35 -0430 Subject: [PATCH 81/85] Ugly hack to fix saveAll deep and beforeValidate callbacks changing model data --- lib/Cake/Model/Model.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 3fa250c0f..9770ef419 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -2324,7 +2324,16 @@ class Model extends Object implements CakeEventListener { } else { $return[$this->alias] = true; } - $data[$this->alias] = $this->data[$this->alias]; + + if (empty($options['deep'])) { + $data[$this->alias] = $this->data[$this->alias]; + } else { + $modelData = $this->data; + $recordData = $modelData[$this->alias]; + unset($modelData[$this->alias]); + $data = $modelData + array_merge($data, $recordData); + } + $associations = $this->getAssociated(); foreach ($data as $association => &$values) { $validates = true; From f06fbb00754f53124236baa53369e54cfbd53a44 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Thu, 10 May 2012 00:52:54 -0430 Subject: [PATCH 82/85] Making validateAssociated overwrite data consistently with validateMany --- lib/Cake/Model/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 9770ef419..544a53839 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -2326,7 +2326,7 @@ class Model extends Object implements CakeEventListener { } if (empty($options['deep'])) { - $data[$this->alias] = $this->data[$this->alias]; + $data = $this->data; } else { $modelData = $this->data; $recordData = $modelData[$this->alias]; From 89959afa63b108c5457a9f32fda4536cf6dea958 Mon Sep 17 00:00:00 2001 From: Rachman Chavik Date: Wed, 9 May 2012 12:04:24 +0700 Subject: [PATCH 83/85] fix incorrect __construct params for mock object --- lib/Cake/Test/Case/Console/ShellDispatcherTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/Console/ShellDispatcherTest.php b/lib/Cake/Test/Case/Console/ShellDispatcherTest.php index 3268d934d..f7705c47a 100644 --- a/lib/Cake/Test/Case/Console/ShellDispatcherTest.php +++ b/lib/Cake/Test/Case/Console/ShellDispatcherTest.php @@ -437,7 +437,7 @@ class ShellDispatcherTest extends CakeTestCase { */ public function testDispatchShellWithMain() { $Dispatcher = new TestShellDispatcher(); - $Mock = $this->getMock('Shell', array(), array(&$Dispatcher), 'MockWithMainShell'); + $Mock = $this->getMock('Shell', array(), array(), 'MockWithMainShell'); $Mock->expects($this->once())->method('initialize'); $Mock->expects($this->once())->method('loadTasks'); @@ -460,9 +460,9 @@ class ShellDispatcherTest extends CakeTestCase { */ public function testDispatchShellWithoutMain() { $Dispatcher = new TestShellDispatcher(); - $Shell = $this->getMock('Shell', array(), array(&$Dispatcher), 'MockWithoutMainShell'); + $Shell = $this->getMock('Shell', array(), array(), 'MockWithoutMainShell'); - $Shell = new MockWithoutMainShell($Dispatcher); + $Shell = new MockWithoutMainShell(); $this->mockObjects[] = $Shell; $Shell->expects($this->once())->method('initialize'); From a96e4397beb0dd5e28ac463b630ef1da9f0240e0 Mon Sep 17 00:00:00 2001 From: Rachman Chavik Date: Thu, 10 May 2012 19:03:12 +0700 Subject: [PATCH 84/85] check extension before passing to addTestFile() --- lib/Cake/Test/Case/Console/AllConsoleLibsTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Console/AllConsoleLibsTest.php b/lib/Cake/Test/Case/Console/AllConsoleLibsTest.php index 4d13c5df1..5a6846b9e 100644 --- a/lib/Cake/Test/Case/Console/AllConsoleLibsTest.php +++ b/lib/Cake/Test/Case/Console/AllConsoleLibsTest.php @@ -38,7 +38,10 @@ class AllConsoleLibsTest extends PHPUnit_Framework_TestSuite { if (!$file->isFile() || strpos($file, 'All') === 0) { continue; } - $suite->addTestFile($file->getRealPath()); + $fileName = $file->getRealPath(); + if (substr($fileName, -4) === '.php') { + $suite->addTestFile($file->getRealPath()); + } } return $suite; } From 539fa3a1310fbf62008442522749f920b1cbbf6a Mon Sep 17 00:00:00 2001 From: Rachman Chavik Date: Thu, 10 May 2012 19:47:01 +0700 Subject: [PATCH 85/85] fixing method signature in test models --- lib/Cake/Test/Case/Model/models.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Model/models.php b/lib/Cake/Test/Case/Model/models.php index 41138e155..fe0db80a2 100644 --- a/lib/Cake/Test/Case/Model/models.php +++ b/lib/Cake/Test/Case/Model/models.php @@ -4973,7 +4973,7 @@ class CustomArticle extends AppModel { * * @return void **/ - public function beforeValidate() { + public function beforeValidate($options = array()) { $this->data[$this->alias]['title'] = 'foo'; }