Permalink
Browse files

Replacing test case compatibility functions

  • Loading branch information...
shama authored and markstory committed Nov 16, 2011
1 parent 2c5350b commit 98f03dc6df0d265c18ec6b76ea6beda19c672eed
Showing with 6,361 additions and 6,361 deletions.
  1. +104 −104 lib/Cake/Test/Case/BasicsTest.php
  2. +20 −20 lib/Cake/Test/Case/Cache/CacheTest.php
  3. +11 −11 lib/Cake/Test/Case/Cache/Engine/ApcEngineTest.php
  4. +20 −20 lib/Cake/Test/Case/Cache/Engine/FileEngineTest.php
  5. +20 −20 lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
  6. +10 −10 lib/Cake/Test/Case/Cache/Engine/WincacheEngineTest.php
  7. +11 −11 lib/Cake/Test/Case/Cache/Engine/XcacheEngineTest.php
  8. +16 −16 lib/Cake/Test/Case/Console/Command/AclShellTest.php
  9. +14 −14 lib/Cake/Test/Case/Console/Command/CommandListShellTest.php
  10. +29 −29 lib/Cake/Test/Case/Console/Command/SchemaShellTest.php
  11. +35 −35 lib/Cake/Test/Case/Console/Command/ShellTest.php
  12. +15 −15 lib/Cake/Test/Case/Console/Command/Task/ControllerTaskTest.php
  13. +43 −43 lib/Cake/Test/Case/Console/Command/Task/ExtractTaskTest.php
  14. +4 −4 lib/Cake/Test/Case/Console/Command/Task/FixtureTaskTest.php
  15. +41 −41 lib/Cake/Test/Case/Console/Command/Task/ModelTaskTest.php
  16. +9 −9 lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php
  17. +11 −11 lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php
  18. +21 −21 lib/Cake/Test/Case/Console/Command/Task/ViewTaskTest.php
  19. +1 −1 lib/Cake/Test/Case/Console/ConsoleOutputTest.php
  20. +26 −26 lib/Cake/Test/Case/Console/ShellDispatcherTest.php
  21. +1 −1 lib/Cake/Test/Case/Controller/Component/AclComponentTest.php
  22. +1 −1 lib/Cake/Test/Case/Controller/Component/Auth/DigestAuthenticateTest.php
  23. +15 −15 lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
  24. +26 −26 lib/Cake/Test/Case/Controller/Component/CookieComponentTest.php
  25. +5 −5 lib/Cake/Test/Case/Controller/Component/DbAclTest.php
  26. +75 −75 lib/Cake/Test/Case/Controller/Component/EmailComponentTest.php
  27. +52 −52 lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php
  28. +25 −25 lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php
  29. +5 −5 lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php
  30. +13 −13 lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php
  31. +3 −3 lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php
  32. +37 −37 lib/Cake/Test/Case/Controller/ControllerTest.php
  33. +5 −5 lib/Cake/Test/Case/Controller/PagesControllerTest.php
  34. +15 −15 lib/Cake/Test/Case/Controller/ScaffoldTest.php
  35. +46 −46 lib/Cake/Test/Case/Core/AppTest.php
  36. +15 −15 lib/Cake/Test/Case/Core/ConfigureTest.php
  37. +54 −54 lib/Cake/Test/Case/Core/ObjectTest.php
  38. +13 −13 lib/Cake/Test/Case/Error/ErrorHandlerTest.php
  39. +17 −17 lib/Cake/Test/Case/Error/ExceptionRendererTest.php
  40. +1 −1 lib/Cake/Test/Case/I18n/I18nTest.php
  41. +1,586 −1,586 lib/Cake/Test/Case/I18n/MultibyteTest.php
  42. +9 −9 lib/Cake/Test/Case/Log/CakeLogTest.php
  43. +3 −3 lib/Cake/Test/Case/Log/Engine/FileLogTest.php
  44. +19 −19 lib/Cake/Test/Case/Model/Behavior/AclBehaviorTest.php
  45. +83 −83 lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php
  46. +42 −42 lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php
  47. +2 −2 lib/Cake/Test/Case/Model/Behavior/TreeBehaviorAfterTest.php
  48. +102 −102 lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php
  49. +17 −17 lib/Cake/Test/Case/Model/Behavior/TreeBehaviorScopedTest.php
  50. +14 −14 lib/Cake/Test/Case/Model/Behavior/TreeBehaviorUuidTest.php
  51. +110 −110 lib/Cake/Test/Case/Model/BehaviorCollectionTest.php
  52. +19 −19 lib/Cake/Test/Case/Model/CakeSchemaTest.php
  53. +23 −23 lib/Cake/Test/Case/Model/ConnectionManagerTest.php
  54. +1 −1 lib/Cake/Test/Case/Model/Datasource/CakeSessionTest.php
  55. +476 −476 lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
  56. +76 −76 lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php
  57. +12 −12 lib/Cake/Test/Case/Model/Datasource/Database/SqliteTest.php
  58. +33 −33 lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php
  59. +60 −60 lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php
  60. +13 −13 lib/Cake/Test/Case/Model/DbAclTest.php
  61. +30 −30 lib/Cake/Test/Case/Model/ModelDeleteTest.php
  62. +120 −120 lib/Cake/Test/Case/Model/ModelIntegrationTest.php
  63. +170 −170 lib/Cake/Test/Case/Model/ModelReadTest.php
  64. +21 −21 lib/Cake/Test/Case/Model/ModelValidationTest.php
  65. +223 −223 lib/Cake/Test/Case/Model/ModelWriteTest.php
  66. +80 −80 lib/Cake/Test/Case/Network/CakeRequestTest.php
  67. +6 −6 lib/Cake/Test/Case/Network/CakeResponseTest.php
  68. +15 −15 lib/Cake/Test/Case/Network/CakeSocketTest.php
  69. +92 −92 lib/Cake/Test/Case/Network/Email/CakeEmailTest.php
  70. +2 −2 lib/Cake/Test/Case/Network/Http/BasicAuthenticationTest.php
  71. +11 −11 lib/Cake/Test/Case/Network/Http/DigestAuthenticationTest.php
  72. +27 −27 lib/Cake/Test/Case/Network/Http/HttpResponseTest.php
  73. +32 −32 lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
  74. +103 −103 lib/Cake/Test/Case/Routing/DispatcherTest.php
  75. +95 −95 lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
  76. +4 −4 lib/Cake/Test/Case/Routing/Route/PluginShortRouteTest.php
  77. +10 −10 lib/Cake/Test/Case/Routing/Route/RedirectRouteTest.php
  78. +260 −260 lib/Cake/Test/Case/Routing/RouterTest.php
  79. +18 −18 lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php
  80. +12 −12 lib/Cake/Test/Case/TestSuite/ControllerTestCaseTest.php
  81. +4 −4 lib/Cake/Test/Case/Utility/ClassRegistryTest.php
  82. +34 −34 lib/Cake/Test/Case/Utility/DebuggerTest.php
  83. +10 −10 lib/Cake/Test/Case/Utility/FileTest.php
  84. +170 −170 lib/Cake/Test/Case/Utility/InflectorTest.php
  85. +56 −56 lib/Cake/Test/Case/Utility/SanitizeTest.php
  86. +26 −26 lib/Cake/Test/Case/Utility/SecurityTest.php
  87. +146 −146 lib/Cake/Test/Case/Utility/SetTest.php
  88. +45 −45 lib/Cake/Test/Case/Utility/StringTest.php
  89. +75 −75 lib/Cake/Test/Case/Utility/XmlTest.php
  90. +67 −67 lib/Cake/Test/Case/View/Helper/CacheHelperTest.php
  91. +115 −115 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
  92. +32 −32 lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
  93. +40 −40 lib/Cake/Test/Case/View/Helper/JqueryEngineHelperTest.php
  94. +52 −52 lib/Cake/Test/Case/View/Helper/JsHelperTest.php
  95. +45 −45 lib/Cake/Test/Case/View/Helper/MootoolsEngineHelperTest.php
  96. +78 −78 lib/Cake/Test/Case/View/Helper/NumberHelperTest.php
  97. +47 −47 lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php
  98. +47 −47 lib/Cake/Test/Case/View/Helper/PrototypeEngineHelperTest.php
  99. +1 −1 lib/Cake/Test/Case/View/Helper/RssHelperTest.php
  100. +7 −7 lib/Cake/Test/Case/View/Helper/SessionHelperTest.php
  101. +80 −80 lib/Cake/Test/Case/View/Helper/TextHelperTest.php
  102. +99 −99 lib/Cake/Test/Case/View/Helper/TimeHelperTest.php
  103. +49 −49 lib/Cake/Test/Case/View/HelperTest.php
  104. +4 −4 lib/Cake/Test/Case/View/MediaViewTest.php
  105. +37 −37 lib/Cake/Test/Case/View/ScaffoldViewTest.php
  106. +12 −12 lib/Cake/Test/Case/View/ThemeViewTest.php
  107. +67 −67 lib/Cake/Test/Case/View/ViewTest.php

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -57,7 +57,7 @@ public function tearDown() {
public function testConfig() {
$settings = array('engine' => 'File', 'path' => TMP . 'tests', 'prefix' => 'cake_test_');
$results = Cache::config('new', $settings);
- $this->assertEqual($results, Cache::config('new'));
+ $this->assertEquals($results, Cache::config('new'));
$this->assertTrue(isset($results['engine']));
$this->assertTrue(isset($results['settings']));
}
@@ -93,11 +93,11 @@ public function testConfigWithLibAndPluginEngines() {
$settings = array('engine' => 'TestAppCache', 'path' => TMP, 'prefix' => 'cake_test_');
$result = Cache::config('libEngine', $settings);
- $this->assertEqual($result, Cache::config('libEngine'));
+ $this->assertEquals($result, Cache::config('libEngine'));
$settings = array('engine' => 'TestPlugin.TestPluginCache', 'path' => TMP, 'prefix' => 'cake_test_');
$result = Cache::config('pluginLibEngine', $settings);
- $this->assertEqual($result, Cache::config('pluginLibEngine'));
+ $this->assertEquals($result, Cache::config('pluginLibEngine'));
Cache::drop('libEngine');
Cache::drop('pluginLibEngine');
@@ -149,10 +149,10 @@ public function testConfigChange() {
$_cacheConfigTests = Cache::config('tests');
$result = Cache::config('sessions', array('engine'=> 'File', 'path' => TMP . 'sessions'));
- $this->assertEqual($result['settings'], Cache::settings('sessions'));
+ $this->assertEquals($result['settings'], Cache::settings('sessions'));
$result = Cache::config('tests', array('engine'=> 'File', 'path' => TMP . 'tests'));
- $this->assertEqual($result['settings'], Cache::settings('tests'));
+ $this->assertEquals($result['settings'], Cache::settings('tests'));
Cache::config('sessions', $_cacheConfigSessions['settings']);
Cache::config('tests', $_cacheConfigTests['settings']);
@@ -168,17 +168,17 @@ public function testConfigSettingDefaultConfigKey() {
Cache::write('value_one', 'I am cached', 'test_name');
$result = Cache::read('value_one', 'test_name');
- $this->assertEqual($result, 'I am cached');
+ $this->assertEquals($result, 'I am cached');
$result = Cache::read('value_one');
- $this->assertEqual($result, null);
+ $this->assertEquals($result, null);
Cache::write('value_one', 'I am in default config!');
$result = Cache::read('value_one');
- $this->assertEqual($result, 'I am in default config!');
+ $this->assertEquals($result, 'I am in default config!');
$result = Cache::read('value_one', 'test_name');
- $this->assertEqual($result, 'I am cached');
+ $this->assertEquals($result, 'I am cached');
Cache::delete('value_one', 'test_name');
Cache::delete('value_one', 'default');
@@ -205,7 +205,7 @@ public function testWritingWithConfig() {
'isWindows' => DIRECTORY_SEPARATOR == '\\',
'mask' => 0664
);
- $this->assertEqual($expected, Cache::settings('sessions'));
+ $this->assertEquals($expected, Cache::settings('sessions'));
Cache::config('sessions', $_cacheConfigSessions['settings']);
}
@@ -234,7 +234,7 @@ public function testInitSettings() {
$settings = Cache::settings();
$expecting = $override + $initial;
- $this->assertEqual($settings, $expecting);
+ $this->assertEquals($settings, $expecting);
}
/**
@@ -275,19 +275,19 @@ public function testDrop() {
*/
public function testWriteEmptyValues() {
Cache::write('App.falseTest', false);
- $this->assertIdentical(Cache::read('App.falseTest'), false);
+ $this->assertSame(Cache::read('App.falseTest'), false);
Cache::write('App.trueTest', true);
- $this->assertIdentical(Cache::read('App.trueTest'), true);
+ $this->assertSame(Cache::read('App.trueTest'), true);
Cache::write('App.nullTest', null);
- $this->assertIdentical(Cache::read('App.nullTest'), null);
+ $this->assertSame(Cache::read('App.nullTest'), null);
Cache::write('App.zeroTest', 0);
- $this->assertIdentical(Cache::read('App.zeroTest'), 0);
+ $this->assertSame(Cache::read('App.zeroTest'), 0);
Cache::write('App.zeroTest2', '0');
- $this->assertIdentical(Cache::read('App.zeroTest2'), '0');
+ $this->assertSame(Cache::read('App.zeroTest2'), '0');
}
/**
@@ -325,7 +325,7 @@ public function testCacheDisable() {
Cache::config('test_cache_disable_1', array('engine'=> 'File', 'path' => TMP . 'tests'));
$this->assertTrue(Cache::write('key_1', 'hello', 'test_cache_disable_1'));
- $this->assertIdentical(Cache::read('key_1', 'test_cache_disable_1'), 'hello');
+ $this->assertSame(Cache::read('key_1', 'test_cache_disable_1'), 'hello');
Configure::write('Cache.disable', true);
@@ -335,7 +335,7 @@ public function testCacheDisable() {
Configure::write('Cache.disable', false);
$this->assertTrue(Cache::write('key_3', 'hello', 'test_cache_disable_1'));
- $this->assertIdentical(Cache::read('key_3', 'test_cache_disable_1'), 'hello');
+ $this->assertSame(Cache::read('key_3', 'test_cache_disable_1'), 'hello');
Configure::write('Cache.disable', true);
Cache::config('test_cache_disable_2', array('engine'=> 'File', 'path' => TMP . 'tests'));
@@ -346,7 +346,7 @@ public function testCacheDisable() {
Configure::write('Cache.disable', false);
$this->assertTrue(Cache::write('key_5', 'hello', 'test_cache_disable_2'));
- $this->assertIdentical(Cache::read('key_5', 'test_cache_disable_2'), 'hello');
+ $this->assertSame(Cache::read('key_5', 'test_cache_disable_2'), 'hello');
Configure::write('Cache.disable', true);
@@ -372,7 +372,7 @@ public function testSet() {
Cache::set(array('duration' => '+1 year'));
$data = Cache::read('test_cache');
- $this->assertEqual($data, 'this is just a simple test of the cache system');
+ $this->assertEquals($data, 'this is just a simple test of the cache system');
Cache::delete('test_cache');
@@ -60,15 +60,15 @@ public function testReadAndWriteCache() {
$result = Cache::read('test', 'apc');
$expecting = '';
- $this->assertEqual($result, $expecting);
+ $this->assertEquals($result, $expecting);
$data = 'this is a test of the emergency broadcasting system';
$result = Cache::write('test', $data, 'apc');
$this->assertTrue($result);
$result = Cache::read('test', 'apc');
$expecting = $data;
- $this->assertEqual($result, $expecting);
+ $this->assertEquals($result, $expecting);
Cache::delete('test', 'apc');
}
@@ -84,7 +84,7 @@ function testReadWriteDurationZero() {
sleep(1);
$result = Cache::read('zero', 'apc');
- $this->assertEqual('Should save', $result);
+ $this->assertEquals('Should save', $result);
}
/**
@@ -147,16 +147,16 @@ public function testDecrement() {
$this->assertTrue($result);
$result = Cache::decrement('test_decrement', 1, 'apc');
- $this->assertEqual(4, $result);
+ $this->assertEquals(4, $result);
$result = Cache::read('test_decrement', 'apc');
- $this->assertEqual(4, $result);
+ $this->assertEquals(4, $result);
$result = Cache::decrement('test_decrement', 2, 'apc');
- $this->assertEqual(2, $result);
+ $this->assertEquals(2, $result);
$result = Cache::read('test_decrement', 'apc');
- $this->assertEqual(2, $result);
+ $this->assertEquals(2, $result);
}
@@ -172,16 +172,16 @@ public function testIncrement() {
$this->assertTrue($result);
$result = Cache::increment('test_increment', 1, 'apc');
- $this->assertEqual(6, $result);
+ $this->assertEquals(6, $result);
$result = Cache::read('test_increment', 'apc');
- $this->assertEqual(6, $result);
+ $this->assertEquals(6, $result);
$result = Cache::increment('test_increment', 2, 'apc');
- $this->assertEqual(8, $result);
+ $this->assertEquals(8, $result);
$result = Cache::read('test_increment', 'apc');
- $this->assertEqual(8, $result);
+ $this->assertEquals(8, $result);
}
/**
@@ -62,11 +62,11 @@ public function tearDown() {
*/
public function testCacheDirChange() {
$result = Cache::config('sessions', array('engine'=> 'File', 'path' => TMP . 'sessions'));
- $this->assertEqual($result['settings'], Cache::settings('sessions'));
+ $this->assertEquals($result['settings'], Cache::settings('sessions'));
$result = Cache::config('sessions', array('engine'=> 'File', 'path' => TMP . 'tests'));
- $this->assertEqual($result['settings'], Cache::settings('sessions'));
- $this->assertNotEqual($result['settings'], Cache::settings('default'));
+ $this->assertEquals($result['settings'], Cache::settings('sessions'));
+ $this->assertNotEquals($result['settings'], Cache::settings('default'));
}
/**
@@ -84,15 +84,15 @@ public function testReadAndWriteCache() {
$result = Cache::read('test', 'file_test');
$expecting = '';
- $this->assertEqual($result, $expecting);
+ $this->assertEquals($result, $expecting);
$data = 'this is a test of the emergency broadcasting system';
$result = Cache::write('test', $data, 'file_test');
$this->assertTrue(file_exists(CACHE . 'cake_test'));
$result = Cache::read('test', 'file_test');
$expecting = $data;
- $this->assertEqual($result, $expecting);
+ $this->assertEquals($result, $expecting);
Cache::delete('test', 'file_test');
}
@@ -180,9 +180,9 @@ public function testSerialize() {
$delete = Cache::delete('serialize_test', 'file_test');
- $this->assertIdentical($read, serialize($data));
+ $this->assertSame($read, serialize($data));
- $this->assertIdentical(unserialize($newread), $data);
+ $this->assertSame(unserialize($newread), $data);
}
/**
@@ -243,11 +243,11 @@ public function testClearWithPrefixes() {
$FileOne->write('prefix_one_key_one', $data1, DAY);
$FileTwo->write('prefix_two_key_two', $data2, DAY);
- $this->assertEqual($FileOne->read('prefix_one_key_one'), $expected);
- $this->assertEqual($FileTwo->read('prefix_two_key_two'), $expected);
+ $this->assertEquals($FileOne->read('prefix_one_key_one'), $expected);
+ $this->assertEquals($FileTwo->read('prefix_two_key_two'), $expected);
$FileOne->clear(false);
- $this->assertEqual($FileTwo->read('prefix_two_key_two'), $expected, 'secondary config was cleared by accident.');
+ $this->assertEquals($FileTwo->read('prefix_two_key_two'), $expected, 'secondary config was cleared by accident.');
$FileTwo->clear(false);
}
@@ -262,7 +262,7 @@ public function testKeyPath() {
$this->assertTrue(file_exists(CACHE . 'cake_views_countries_something'));
$result = Cache::read('views.countries.something', 'file_test');
- $this->assertEqual($result, 'here');
+ $this->assertEquals($result, 'here');
$result = Cache::clear(false, 'file_test');
$this->assertTrue($result);
@@ -308,7 +308,7 @@ public function testRemoveWindowsSlashesFromCache() {
Cache::write('test_dir_map', $expected, 'windows_test');
$data = Cache::read('test_dir_map', 'windows_test');
Cache::delete('test_dir_map', 'windows_test');
- $this->assertEqual($expected, $data);
+ $this->assertEquals($expected, $data);
Cache::drop('windows_test');
}
@@ -321,14 +321,14 @@ public function testRemoveWindowsSlashesFromCache() {
public function testWriteQuotedString() {
Cache::config('file_test', array('engine' => 'File', 'path' => TMP . 'tests'));
Cache::write('App.doubleQuoteTest', '"this is a quoted string"', 'file_test');
- $this->assertIdentical(Cache::read('App.doubleQuoteTest', 'file_test'), '"this is a quoted string"');
+ $this->assertSame(Cache::read('App.doubleQuoteTest', 'file_test'), '"this is a quoted string"');
Cache::write('App.singleQuoteTest', "'this is a quoted string'", 'file_test');
- $this->assertIdentical(Cache::read('App.singleQuoteTest', 'file_test'), "'this is a quoted string'");
+ $this->assertSame(Cache::read('App.singleQuoteTest', 'file_test'), "'this is a quoted string'");
Cache::config('file_test', array('isWindows' => true, 'path' => TMP . 'tests'));
- $this->assertIdentical(Cache::read('App.doubleQuoteTest', 'file_test'), '"this is a quoted string"');
+ $this->assertSame(Cache::read('App.doubleQuoteTest', 'file_test'), '"this is a quoted string"');
Cache::write('App.singleQuoteTest', "'this is a quoted string'", 'file_test');
- $this->assertIdentical(Cache::read('App.singleQuoteTest', 'file_test'), "'this is a quoted string'");
+ $this->assertSame(Cache::read('App.singleQuoteTest', 'file_test'), "'this is a quoted string'");
Cache::delete('App.singleQuoteTest', 'file_test');
Cache::delete('App.doubleQuoteTest', 'file_test');
}
@@ -361,31 +361,31 @@ public function testMaskSetting() {
$write = Cache::write('masking_test', $data, 'mask_test');
$result = substr(sprintf('%o',fileperms(TMP . 'tests' . DS .'cake_masking_test')), -4);
$expected = '0664';
- $this->assertEqual($result, $expected);
+ $this->assertEquals($result, $expected);
Cache::delete('masking_test', 'mask_test');
Cache::drop('mask_test');
Cache::config('mask_test', array('engine' => 'File', 'mask' => 0666, 'path' => TMP . 'tests'));
$write = Cache::write('masking_test', $data, 'mask_test');
$result = substr(sprintf('%o',fileperms(TMP . 'tests' . DS .'cake_masking_test')), -4);
$expected = '0666';
- $this->assertEqual($result, $expected);
+ $this->assertEquals($result, $expected);
Cache::delete('masking_test', 'mask_test');
Cache::drop('mask_test');
Cache::config('mask_test', array('engine' => 'File', 'mask' => 0644, 'path' => TMP . 'tests'));
$write = Cache::write('masking_test', $data, 'mask_test');
$result = substr(sprintf('%o',fileperms(TMP . 'tests' . DS .'cake_masking_test')), -4);
$expected = '0644';
- $this->assertEqual($result, $expected);
+ $this->assertEquals($result, $expected);
Cache::delete('masking_test', 'mask_test');
Cache::drop('mask_test');
Cache::config('mask_test', array('engine' => 'File', 'mask' => 0640, 'path' => TMP . 'tests'));
$write = Cache::write('masking_test', $data, 'mask_test');
$result = substr(sprintf('%o',fileperms(TMP . 'tests' . DS .'cake_masking_test')), -4);
$expected = '0640';
- $this->assertEqual($result, $expected);
+ $this->assertEquals($result, $expected);
Cache::delete('masking_test', 'mask_test');
Cache::drop('mask_test');
}
Oops, something went wrong.

0 comments on commit 98f03dc

Please sign in to comment.