Removed trailing whitespaces from tests.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7848 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
renan.saddam 2008-11-08 02:58:37 +00:00
parent 6319f8ea69
commit 111b886570
142 changed files with 574 additions and 584 deletions

View file

@ -1638,13 +1638,13 @@ class DispatcherTest extends CakeTestCase {
$this->assertEqual($result, $expected);
$filename = $this->__cachePath($dispatcher->here);
unlink($filename);
$url = 'test_cached_pages/view/foo:bar/value:goo';
ob_start();
$dispatcher->dispatch($url);
$out = ob_get_clean();
ob_start();
$dispatcher->cached($url);
$cached = ob_get_clean();
@ -1652,7 +1652,7 @@ class DispatcherTest extends CakeTestCase {
$result = str_replace(array("\t", "\r\n", "\n"), "", $out);
$cached = preg_replace('/<!--+[^<>]+-->/', '', $cached);
$expected = str_replace(array("\t", "\r\n", "\n"), "", $cached);
$this->assertEqual($result, $expected);
$filename = $this->__cachePath($dispatcher->here);
$this->assertTrue(file_exists($filename));

View file

@ -47,7 +47,7 @@ class MemcacheEngineTest extends UnitTestCase {
*/
function skip() {
$skip = true;
if($result = Cache::engine('Memcache')) {
if ($result = Cache::engine('Memcache')) {
$skip = false;
}
$this->skipif($skip, 'Memcache is not installed or configured properly');

View file

@ -42,7 +42,7 @@ class XcacheEngineTest extends UnitTestCase {
*/
function skip() {
$skip = true;
if($result = Cache::engine('Xcache')) {
if ($result = Cache::engine('Xcache')) {
$skip = false;
}
$this->skipif($skip, 'Xcache is not installed or configured properly');

View file

@ -34,7 +34,7 @@ App::import('Core', 'Log');
class CakeLogTest extends CakeTestCase {
/**
* testLogFileWriting method
*
*
* @access public
* @return void
*/

View file

@ -85,7 +85,7 @@ class CakeTestFixtureImportFixture extends CakeTestFixture {
* Import property
*
* @var array
*/
*/
var $import = array('table' => 'fixture_tests', 'connection' => 'test_suite');
}
@ -110,7 +110,7 @@ Mock::generate('DboSource', 'FixtureMockDboSource');
* @subpackage cake.cake.tests.cases.libs
*/
class CakeTestFixtureTest extends CakeTestCase {
function setUp() {
$this->criticDb =& new FixtureMockDboSource();
$this->criticDb->fullDebug = true;
@ -176,7 +176,7 @@ class CakeTestFixtureTest extends CakeTestCase {
$return = $Fixture->create($this->criticDb);
$this->assertTrue($this->criticDb->fullDebug);
$this->assertTrue($return);
unset($Fixture->fields);
$return = $Fixture->create($this->criticDb);
$this->assertFalse($return);
@ -207,11 +207,11 @@ class CakeTestFixtureTest extends CakeTestCase {
$this->criticDb->setReturnValueAt(0, 'execute', true);
$this->criticDb->expectAtLeastOnce('execute');
$this->criticDb->expectAtLeastOnce('dropSchema');
$return = $Fixture->drop($this->criticDb);
$this->assertTrue($this->criticDb->fullDebug);
$this->assertTrue($return);
$this->criticDb->setReturnValueAt(1, 'execute', false);
$return = $Fixture->drop($this->criticDb);
$this->assertFalse($return);

View file

@ -515,7 +515,7 @@ class AppImportTest extends UnitTestCase {
$result = App::import('Vendor', 'TestHello', array('file' => 'Test'.DS.'hello.php'));
$text = ob_get_clean();
$this->assertTrue($result);
$this->assertEqual($text, 'This is the hello.php file in Test directoy');
$this->assertEqual($text, 'This is the hello.php file in Test directory');
ob_start();
$result = App::import('Vendor', 'MyTest', array('file' => 'Test'.DS.'MyTest.php'));
@ -527,13 +527,13 @@ class AppImportTest extends UnitTestCase {
$result = App::import('Vendor', 'Welcome');
$text = ob_get_clean();
$this->assertTrue($result);
$this->assertEqual($text, 'This is the welcome.php file in vendors directoy');
$this->assertEqual($text, 'This is the welcome.php file in vendors directory');
ob_start();
$result = App::import('Vendor', 'TestPlugin.Welcome');
$text = ob_get_clean();
$this->assertTrue($result);
$this->assertEqual($text, 'This is the welcome.php file in test_plugin/vendors directoy');
$this->assertEqual($text, 'This is the welcome.php file in test_plugin/vendors directory');
}
}

View file

@ -287,7 +287,7 @@ class AuthTestController extends Controller {
* @return void
*/
function isAuthorized() {
if(isset($this->params['testControllerAuth'])) {
if (isset($this->params['testControllerAuth'])) {
return false;
}
return true;

View file

@ -35,14 +35,14 @@ App::import('Core', 'Inflector');
class InflectorTest extends CakeTestCase {
/**
* Inflector property
*
*
* @var mixed null
* @access public
*/
var $Inflector = null;
/**
* setUp method
*
*
* @access public
* @return void
*/
@ -51,7 +51,7 @@ class InflectorTest extends CakeTestCase {
}
/**
* testInstantiation method
*
*
* @access public
* @return void
*/
@ -60,7 +60,7 @@ class InflectorTest extends CakeTestCase {
}
/**
* testInflectingSingulars method
*
*
* @access public
* @return void
*/
@ -106,7 +106,7 @@ class InflectorTest extends CakeTestCase {
}
/**
* testInflectingPlurals method
*
*
* @access public
* @return void
*/
@ -144,11 +144,11 @@ class InflectorTest extends CakeTestCase {
$this->assertEqual(Inflector::pluralize('person'), 'people');
$this->assertEqual(Inflector::pluralize('people'), 'people');
$this->assertEqual(Inflector::pluralize('glove'), 'gloves');
$this->assertEqual(Inflector::pluralize(''), '');
$this->assertEqual(Inflector::pluralize(''), '');
}
/**
* testInflectorSlug method
*
*
* @access public
* @return void
*/
@ -168,7 +168,7 @@ class InflectorTest extends CakeTestCase {
$result = Inflector::slug('Foo Bar: Not just for breakfast any-more', "+");
$expected = 'Foo+Bar+Not+just+for+breakfast+any+more';
$this->assertEqual($result, $expected);
$result = Inflector::slug('Äpfel Über Öl grün ärgert groß öko', '-');
$expected = 'Aepfel-Ueber-Oel-gruen-aergert-gross-oeko';
$this->assertEqual($result, $expected);
@ -180,7 +180,7 @@ class InflectorTest extends CakeTestCase {
$result = Inflector::slug('The truth: and more news', '-');
$expected = 'The-truth-and-more-news';
$this->assertEqual($result, $expected);
$result = Inflector::slug('La langue française est un attribut de souveraineté en France', '-');
$expected = 'La-langue-francaise-est-un-attribut-de-souverainete-en-France';
$this->assertEqual($result, $expected);
@ -199,7 +199,7 @@ class InflectorTest extends CakeTestCase {
}
/**
* testVariableNaming method
*
*
* @access public
* @return void
*/
@ -211,7 +211,7 @@ class InflectorTest extends CakeTestCase {
}
/**
* testClassNaming method
*
*
* @access public
* @return void
*/
@ -222,7 +222,7 @@ class InflectorTest extends CakeTestCase {
}
/**
* testTableNaming method
*
*
* @access public
* @return void
*/
@ -233,7 +233,7 @@ class InflectorTest extends CakeTestCase {
}
/**
* testHumanization method
*
*
* @access public
* @return void
*/
@ -244,7 +244,7 @@ class InflectorTest extends CakeTestCase {
}
/**
* tearDown method
*
*
* @access public
* @return void
*/

View file

@ -161,7 +161,7 @@ class MagicDbTest extends UnitTestCase {
*/
/**
* MagicDbTestData class
*
*
* @package cake
* @subpackage cake.tests.cases.libs
*/
@ -187,7 +187,7 @@ class MagicDbTestData extends Object {
function get($key) {
/**
* data property
*
*
* @var array
* @access public
*/

View file

@ -39,22 +39,22 @@ require_once LIBS.'model'.DS.'datasources'.DS.'dbo'.DS.'dbo_adodb.php';
class DboAdoTestDb extends DboAdodb {
/**
* simulated property
*
*
* @var array
* @access public
*/
var $simulated = array();
/**
* testing property
*
*
* @var bool true
* @access public
*/
var $testing = true;
/**
* execute method
*
* @param mixed $sql
*
* @param mixed $sql
* @access protected
* @return void
*/
@ -67,7 +67,7 @@ class DboAdoTestDb extends DboAdodb {
}
/**
* getLastQuery method
*
*
* @access public
* @return void
*/
@ -85,25 +85,25 @@ class DboAdoTestDb extends DboAdodb {
class AdodbTestModel extends CakeTestModel {
/**
* name property
*
*
* @var string 'AdodbTestModel'
* @access public
*/
var $name = 'AdodbTestModel';
/**
* useTable property
*
*
* @var bool false
* @access public
*/
var $useTable = false;
/**
* find method
*
* @param mixed $conditions
* @param mixed $fields
* @param mixed $order
* @param mixed $recursive
*
* @param mixed $conditions
* @param mixed $fields
* @param mixed $order
* @param mixed $recursive
* @access public
* @return void
*/
@ -112,11 +112,11 @@ class AdodbTestModel extends CakeTestModel {
}
/**
* findAll method
*
* @param mixed $conditions
* @param mixed $fields
* @param mixed $order
* @param mixed $recursive
*
* @param mixed $conditions
* @param mixed $fields
* @param mixed $order
* @param mixed $recursive
* @access public
* @return void
*/
@ -125,7 +125,7 @@ class AdodbTestModel extends CakeTestModel {
}
/**
* schema method
*
*
* @access public
* @return void
*/
@ -156,19 +156,19 @@ class AdodbTestModel extends CakeTestModel {
if (!class_exists('Article')) {
/**
* Article class
*
*
* @package cake
* @subpackage cake.tests.cases.libs.model.datasources.dbo
*/
class Article extends CakeTestModel {
/**
* name property
*
*
* @var string 'Article'
* @access public
*/
var $name = 'Article';
}
}
@ -186,14 +186,14 @@ class DboAdodbTest extends CakeTestCase {
* @access public
*/
var $db = null;
/**
* undocumented class variable
*
* @var string
**/
var $fixtures = array('core.article');
/**
* Skip if cannot connect to AdoDb
*
@ -273,7 +273,7 @@ class DboAdodbTest extends CakeTestCase {
}
/**
* testColumns method
*
*
* @access public
* @return void
*/

View file

@ -32,22 +32,22 @@ require_once LIBS.'model'.DS.'datasources'.DS.'dbo'.DS.'dbo_mssql.php';
/**
* DboMssqlTestDb class
*
*
* @package cake
* @subpackage cake.tests.cases.libs.model.datasources.dbo
*/
class DboMssqlTestDb extends DboMssql {
/**
* simulated property
*
*
* @var array
* @access public
*/
var $simulated = array();
/**
* execute method
*
* @param mixed $sql
*
* @param mixed $sql
* @access protected
* @return void
*/
@ -57,7 +57,7 @@ class DboMssqlTestDb extends DboMssql {
}
/**
* getLastQuery method
*
*
* @access public
* @return void
*/
@ -75,25 +75,25 @@ class DboMssqlTestDb extends DboMssql {
class MssqlTestModel extends Model {
/**
* name property
*
*
* @var string 'MssqlTestModel'
* @access public
*/
var $name = 'MssqlTestModel';
/**
* useTable property
*
*
* @var bool false
* @access public
*/
var $useTable = false;
/**
* find method
*
* @param mixed $conditions
* @param mixed $fields
* @param mixed $order
* @param mixed $recursive
*
* @param mixed $conditions
* @param mixed $fields
* @param mixed $order
* @param mixed $recursive
* @access public
* @return void
*/
@ -102,11 +102,11 @@ class MssqlTestModel extends Model {
}
/**
* findAll method
*
* @param mixed $conditions
* @param mixed $fields
* @param mixed $order
* @param mixed $recursive
*
* @param mixed $conditions
* @param mixed $fields
* @param mixed $order
* @param mixed $recursive
* @access public
* @return void
*/
@ -115,7 +115,7 @@ class MssqlTestModel extends Model {
}
/**
* schema method
*
*
* @access public
* @return void
*/
@ -178,7 +178,7 @@ class DboMssqlTest extends CakeTestCase {
}
/**
* testQuoting method
*
*
* @access public
* @return void
*/
@ -216,7 +216,7 @@ class DboMssqlTest extends CakeTestCase {
}
/**
* testDistinctFields method
*
*
* @access public
* @return void
*/
@ -231,7 +231,7 @@ class DboMssqlTest extends CakeTestCase {
}
/**
* testDistinctWithLimit method
*
*
* @access public
* @return void
*/
@ -245,7 +245,7 @@ class DboMssqlTest extends CakeTestCase {
}
/**
* tearDown method
*
*
* @access public
* @return void
*/

View file

@ -28,7 +28,6 @@ if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
}
App::import('Core', array('Model', 'DataSource', 'DboSource', 'DboMysql'));
/**
* Short description for class.
*

View file

@ -32,7 +32,6 @@ require_once LIBS . 'model' . DS . 'datasources' . DS . 'dbo_source.php';
require_once LIBS . 'model' . DS . 'datasources' . DS . 'dbo' . DS . 'dbo_postgres.php';
require_once dirname(dirname(dirname(__FILE__))) . DS . 'models.php';
/**
* Short description for class.
*

View file

@ -32,7 +32,6 @@ require_once LIBS.'model'.DS.'datasources'.DS.'dbo_source.php';
require_once LIBS.'model'.DS.'datasources'.DS.'dbo'.DS.'dbo_sqlite.php';
require_once dirname(dirname(dirname(__FILE__))) . DS . 'models.php';
/**
* Short description for class.
*

View file

@ -40,14 +40,14 @@ App::import('Core', 'db_acl');
class DbAclNodeTestBase extends AclNode {
/**
* useDbConfig property
*
*
* @var string 'test_suite'
* @access public
*/
var $useDbConfig = 'test_suite';
/**
* cacheSources property
*
*
* @var bool false
* @access public
*/
@ -63,21 +63,21 @@ class DbAclNodeTestBase extends AclNode {
class DbAroTest extends DbAclNodeTestBase {
/**
* name property
*
*
* @var string 'DbAroTest'
* @access public
*/
var $name = 'DbAroTest';
/**
* useTable property
*
*
* @var string 'aros'
* @access public
*/
var $useTable = 'aros';
/**
* hasAndBelongsToMany property
*
*
* @var array
* @access public
*/
@ -93,21 +93,21 @@ class DbAroTest extends DbAclNodeTestBase {
class DbAcoTest extends DbAclNodeTestBase {
/**
* name property
*
*
* @var string 'DbAcoTest'
* @access public
*/
var $name = 'DbAcoTest';
/**
* useTable property
*
*
* @var string 'acos'
* @access public
*/
var $useTable = 'acos';
/**
* hasAndBelongsToMany property
*
*
* @var array
* @access public
*/
@ -123,28 +123,28 @@ class DbAcoTest extends DbAclNodeTestBase {
class DbPermissionTest extends CakeTestModel {
/**
* name property
*
*
* @var string 'DbPermissionTest'
* @access public
*/
var $name = 'DbPermissionTest';
/**
* useTable property
*
*
* @var string 'aros_acos'
* @access public
*/
var $useTable = 'aros_acos';
/**
* cacheQueries property
*
*
* @var bool false
* @access public
*/
var $cacheQueries = false;
/**
* belongsTo property
*
*
* @var array
* @access public
*/
@ -159,21 +159,21 @@ class DbPermissionTest extends CakeTestModel {
class DbAcoActionTest extends CakeTestModel {
/**
* name property
*
*
* @var string 'DbAcoActionTest'
* @access public
*/
var $name = 'DbAcoActionTest';
/**
* useTable property
*
*
* @var string 'aco_actions'
* @access public
*/
var $useTable = 'aco_actions';
/**
* belongsTo property
*
*
* @var array
* @access public
*/
@ -188,22 +188,22 @@ class DbAcoActionTest extends CakeTestModel {
class DbAroUserTest extends CakeTestModel {
/**
* name property
*
*
* @var string 'AuthUser'
* @access public
*/
var $name = 'AuthUser';
/**
* useTable property
*
*
* @var string 'auth_users'
* @access public
*/
var $useTable = 'auth_users';
/**
* bindNode method
*
* @param mixed $ref
*
* @param mixed $ref
* @access public
* @return void
*/
@ -225,7 +225,7 @@ class DbAroUserTest extends CakeTestModel {
class DbAclTest extends DbAcl {
/**
* construct method
*
*
* @access private
* @return void
*/
@ -245,14 +245,14 @@ class DbAclTest extends DbAcl {
class AclNodeTest extends CakeTestCase {
/**
* fixtures property
*
*
* @var array
* @access public
*/
var $fixtures = array('core.aro', 'core.aco', 'core.aros_aco', 'core.aco_action', 'core.auth_user');
/**
* setUp method
*
*
* @access public
* @return void
*/
@ -262,7 +262,7 @@ class AclNodeTest extends CakeTestCase {
}
/**
* testNode method
*
*
* @access public
* @return void
*/
@ -297,13 +297,13 @@ class AclNodeTest extends CakeTestCase {
$result = Set::extract($Aco->node('Controller2/action3/record5'), '{n}.DbAcoTest.id');
$this->assertFalse($result);
$result = $Aco->node('');
$this->assertEqual($result, null);
}
/**
* testNodeArrayFind method
*
*
* @access public
* @return void
*/
@ -317,11 +317,11 @@ class AclNodeTest extends CakeTestCase {
Configure::write('DbAclbindMode', 'array');
$result = Set::extract($Aro->node(array('DbAroUserTest' => array('id' => 4, 'foreign_key' => 2))), '{n}.DbAroTest.id');
$expected = array(4);
$this->assertEqual($result, $expected);
$this->assertEqual($result, $expected);
}
/**
* testNodeObjectFind method
*
*
* @access public
* @return void
*/
@ -332,16 +332,16 @@ class AclNodeTest extends CakeTestCase {
$result = Set::extract($Aro->node($Model), '{n}.DbAroTest.id');
$expected = array(3, 2, 1);
$this->assertEqual($result, $expected);
$Model->id = 2;
$result = Set::extract($Aro->node($Model), '{n}.DbAroTest.id');
$expected = array(4, 2, 1);
$this->assertEqual($result, $expected);
}
/**
* testNodeAliasParenting method
*
*
* @access public
* @return void
*/

View file

@ -102,7 +102,7 @@ class MyAppSchema extends CakeSchema {
/**
* TestAppSchema class
*
* @package cake
* @package cake.tests
* @subpackage cake.tests.cases.libs.model
*/
class TestAppSchema extends CakeSchema {
@ -323,7 +323,7 @@ class SchemaDatatype extends CakeTestModel {
* listSources has already been called and its source cache populated - I.e. if the test is run within a group
*
* @uses CakeTestModel
* @package
* @package
* @subpackage cake.tests.cases.libs.model
*/
class Testdescribe extends CakeTestModel {

View file

@ -34,7 +34,7 @@ App::import('Core', 'Overloadable');
class OverloadableTest extends CakeTestCase {
/**
* skip method
*
*
* @access public
* @return void
*/

View file

@ -1073,7 +1073,7 @@ class RouterTest extends CakeTestCase {
$result = Router::parse('/controller/action/param1=value1/param2=value2');
$expected = array('pass' => array('param2=value2'), 'named' => array('param1' => 'value1'), 'controller' => 'controller', 'action' => 'action', 'plugin' => null);
$this->assertEqual($result, $expected);
Router::reload();
Router::connect('/:controller/:action/*');
Router::connectNamed(array('page'), array('default' => false, 'greedy' => false));

View file

@ -27,21 +27,21 @@
App::import('Core', 'Sanitize');
/**
* DataTest class
*
*
* @package cake
* @subpackage cake.tests.cases.libs
*/
class SanitizeDataTest extends CakeTestModel {
/**
* name property
*
*
* @var string 'SanitizeDataTest'
* @access public
*/
var $name = 'SanitizeDataTest';
/**
* useTable property
*
*
* @var string 'data_tests'
* @access public
*/
@ -49,21 +49,21 @@ class SanitizeDataTest extends CakeTestModel {
}
/**
* Article class
*
*
* @package cake
* @subpackage cake.tests.cases.libs
*/
class SanitizeArticle extends CakeTestModel {
/**
* name property
*
*
* @var string 'Article'
* @access public
*/
var $name = 'SanitizeArticle';
/**
* useTable property
*
*
* @var string 'articles'
* @access public
*/
@ -78,22 +78,22 @@ class SanitizeArticle extends CakeTestModel {
class SanitizeTest extends CakeTestCase {
/**
* autoFixtures property
*
*
* @var bool false
* @access public
*/
var $autoFixtures = false;
/**
* fixtures property
*
*
* @var array
* @access public
*/
var $fixtures = array('core.data_test', 'core.article');
/**
* startTest method
*
* @param mixed $method
*
* @param mixed $method
* @access public
* @return void
*/
@ -103,7 +103,7 @@ class SanitizeTest extends CakeTestCase {
}
/**
* testEscapeAlphaNumeric method
*
*
* @access public
* @return void
*/
@ -134,7 +134,7 @@ class SanitizeTest extends CakeTestCase {
}
/**
* testClean method
*
*
* @access public
* @return void
*/
@ -183,7 +183,7 @@ class SanitizeTest extends CakeTestCase {
$expected = array(array('$', array('key' => 'test & "quote" \'other\' ;.$ $ symbol.another line')));
$result = Sanitize::clean($array, array('encode' => false, 'escape' => false));
$this->assertEqual($result, $expected);
$string = '';
$expected = '';
$result = Sanitize::clean($string);
@ -191,7 +191,7 @@ class SanitizeTest extends CakeTestCase {
}
/**
* testHtml method
*
*
* @access public
* @return void
*/
@ -200,7 +200,7 @@ class SanitizeTest extends CakeTestCase {
$expected = 'This is a test string & so is this';
$result = Sanitize::html($string, true);
$this->assertEqual($result, $expected);
$string = 'The "lazy" dog \'jumped\' & flew over the moon. If (1+1) = 2 <em>is</em> true, (2-1) = 1 is also true';
$expected = 'The &quot;lazy&quot; dog &#39;jumped&#39; &amp; flew over the moon. If &#40;1&#43;1&#41; = 2 &lt;em&gt;is&lt;/em&gt; true, &#40;2&#45;1&#41; = 1 is also true';
$result = Sanitize::html($string);
@ -208,7 +208,7 @@ class SanitizeTest extends CakeTestCase {
}
/**
* testStripWhitespace method
*
*
* @access public
* @return void
*/
@ -220,7 +220,7 @@ class SanitizeTest extends CakeTestCase {
}
/**
* testParanoid method
*
*
* @access public
* @return void
*/
@ -229,7 +229,7 @@ class SanitizeTest extends CakeTestCase {
$expected = 'Iwouldliketodancesing';
$result = Sanitize::paranoid($string);
$this->assertEqual($result, $expected);
$string = array('This |s th% s0ng that never ends it g*es',
'on and on my friends, b^ca#use it is the',
'so&g th===t never ends.');
@ -238,22 +238,22 @@ class SanitizeTest extends CakeTestCase {
'sog tht never ends.');
$result = Sanitize::paranoid($string, array('%', '*', '.', ' '));
$this->assertEqual($result, $expected);
$string = "anything' OR 1 = 1";
$expected = 'anythingOR11';
$result = Sanitize::paranoid($string);
$this->assertEqual($result, $expected);
$string = "x' AND email IS NULL; --";
$expected = 'xANDemailISNULL';
$result = Sanitize::paranoid($string);
$this->assertEqual($result, $expected);
$string = "x' AND 1=(SELECT COUNT(*) FROM users); --";
$expected = "xAND1SELECTCOUNTFROMusers";
$result = Sanitize::paranoid($string);
$this->assertEqual($result, $expected);
$string = "x'; DROP TABLE members; --";
$expected = "xDROPTABLEmembers";
$result = Sanitize::paranoid($string);
@ -261,7 +261,7 @@ class SanitizeTest extends CakeTestCase {
}
/**
* testStripImages method
*
*
* @access public
* @return void
*/
@ -270,17 +270,17 @@ class SanitizeTest extends CakeTestCase {
$expected = 'my image<br />';
$result = Sanitize::stripImages($string);
$this->assertEqual($result, $expected);
$string = '<img src="javascript:alert(\'XSS\');" />';
$expected = '';
$result = Sanitize::stripImages($string);
$this->assertEqual($result, $expected);
$string = '<a href="http://www.badsite.com/phising"><img src="/img/test.jpg" alt="test image alt" title="test image title" id="myImage" class="image-left"/></a>';
$expected = '<a href="http://www.badsite.com/phising">test image alt</a><br />';
$result = Sanitize::stripImages($string);
$this->assertEqual($result, $expected);
$string = '<a onclick="medium()" href="http://example.com"><img src="foobar.png" onclick="evilFunction(); return false;"/></a>';
$expected = '<a onclick="medium()" href="http://example.com"></a>';
$result = Sanitize::stripImages($string);
@ -288,7 +288,7 @@ class SanitizeTest extends CakeTestCase {
}
/**
* testStripScripts method
*
*
* @access public
* @return void
*/
@ -297,27 +297,27 @@ class SanitizeTest extends CakeTestCase {
$expected = '';
$result = Sanitize::stripScripts($string);
$this->assertEqual($result, $expected);
$string = '<link href="/css/styles.css" media="screen" rel="stylesheet" />'."\n".'<link rel="icon" href="/favicon.ico" type="image/x-icon" />'."\n".'<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />'."\n".'<link rel="alternate" href="/feed.xml" title="RSS Feed" type="application/rss+xml" />';
$expected = "\n".'<link rel="icon" href="/favicon.ico" type="image/x-icon" />'."\n".'<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />'."\n".'<link rel="alternate" href="/feed.xml" title="RSS Feed" type="application/rss+xml" />';
$result = Sanitize::stripScripts($string);
$this->assertEqual($result, $expected);
$string = '<script type="text/javascript"> alert("hacked!");</script>';
$expected = '';
$result = Sanitize::stripScripts($string);
$this->assertEqual($result, $expected);
$string = '<script> alert("hacked!");</script>';
$expected = '';
$result = Sanitize::stripScripts($string);
$this->assertEqual($result, $expected);
$string = '<style>#content { display:none; }</style>';
$expected = '';
$result = Sanitize::stripScripts($string);
$this->assertEqual($result, $expected);
$string = '<style type="text/css"><!-- #content { display:none; } --></style>';
$expected = '';
$result = Sanitize::stripScripts($string);
@ -325,7 +325,7 @@ class SanitizeTest extends CakeTestCase {
}
/**
* testStripAll method
*
*
* @access public
* @return void
*/
@ -334,17 +334,17 @@ class SanitizeTest extends CakeTestCase {
$expected ='"/>';
$result = Sanitize::stripAll($string);
$this->assertEqual($result, $expected);
$string = '<IMG SRC=&#0000106&#0000097&#0000118&#0000097&#0000115&#0000099&#0000114&#0000105&#0000112&#0000116&#0000058&#0000097&#0000108&#0000101&#0000114&#0000116&#0000040&#0000039&#0000088&#0000083&#0000083&#0000039&#0000041>';
$expected = '';
$result = Sanitize::stripAll($string);
$this->assertEqual($result, $expected);
$string = '<<script>alert("XSS");//<</script>';
$expected = '<';
$result = Sanitize::stripAll($string);
$this->assertEqual($result, $expected);
$string = '<img src="http://google.com/images/logo.gif" onload="window.location=\'http://sam.com/\'" />'."\n".
"<p>This is ok \t\n text</p>\n".
'<link rel="stylesheet" href="/css/master.css" type="text/css" media="screen" title="my sheet" charset="utf-8">'."\n".
@ -352,11 +352,11 @@ class SanitizeTest extends CakeTestCase {
$expected = '<p>This is ok text</p>';
$result = Sanitize::stripAll($string);
$this->assertEqual($result, $expected);
}
/**
* testStripTags method
*
*
* @access public
* @return void
*/
@ -365,12 +365,12 @@ class SanitizeTest extends CakeTestCase {
$expected = 'Headline<p>My Link could go to a bad site</p>';
$result = Sanitize::stripTags($string, 'h2', 'a');
$this->assertEqual($result, $expected);
$string = '<script type="text/javascript" src="http://evildomain.com"> </script>';
$expected = ' ';
$result = Sanitize::stripTags($string, 'script');
$this->assertEqual($result, $expected);
$string = '<h2>Important</h2><p>Additional information here <a href="/about"><img src="/img/test.png" /></a>. Read even more here</p>';
$expected = 'Important<p>Additional information here <img src="/img/test.png" />. Read even more here</p>';
$result = Sanitize::stripTags($string, 'h2', 'a');
@ -378,32 +378,32 @@ class SanitizeTest extends CakeTestCase {
}
/**
* testFormatColumns method
*
*
* @access public
* @return void
*/
function testFormatColumns() {
$this->loadFixtures('DataTest', 'Article');
$this->DataTest =& new SanitizeDataTest(array('alias' => 'DataTest'));
$data = array('DataTest' => array(
'id' => 'z',
'count' => '12a',
'float' => '2.31456',
'updated' => '2008-01-01'
'updated' => '2008-01-01'
)
);
$this->DataTest->set($data);
$this->DataTest->set($data);
$expected = array('DataTest' => array(
'id' => '0',
'count' => '12',
'float' => 2.31456,
'updated' => '2008-01-01 00:00:00',
'updated' => '2008-01-01 00:00:00',
));
Sanitize::formatColumns($this->DataTest);
$result = $this->DataTest->data;
$this->assertEqual($result, $expected);
$this->Article =& new SanitizeArticle(array('alias' => 'Article'));
$data = array('Article' => array(
'id' => 'ZB',

View file

@ -80,7 +80,7 @@ class SessionTest extends CakeTestCase {
$this->assertTrue(isset($result['testing']));
$this->assertTrue(isset($result['Config']));
$this->assertTrue(isset($result['Config']['userAgent']));
$this->Session->write('This.is.a.deep.array.my.friend', 'value');
$result = $this->Session->read('This.is.a.deep.array.my.friend');
$this->assertEqual('value', $result);

View file

@ -1882,7 +1882,7 @@ class SetTest extends CakeTestCase {
$expected->Piece = array($piece, $piece2);
$this->assertIdentical($expected, $result);
//Same data, but should work if _name_ has been manually defined:
$data = array(
'User' => array(

View file

@ -34,7 +34,7 @@ App::import('Core', 'Socket');
class SocketTest extends CakeTestCase {
/**
* setUp method
*
*
* @access public
* @return void
*/
@ -43,7 +43,7 @@ class SocketTest extends CakeTestCase {
}
/**
* testConstruct method
*
*
* @access public
* @return void
*/
@ -75,7 +75,7 @@ class SocketTest extends CakeTestCase {
}
/**
* testSocketConnection method
*
*
* @access public
* @return void
*/
@ -96,7 +96,7 @@ class SocketTest extends CakeTestCase {
}
/**
* testSocketHost method
*
*
* @access public
* @return void
*/
@ -117,7 +117,7 @@ class SocketTest extends CakeTestCase {
}
/**
* testSocketWriting method
*
*
* @access public
* @return void
*/
@ -127,7 +127,7 @@ class SocketTest extends CakeTestCase {
}
/**
* testSocketReading method
*
*
* @access public
* @return void
*/
@ -138,7 +138,7 @@ class SocketTest extends CakeTestCase {
}
/**
* testLastError method
*
*
* @access public
* @return void
*/
@ -149,7 +149,7 @@ class SocketTest extends CakeTestCase {
}
/**
* testReset method
*
*
* @access public
* @return void
*/
@ -167,7 +167,7 @@ class SocketTest extends CakeTestCase {
}
/**
* tearDown method
*
*
* @access public
* @return void
*/

View file

@ -163,18 +163,18 @@ class StringTest extends CakeTestCase {
$expected = "this is a long string with a few? params you know";
$this->assertEqual($result, $expected);
$result = String::insert('update saved_urls set url = :url where id = :id', array('url' => 'http://www.testurl.com/param1:url/param2:id','id' => 1));
$result = String::insert('update saved_urls set url = :url where id = :id', array('url' => 'http://www.testurl.com/param1:url/param2:id','id' => 1));
$expected = "update saved_urls set url = http://www.testurl.com/param1:url/param2:id where id = 1";
$this->assertEqual($result, $expected);
$result = String::insert('update saved_urls set url = :url where id = :id', array('id' => 1, 'url' => 'http://www.testurl.com/param1:url/param2:id'));
$result = String::insert('update saved_urls set url = :url where id = :id', array('id' => 1, 'url' => 'http://www.testurl.com/param1:url/param2:id'));
$expected = "update saved_urls set url = http://www.testurl.com/param1:url/param2:id where id = 1";
$this->assertEqual($result, $expected);
$result = String::insert(':me cake. :subject :verb fantastic.', array('me' => 'I :verb', 'subject' => 'cake', 'verb' => 'is'));
$result = String::insert(':me cake. :subject :verb fantastic.', array('me' => 'I :verb', 'subject' => 'cake', 'verb' => 'is'));
$expected = "I :verb cake. cake is fantastic.";
$this->assertEqual($result, $expected);
$result = String::insert(':I.am: :not.yet: passing.', array('I.am' => 'We are'), array('before' => ':', 'after' => ':', 'clean' => array('replacement' => ' of course', 'method' => 'text')));
$expected = "We are of course passing.";
$this->assertEqual($result, $expected);
@ -191,22 +191,22 @@ class StringTest extends CakeTestCase {
function testCleanInsert() {
$result = String::cleanInsert(':incomplete', array('clean' => true, 'before' => ':', 'after' => ''));
$this->assertEqual($result, '');
$result = String::cleanInsert(':incomplete', array(
'clean' => array('method' => 'text', 'replacement' => 'complete'),
'clean' => array('method' => 'text', 'replacement' => 'complete'),
'before' => ':', 'after' => '')
);
$this->assertEqual($result, 'complete');
$result = String::cleanInsert(':in.complete', array('clean' => true, 'before' => ':', 'after' => ''));
$this->assertEqual($result, '');
$result = String::cleanInsert(':in.complete and', array('clean' => true, 'before' => ':', 'after' => ''));
$this->assertEqual($result, '');
$result = String::cleanInsert(':in.complete or stuff', array('clean' => true, 'before' => ':', 'after' => ''));
$this->assertEqual($result, 'stuff');
$result = String::cleanInsert('<p class=":missing" id=":missing">Text here</p>', array('clean' => 'html', 'before' => ':', 'after' => ''));
$this->assertEqual($result, '<p>Text here</p>');
}

View file

@ -1847,7 +1847,7 @@ class ValidationTestCase extends CakeTestCase {
$this->assertTrue(Validation::phone('1 (222) 333 4444'));
$this->assertTrue(Validation::phone('+1 (222) 333 4444'));
$this->assertTrue(Validation::phone('(222) 333 4444'));
$this->assertTrue(Validation::phone('1-(333)-333-4444'));
$this->assertTrue(Validation::phone('1.(333)-333-4444'));
$this->assertTrue(Validation::phone('1.(333).333-4444'));

View file

@ -31,21 +31,21 @@ uses('view'.DS.'helpers'.DS.'app_helper', 'controller'.DS.'controller', 'model'.
'view'.DS.'helpers'.DS.'html', 'view'.DS.'helpers'.DS.'form', 'view'.DS.'helpers'.DS.'javascript');
/**
* AjaxTestController class
*
*
* @package cake
* @subpackage cake.tests.cases.libs.view.helpers
*/
class AjaxTestController extends Controller {
/**
* name property
*
*
* @var string 'AjaxTest'
* @access public
*/
var $name = 'AjaxTest';
/**
* uses property
*
*
* @var mixed null
* @access public
*/
@ -53,28 +53,28 @@ class AjaxTestController extends Controller {
}
/**
* PostAjaxTest class
*
*
* @package cake
* @subpackage cake.tests.cases.libs.view.helpers
*/
class PostAjaxTest extends Model {
/**
* primaryKey property
*
*
* @var string 'id'
* @access public
*/
var $primaryKey = 'id';
/**
* useTable property
*
*
* @var bool false
* @access public
*/
var $useTable = false;
/**
* schema method
*
*
* @access public
* @return void
*/
@ -89,14 +89,14 @@ class PostAjaxTest extends Model {
}
/**
* TestAjaxHelper class
*
*
* @package cake
* @subpackage cake.tests.cases.libs.view.helpers
*/
class TestAjaxHelper extends AjaxHelper {
/**
* stop method
*
*
* @access public
* @return void
*/
@ -105,22 +105,22 @@ class TestAjaxHelper extends AjaxHelper {
}
/**
* TestJavascriptHelper class
*
*
* @package cake
* @subpackage cake.tests.cases.libs.view.helpers
*/
class TestJavascriptHelper extends JavascriptHelper {
/**
* codeBlocks property
*
* @var mixed
*
* @var mixed
* @access public
*/
var $codeBlocks;
/**
* codeBlock method
*
* @param mixed $parameter
*
* @param mixed $parameter
* @access public
* @return void
*/
@ -153,7 +153,7 @@ class AjaxTest extends CakeTestCase {
var $cDataEnd = 'preg:/[^\]]*\]\]\>[\s\r\n]*/';
/**
* setUp method
*
*
* @access public
* @return void
*/
@ -170,7 +170,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testEvalScripts method
*
*
* @access public
* @return void
*/
@ -203,7 +203,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testAutoComplete method
*
*
* @access public
* @return void
*/
@ -239,17 +239,17 @@ class AjaxTest extends CakeTestCase {
$this->assertPattern('/<\/div>\s+<script type="text\/javascript">\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*' . str_replace('/', '\\/', preg_quote('new Ajax.Autocompleter(\'PostAjaxTestTitle\', \'PostAjaxTestTitle_autoComplete\', \'/posts\',')) . '/', $result);
$this->assertPattern('/' . str_replace('/', '\\/', preg_quote('new Ajax.Autocompleter(\'PostAjaxTestTitle\', \'PostAjaxTestTitle_autoComplete\', \'/posts\', {callback:function (input, queryString) { alert("requesting"); }});')) . '/', $result);
$this->assertPattern('/<\/script>$/', $result);
$result = $this->Ajax->autoComplete("PostAjaxText.title", "/post", array("parameters" => "'key=value&key2=value2'"));
$this->assertPattern('/{parameters:\'key=value&key2=value2\'}/', $result);
$result = $this->Ajax->autoComplete("PostAjaxText.title", "/post", array("with" => "'key=value&key2=value2'"));
$this->assertPattern('/{parameters:\'key=value&key2=value2\'}/', $result);
}
/**
* testAsynchronous method
*
*
* @access public
* @return void
*/
@ -269,7 +269,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testDraggable method
*
*
* @access public
* @return void
*/
@ -286,7 +286,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testDroppable method
*
*
* @access public
* @return void
*/
@ -333,7 +333,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testForm method
*
*
* @access public
* @return void
*/
@ -347,7 +347,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testSortable method
*
*
* @access public
* @return void
*/
@ -388,7 +388,7 @@ class AjaxTest extends CakeTestCase {
'handle' => 'grip',
'before' => "Element.hide('message')",
'complete' => "Element.show('message');"
));
));
$expected = 'Sortable.create(\'faqs\', {update:\'faqs\', tag:\'tbody\', handle:\'grip\', onUpdate:function(sortable) {Element.hide(\'message\'); new Ajax.Updater(\'faqs\',\'http://www.cakephp.org\', {asynchronous:true, evalScripts:true, onComplete:function(request, json) {Element.show(\'message\');}, parameters:Sortable.serialize(\'faqs\'), requestHeaders:[\'X-Update\', \'faqs\']})}});';
$this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*' . str_replace('/', '\\/', preg_quote($expected)) . '\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);
@ -420,18 +420,18 @@ class AjaxTest extends CakeTestCase {
}
/**
* testSubmitWithIndicator method
*
*
* @access public
* @return void
*/
function testSubmitWithIndicator() {
$result = $this->Ajax->submit('Add', array('div' => false, 'url' => "http://www.cakephp.org", 'indicator' => 'loading', 'loading' => "doSomething()", 'complete' => 'doSomethingElse() '));
$result = $this->Ajax->submit('Add', array('div' => false, 'url' => "http://www.cakephp.org", 'indicator' => 'loading', 'loading' => "doSomething()", 'complete' => 'doSomethingElse() '));
$this->assertPattern('/onLoading:function\(request\) {doSomething\(\);\s+Element.show\(\'loading\'\);}/', $result);
$this->assertPattern('/onComplete:function\(request, json\) {doSomethingElse\(\) ;\s+Element.hide\(\'loading\'\);}/', $result);
}
/**
* testLink method
*
*
* @access public
* @return void
*/
@ -540,7 +540,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testRemoteTimer method
*
*
* @access public
* @return void
*/
@ -595,7 +595,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testObserveField method
*
*
* @access public
* @return void
*/
@ -624,10 +624,10 @@ class AjaxTest extends CakeTestCase {
$this->assertPattern('/^<script[^<>]+>\s*' . str_replace('/', '\\/', preg_quote('//<![CDATA[')) . '\s*new Form.Element.EventObserver\(\'field\', function\(element, value\) {.+}\)\s*' . str_replace('/', '\\/', preg_quote('//]]>')) . '\s*<\/script>$/', $result);
$this->assertPattern('/' . str_replace('/', '\\/', preg_quote('new Ajax.Updater(\'divId\',\'http://www.cakephp.org\', {asynchronous:true, evalScripts:true, parameters:Form.Element.serialize(\'otherField\'), requestHeaders:[\'X-Update\', \'divId\']})')) . '/', $result);
}
/**
* testObserveForm method
*
*
* @access public
* @return void
*/
@ -674,7 +674,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testSlider method
*
*
* @access public
* @return void
*/
@ -751,7 +751,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testRemoteFunction method
*
*
* @access public
* @return void
*/
@ -774,7 +774,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testDiv method
*
*
* @access public
* @return void
*/
@ -805,7 +805,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testAfterRender method
*
*
* @access public
* @return void
*/
@ -832,7 +832,7 @@ class AjaxTest extends CakeTestCase {
}
/**
* testEditor method
*
*
* @access public
* @return void
*/
@ -853,17 +853,17 @@ class AjaxTest extends CakeTestCase {
$this->cDataStart,
"new Ajax.InPlaceEditor('myDiv', '/', {ajaxOptions:{asynchronous:true, evalScripts:true, onComplete:function(request, json) {testComplete();}}});",
$this->cDataEnd,
'/script'
'/script'
);
$this->assertTags($result, $expected);
$result = $this->Ajax->editor('myDiv', '/', array('callback' => 'callback();'));
$expected = array(
array('script' => array('type' => 'text/javascript')),
$this->cDataStart,
"new Ajax.InPlaceEditor('myDiv', '/', {callback:function(form, value) {callback();}, ajaxOptions:{asynchronous:true, evalScripts:true}});",
$this->cDataEnd,
'/script'
'/script'
);
$this->assertTags($result, $expected);
@ -873,7 +873,7 @@ class AjaxTest extends CakeTestCase {
$this->cDataStart,
"new Ajax.InPlaceCollectionEditor('myDiv', '/', {collection:{\"1\":\"first\",\"2\":\"second\"}, ajaxOptions:{asynchronous:true, evalScripts:true}});",
$this->cDataEnd,
'/script'
'/script'
);
$this->assertTags($result, $expected);
@ -883,13 +883,13 @@ class AjaxTest extends CakeTestCase {
$this->cDataStart,
"var myVar = new Ajax.InPlaceEditor('myDiv', '/', {ajaxOptions:{asynchronous:true, evalScripts:true}});",
$this->cDataEnd,
'/script'
'/script'
);
$this->assertTags($result, $expected);
}
/**
* tearDown method
*
*
* @access public
* @return void
*/

View file

@ -3187,14 +3187,14 @@ class FormHelperTest extends CakeTestCase {
'*/select'
);
$this->assertTags($result, $expected);
$selected = '1225031586';
$result = $this->Form->dateTime('Model.field', 'DMY', '12', $selected);
$this->assertPattern('/<option[^<>]+value="2008"[^<>]+selected="selected"[^>]*>2008<\/option>/', $result);
$this->assertPattern('/<option[^<>]+value="10"[^<>]+selected="selected"[^>]*>10<\/option>/', $result);
$this->assertPattern('/<option[^<>]+value="26"[^<>]+selected="selected"[^>]*>26<\/option>/', $result);
$this->assertPattern('/<option[^<>]+value="10"[^<>]+selected="selected"[^>]*>10<\/option>/', $result);
$this->assertPattern('/<option[^<>]+value="33"[^<>]+selected="selected"[^>]*>33<\/option>/', $result);
$this->assertPattern('/<option[^<>]+value="33"[^<>]+selected="selected"[^>]*>33<\/option>/', $result);
$this->Form->create('Contact');
$result = $this->Form->input('published');

View file

@ -28,21 +28,21 @@ App::import('Core', array('Controller', 'View', 'ClassRegistry', 'View'));
App::import('Helper', array('Javascript', 'Html', 'Form'));
/**
* TheJsTestController class
*
*
* @package cake
* @subpackage cake.tests.cases.libs.view.helpers
*/
class TheJsTestController extends Controller {
/**
* name property
*
*
* @var string 'TheTest'
* @access public
*/
var $name = 'TheTest';
/**
* uses property
*
*
* @var mixed null
* @access public
*/
@ -50,14 +50,14 @@ class TheJsTestController extends Controller {
}
/**
* TheView class
*
*
* @package cake
* @subpackage cake.tests.cases.libs.view.helpers
*/
class TheView extends View {
/**
* scripts method
*
*
* @access public
* @return void
*/
@ -67,21 +67,21 @@ class TheView extends View {
}
/**
* TestJavascriptObject class
*
*
* @package cake
* @subpackage cake.tests.cases.libs.view.helpers
*/
class TestJavascriptObject {
/**
* property1 property
*
*
* @var string 'value1'
* @access public
*/
var $property1 = 'value1';
/**
* property2 property
*
*
* @var int 2
* @access public
*/
@ -97,7 +97,7 @@ class TestJavascriptObject {
class JavascriptTest extends CakeTestCase {
/**
* setUp method
*
*
* @access public
* @return void
*/
@ -110,7 +110,7 @@ class JavascriptTest extends CakeTestCase {
}
/**
* tearDown method
*
*
* @access public
* @return void
*/
@ -123,7 +123,7 @@ class JavascriptTest extends CakeTestCase {
}
/**
* testConstruct method
*
*
* @access public
* @return void
*/
@ -136,7 +136,7 @@ class JavascriptTest extends CakeTestCase {
}
/**
* testLink method
*
*
* @access public
* @return void
*/
@ -196,7 +196,7 @@ class JavascriptTest extends CakeTestCase {
}
/**
* testFilteringAndTimestamping method
*
*
* @access public
* @return void
*/
@ -245,7 +245,7 @@ class JavascriptTest extends CakeTestCase {
}
/**
* testValue method
*
*
* @access public
* @return void
*/
@ -291,7 +291,7 @@ class JavascriptTest extends CakeTestCase {
}
/**
* testObjectGeneration method
*
*
* @access public
* @return void
*/
@ -322,11 +322,11 @@ class JavascriptTest extends CakeTestCase {
if (!$this->Javascript->useNative) {
$number = sprintf("%.11f", $number);
}
$result = $this->Javascript->object(array('Object' => array(true, false, 1, '02101', 0, -1, 3.141592653589, "1")));
$expected = '{"Object":[true,false,1,"02101",0,-1,' . $number . ',"1"]}';
$this->assertEqual($result, $expected);
$result = $this->Javascript->object(array('Object' => array(true => true, false, -3.141592653589, -10)));
$expected = '{"Object":{"1":true,"2":false,"3":' . (-1 * $number) . ',"4":-10}}';
$this->assertEqual($result, $expected);
@ -357,14 +357,14 @@ class JavascriptTest extends CakeTestCase {
}
/**
* testObjectNonNative method
*
*
* @access public
* @return void
*/
function testObjectNonNative() {
$oldNative = $this->Javascript->useNative;
$oldNative = $this->Javascript->useNative;
$this->Javascript->useNative = false;
$object = array(
'Object' => array(
'key1' => 'val1',
@ -376,12 +376,12 @@ class JavascriptTest extends CakeTestCase {
$expected = '{"Object":{"key1":val1,"key2":"val2","key3":val3}}';
$result = $this->Javascript->object($object, array('quoteKeys' => false, 'stringKeys' => array('key1', 'key3')));
$this->assertEqual($result, $expected);
$this->Javascript->useNative = $oldNative;
}
/**
* testScriptBlock method
*
*
* @access public
* @return void
*/
@ -461,7 +461,7 @@ class JavascriptTest extends CakeTestCase {
}
/**
* testOutOfLineScriptWriting method
*
*
* @access public
* @return void
*/
@ -474,7 +474,7 @@ class JavascriptTest extends CakeTestCase {
}
/**
* testEvent method
*
*
* @access public
* @return void
*/
@ -542,7 +542,7 @@ class JavascriptTest extends CakeTestCase {
}
/**
* testWriteEvents method
*
*
* @access public
* @return void
*/
@ -580,7 +580,7 @@ class JavascriptTest extends CakeTestCase {
}
/**
* testEscapeScript method
*
*
* @access public
* @return void
*/
@ -607,7 +607,7 @@ class JavascriptTest extends CakeTestCase {
}
/**
* testEscapeString method
*
*
* @access public
* @return void
*/
@ -634,7 +634,7 @@ class JavascriptTest extends CakeTestCase {
}
/**
* testAfterRender method
*
*
* @access public
* @return void
*/

View file

@ -39,7 +39,7 @@ uses('view'.DS.'helpers'.DS.'app_helper', 'controller'.DS.'controller', 'model'.
class JsTest extends UnitTestCase {
/**
* skip method
*
*
* @access public
* @return void
*/
@ -48,7 +48,7 @@ class JsTest extends UnitTestCase {
}
/**
* setUp method
*
*
* @access public
* @return void
*/
@ -57,7 +57,7 @@ class JsTest extends UnitTestCase {
}
/**
* tearDown method
*
*
* @access public
* @return void
*/

View file

@ -25,7 +25,6 @@
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
*/
App::import('Helper', array('Rss', 'Time'));
/**
* Short description for class.
*
@ -43,7 +42,7 @@ class RssTest extends CakeTestCase {
$this->Rss =& new RssHelper();
$this->Rss->Time =& new TimeHelper();
$this->Rss->beforeRender();
$manager =& XmlManager::getInstance();
$manager->namespaces = array();
}
@ -62,7 +61,7 @@ class RssTest extends CakeTestCase {
* @access public
* @return void
*/
function testAddNamespace() {
function testAddNamespace() {
$this->Rss->addNs('custom', 'http://example.com/dtd.xml');
$manager =& XmlManager::getInstance();
@ -252,7 +251,7 @@ class RssTest extends CakeTestCase {
$expected = '';
$this->assertEqual($result, $expected);
}
/**
* testItem method
*
@ -410,7 +409,7 @@ class RssTest extends CakeTestCase {
'/item'
);
$this->assertTags($result, $expected);
$item = array(
'title' => array(
'value' => 'My Title',

View file

@ -27,10 +27,8 @@
if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
define('CAKEPHP_UNIT_TEST_EXECUTION', 1);
}
App::import('Core', array('Helper', 'AppHelper', 'Controller', 'View'));
App::import('Helper', array('Session'));
/**
* Short description for class.
*

View file

@ -400,7 +400,7 @@ class ViewTest extends CakeTestCase {
$cached = false;
$result = $View->element($element, array('cache'=>'+1 second'));
if(file_exists(CACHE . 'views' . DS . 'element_cache_'.$element)) {
if (file_exists(CACHE . 'views' . DS . 'element_cache_'.$element)) {
$cached = true;
unlink(CACHE . 'views' . DS . 'element_cache_'.$element);
}
@ -408,7 +408,7 @@ class ViewTest extends CakeTestCase {
$cached = false;
$result = $View->element($element, array('cache'=>'+1 second', 'other_param'=> true, 'anotherParam'=> true));
if(file_exists(CACHE . 'views' . DS . 'element_cache_other_param_anotherParam_'.$element)) {
if (file_exists(CACHE . 'views' . DS . 'element_cache_other_param_anotherParam_'.$element)) {
$cached = true;
unlink(CACHE . 'views' . DS . 'element_cache_other_param_anotherParam_'.$element);
}
@ -416,7 +416,7 @@ class ViewTest extends CakeTestCase {
$cached = false;
$result = $View->element($element, array('cache'=>array('time'=>'+1 second', 'key'=>'/whatever/here')));
if(file_exists(CACHE . 'views' . DS . 'element_'.Inflector::slug('/whatever/here').'_'.$element)) {
if (file_exists(CACHE . 'views' . DS . 'element_'.Inflector::slug('/whatever/here').'_'.$element)) {
$cached = true;
unlink(CACHE . 'views' . DS . 'element_'.Inflector::slug('/whatever/here').'_'.$element);
}
@ -424,7 +424,7 @@ class ViewTest extends CakeTestCase {
$cached = false;
$result = $View->element($element, array('cache'=>array('time'=>'+1 second', 'key'=>'whatever_here')));
if(file_exists(CACHE . 'views' . DS . 'element_whatever_here_'.$element)) {
if (file_exists(CACHE . 'views' . DS . 'element_whatever_here_'.$element)) {
$cached = true;
unlink(CACHE . 'views' . DS . 'element_whatever_here_'.$element);
}

View file

@ -33,7 +33,6 @@ App::import('Core', 'Xml');
* @subpackage cake.tests.cases.libs
*/
class XmlTest extends CakeTestCase {
function setUp() {
$manager =& new XmlManager();
$manager->namespaces = array();

View file

@ -33,7 +33,7 @@
class AccountFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Aco'
* @access public
*/
@ -41,7 +41,7 @@ class AccountFixture extends CakeTestFixture {
var $table = 'Accounts';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -51,7 +51,7 @@ class AccountFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class AcoActionFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'AcoAction'
* @access public
*/
var $name = 'AcoAction';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -55,7 +55,7 @@ class AcoActionFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class AcoFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Aco'
* @access public
*/
var $name = 'Aco';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -55,7 +55,7 @@ class AcoFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class AcoTwoFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'AcoTwo'
* @access public
*/
var $name = 'AcoTwo';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -55,7 +55,7 @@ class AcoTwoFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -1,17 +1,17 @@
<?php
<?php
/* SVN FILE: $Id$ */
/**
* Short description for ad_fixture.php
*
*
* Long description for ad_fixture.php
*
*
* PHP versions 4 and 5
*
*
* CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
*
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
*
* @filesource
* @copyright CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
* @link http://www.cakephp.org
@ -25,21 +25,21 @@
*/
/**
* AdFixture class
*
*
* @package cake
* @subpackage cake.tests.fixtures
*/
class AdFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Ad'
* @access public
*/
var $name = 'Ad';
var $name = 'Ad';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -53,7 +53,7 @@ class AdFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/
@ -66,6 +66,6 @@ class AdFixture extends CakeTestFixture {
array('parent_id' => null, 'lft' => 10, 'rght' => 11, 'campaign_id' => 2, 'name' => 'Alborg'),
array('parent_id' => null, 'lft' => 13, 'rght' => 14, 'campaign_id' => 3, 'name' => 'New York')
);
}
}
?>

View file

@ -33,14 +33,14 @@
class AdvertisementFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Advertisement'
* @access public
*/
var $name = 'Advertisement';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -52,7 +52,7 @@ class AdvertisementFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class AnotherArticleFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'AnotherArticle'
* @access public
*/
var $name = 'AnotherArticle';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -52,7 +52,7 @@ class AnotherArticleFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -56,7 +56,7 @@ class AppleFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class AroFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Aro'
* @access public
*/
var $name = 'Aro';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -55,7 +55,7 @@ class AroFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class AroTwoFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'AroTwo'
* @access public
*/
var $name = 'AroTwo';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -55,7 +55,7 @@ class AroTwoFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class ArosAcoFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'ArosAco'
* @access public
*/
var $name = 'ArosAco';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -55,7 +55,7 @@ class ArosAcoFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class ArticleFeaturedFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'ArticleFeatured'
* @access public
*/
var $name = 'ArticleFeatured';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -55,7 +55,7 @@ class ArticleFeaturedFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class ArticleFeaturedsTagsFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'ArticleFeaturedsTags'
* @access public
*/
var $name = 'ArticleFeaturedsTags';
/**
* fields property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class ArticleFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Article'
* @access public
*/
var $name = 'Article';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -55,7 +55,7 @@ class ArticleFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class ArticlesTagFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'ArticlesTag'
* @access public
*/
var $name = 'ArticlesTag';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -51,7 +51,7 @@ class ArticlesTagFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class AttachmentFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Attachment'
* @access public
*/
var $name = 'Attachment';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -53,7 +53,7 @@ class AttachmentFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class AuthUserFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'AuthUser'
* @access public
*/
var $name = 'AuthUser';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -53,7 +53,7 @@ class AuthUserFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class AuthorFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Author'
* @access public
*/
var $name = 'Author';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -53,7 +53,7 @@ class AuthorFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class BasketFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Basket'
* @access public
*/
var $name = 'Basket';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -53,7 +53,7 @@ class BasketFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class BidFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Bid'
* @access public
*/
var $name = 'Bid';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -51,7 +51,7 @@ class BidFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class BinaryTestFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'BinaryTest'
* @access public
*/
var $name = 'BinaryTest';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class BinaryTestFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class CacheTestModelFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'CacheTestModel'
* @access public
*/
var $name = 'CacheTestModel';
/**
* fields property
*
*
* @var array
* @access public
*/

View file

@ -53,7 +53,7 @@ class CallbackFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -1,17 +1,17 @@
<?php
<?php
/* SVN FILE: $Id$ */
/**
* Short description for campaign_fixture.php
*
*
* Long description for campaign_fixture.php
*
*
* PHP versions 4 and 5
*
*
* CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
*
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
*
* @filesource
* @copyright CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
* @link http://www.cakephp.org
@ -25,31 +25,31 @@
*/
/**
* CampaignFixture class
*
*
* @package cake
* @subpackage cake.tests.fixtures
*/
class CampaignFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Campaign'
* @access public
*/
var $name = 'Campaign';
var $name = 'Campaign';
/**
* fields property
*
*
* @var array
* @access public
*/
var $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'),
'name' => array('type' => 'string', 'length' => 255, 'null' => false),
);
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class CategoryThreadFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'CategoryThread'
* @access public
*/
var $name = 'CategoryThread';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -53,7 +53,7 @@ class CategoryThreadFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class CommentFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Comment'
* @access public
*/
var $name = 'Comment';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -55,7 +55,7 @@ class CommentFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,7 +33,7 @@
class ContentAccountFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Aco'
* @access public
*/
@ -41,7 +41,7 @@ class ContentAccountFixture extends CakeTestFixture {
var $table = 'ContentAccounts';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -52,7 +52,7 @@ class ContentAccountFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,7 +33,7 @@
class ContentFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Aco'
* @access public
*/
@ -41,7 +41,7 @@ class ContentFixture extends CakeTestFixture {
var $table = 'Content';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -51,7 +51,7 @@ class ContentFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class DataTestFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'DataTest'
* @access public
*/
var $name = 'DataTest';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -54,7 +54,7 @@ class DataTestFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class DatatypeFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Datatype'
* @access public
*/
var $name = 'Datatype';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class DatatypeFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -53,7 +53,7 @@ class DependencyFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class DeviceFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Device'
* @access public
*/
var $name = 'Device';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -52,7 +52,7 @@ class DeviceFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class DeviceTypeCategoryFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'DeviceTypeCategory'
* @access public
*/
var $name = 'DeviceTypeCategory';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class DeviceTypeCategoryFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class DeviceTypeFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'DeviceType'
* @access public
*/
var $name = 'DeviceType';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -57,7 +57,7 @@ class DeviceTypeFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -50,7 +50,7 @@ class DocumentDirectoryFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class DocumentFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Document'
* @access public
*/
var $name = 'Document';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -51,7 +51,7 @@ class DocumentFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class ExteriorTypeCategoryFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'ExteriorTypeCategory'
* @access public
*/
var $name = 'ExteriorTypeCategory';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -51,7 +51,7 @@ class ExteriorTypeCategoryFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class FeatureSetFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'FeatureSet'
* @access public
*/
var $name = 'FeatureSet';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class FeatureSetFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class FeaturedFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Featured'
* @access public
*/
var $name = 'Featured';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -55,7 +55,7 @@ class FeaturedFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class FilmFileFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'FilmFile'
* @access public
*/
var $name = 'FilmFile';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class FilmFileFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -35,14 +35,14 @@
class FlagTreeFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'FlagTree'
* @access public
*/
var $name = 'FlagTree';
/**
* fields property
*
*
* @var array
* @access public
*/

View file

@ -54,7 +54,7 @@ class HomeFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class ImageFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Image'
* @access public
*/
var $name = 'Image';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class ImageFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class ItemFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Item'
* @access public
*/
var $name = 'Item';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -52,7 +52,7 @@ class ItemFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class ItemsPortfolioFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'ItemsPortfolio'
* @access public
*/
var $name = 'ItemsPortfolio';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -51,7 +51,7 @@ class ItemsPortfolioFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class JoinABFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'JoinAsJoinB'
* @access public
*/
var $name = 'JoinAsJoinB';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -54,7 +54,7 @@ class JoinABFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class JoinACFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'JoinAsJoinC'
* @access public
*/
var $name = 'JoinAsJoinC';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -54,7 +54,7 @@ class JoinACFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class JoinAFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'JoinA'
* @access public
*/
var $name = 'JoinA';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -53,7 +53,7 @@ class JoinAFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class JoinBFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'JoinB'
* @access public
*/
var $name = 'JoinB';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -52,7 +52,7 @@ class JoinBFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class JoinCFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'JoinC'
* @access public
*/
var $name = 'JoinC';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -52,7 +52,7 @@ class JoinCFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -54,7 +54,7 @@ class JoinThingFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class MessageFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Message'
* @access public
*/
var $name = 'Message';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -51,7 +51,7 @@ class MessageFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class MyCategoriesMyProductsFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'MyCategoriesMyProducts'
* @access public
*/
var $name = 'MyCategoriesMyProducts';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class MyCategoriesMyProductsFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class MyCategoriesMyUsersFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'MyCategoriesMyUsers'
* @access public
*/
var $name = 'MyCategoriesMyUsers';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class MyCategoriesMyUsersFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class MyCategoryFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'MyCategory'
* @access public
*/
var $name = 'MyCategory';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class MyCategoryFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class MyProductFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'MyProduct'
* @access public
*/
var $name = 'MyProduct';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class MyProductFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class MyUserFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'MyUser'
* @access public
*/
var $name = 'MyUser';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class MyUserFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -36,14 +36,14 @@
class NodeFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Node'
* @access public
*/
var $name = 'Node';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -54,7 +54,7 @@ class NodeFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -35,14 +35,14 @@
class NumberTreeFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'NumberTree'
* @access public
*/
var $name = 'NumberTree';
/**
* fields property
*
*
* @var array
* @access public
*/

View file

@ -52,7 +52,7 @@ class NumericArticleFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class PersonFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Person'
* @access public
*/
var $name = 'Person';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -56,7 +56,7 @@ class PersonFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class PortfolioFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Portfolio'
* @access public
*/
var $name = 'Portfolio';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -51,7 +51,7 @@ class PortfolioFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class PostFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Post'
* @access public
*/
var $name = 'Post';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -55,7 +55,7 @@ class PostFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class PostsTagFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'PostsTag'
* @access public
*/
var $name = 'PostsTag';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class PostsTagFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class PrimaryModelFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'PrimaryModel'
* @access public
*/
var $name = 'PrimaryModel';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class PrimaryModelFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -29,18 +29,18 @@
*
* @package cake.tests
* @subpackage cake.tests.fixtures
*/
*/
class ProductFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Product'
* @access public
*/
var $name = 'Product';
var $name = 'Product';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -52,7 +52,7 @@ class ProductFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class ProjectFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Project'
* @access public
*/
var $name = 'Project';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -50,7 +50,7 @@ class ProjectFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

View file

@ -33,14 +33,14 @@
class SampleFixture extends CakeTestFixture {
/**
* name property
*
*
* @var string 'Sample'
* @access public
*/
var $name = 'Sample';
/**
* fields property
*
*
* @var array
* @access public
*/
@ -51,7 +51,7 @@ class SampleFixture extends CakeTestFixture {
);
/**
* records property
*
*
* @var array
* @access public
*/

Some files were not shown because too many files have changed in this diff Show more