@@ -62,11 +62,11 @@ public function tearDown() {
62
62
*/
63
63
public function testCacheDirChange () {
64
64
$ result = Cache::config ('sessions ' , array ('engine ' => 'File ' , 'path ' => TMP . 'sessions ' ));
65
- $ this ->assertEqual ($ result ['settings ' ], Cache::settings ('sessions ' ));
65
+ $ this ->assertEquals ($ result ['settings ' ], Cache::settings ('sessions ' ));
66
66
67
67
$ result = Cache::config ('sessions ' , array ('engine ' => 'File ' , 'path ' => TMP . 'tests ' ));
68
- $ this ->assertEqual ($ result ['settings ' ], Cache::settings ('sessions ' ));
69
- $ this ->assertNotEqual ($ result ['settings ' ], Cache::settings ('default ' ));
68
+ $ this ->assertEquals ($ result ['settings ' ], Cache::settings ('sessions ' ));
69
+ $ this ->assertNotEquals ($ result ['settings ' ], Cache::settings ('default ' ));
70
70
}
71
71
72
72
/**
@@ -84,15 +84,15 @@ public function testReadAndWriteCache() {
84
84
85
85
$ result = Cache::read ('test ' , 'file_test ' );
86
86
$ expecting = '' ;
87
- $ this ->assertEqual ($ result , $ expecting );
87
+ $ this ->assertEquals ($ result , $ expecting );
88
88
89
89
$ data = 'this is a test of the emergency broadcasting system ' ;
90
90
$ result = Cache::write ('test ' , $ data , 'file_test ' );
91
91
$ this ->assertTrue (file_exists (CACHE . 'cake_test ' ));
92
92
93
93
$ result = Cache::read ('test ' , 'file_test ' );
94
94
$ expecting = $ data ;
95
- $ this ->assertEqual ($ result , $ expecting );
95
+ $ this ->assertEquals ($ result , $ expecting );
96
96
97
97
Cache::delete ('test ' , 'file_test ' );
98
98
}
@@ -180,9 +180,9 @@ public function testSerialize() {
180
180
181
181
$ delete = Cache::delete ('serialize_test ' , 'file_test ' );
182
182
183
- $ this ->assertIdentical ($ read , serialize ($ data ));
183
+ $ this ->assertSame ($ read , serialize ($ data ));
184
184
185
- $ this ->assertIdentical (unserialize ($ newread ), $ data );
185
+ $ this ->assertSame (unserialize ($ newread ), $ data );
186
186
}
187
187
188
188
/**
@@ -243,11 +243,11 @@ public function testClearWithPrefixes() {
243
243
$ FileOne ->write ('prefix_one_key_one ' , $ data1 , DAY );
244
244
$ FileTwo ->write ('prefix_two_key_two ' , $ data2 , DAY );
245
245
246
- $ this ->assertEqual ($ FileOne ->read ('prefix_one_key_one ' ), $ expected );
247
- $ this ->assertEqual ($ FileTwo ->read ('prefix_two_key_two ' ), $ expected );
246
+ $ this ->assertEquals ($ FileOne ->read ('prefix_one_key_one ' ), $ expected );
247
+ $ this ->assertEquals ($ FileTwo ->read ('prefix_two_key_two ' ), $ expected );
248
248
249
249
$ FileOne ->clear (false );
250
- $ this ->assertEqual ($ FileTwo ->read ('prefix_two_key_two ' ), $ expected , 'secondary config was cleared by accident. ' );
250
+ $ this ->assertEquals ($ FileTwo ->read ('prefix_two_key_two ' ), $ expected , 'secondary config was cleared by accident. ' );
251
251
$ FileTwo ->clear (false );
252
252
}
253
253
@@ -262,7 +262,7 @@ public function testKeyPath() {
262
262
$ this ->assertTrue (file_exists (CACHE . 'cake_views_countries_something ' ));
263
263
264
264
$ result = Cache::read ('views.countries.something ' , 'file_test ' );
265
- $ this ->assertEqual ($ result , 'here ' );
265
+ $ this ->assertEquals ($ result , 'here ' );
266
266
267
267
$ result = Cache::clear (false , 'file_test ' );
268
268
$ this ->assertTrue ($ result );
@@ -308,7 +308,7 @@ public function testRemoveWindowsSlashesFromCache() {
308
308
Cache::write ('test_dir_map ' , $ expected , 'windows_test ' );
309
309
$ data = Cache::read ('test_dir_map ' , 'windows_test ' );
310
310
Cache::delete ('test_dir_map ' , 'windows_test ' );
311
- $ this ->assertEqual ($ expected , $ data );
311
+ $ this ->assertEquals ($ expected , $ data );
312
312
313
313
Cache::drop ('windows_test ' );
314
314
}
@@ -321,14 +321,14 @@ public function testRemoveWindowsSlashesFromCache() {
321
321
public function testWriteQuotedString () {
322
322
Cache::config ('file_test ' , array ('engine ' => 'File ' , 'path ' => TMP . 'tests ' ));
323
323
Cache::write ('App.doubleQuoteTest ' , '"this is a quoted string" ' , 'file_test ' );
324
- $ this ->assertIdentical (Cache::read ('App.doubleQuoteTest ' , 'file_test ' ), '"this is a quoted string" ' );
324
+ $ this ->assertSame (Cache::read ('App.doubleQuoteTest ' , 'file_test ' ), '"this is a quoted string" ' );
325
325
Cache::write ('App.singleQuoteTest ' , "'this is a quoted string' " , 'file_test ' );
326
- $ this ->assertIdentical (Cache::read ('App.singleQuoteTest ' , 'file_test ' ), "'this is a quoted string' " );
326
+ $ this ->assertSame (Cache::read ('App.singleQuoteTest ' , 'file_test ' ), "'this is a quoted string' " );
327
327
328
328
Cache::config ('file_test ' , array ('isWindows ' => true , 'path ' => TMP . 'tests ' ));
329
- $ this ->assertIdentical (Cache::read ('App.doubleQuoteTest ' , 'file_test ' ), '"this is a quoted string" ' );
329
+ $ this ->assertSame (Cache::read ('App.doubleQuoteTest ' , 'file_test ' ), '"this is a quoted string" ' );
330
330
Cache::write ('App.singleQuoteTest ' , "'this is a quoted string' " , 'file_test ' );
331
- $ this ->assertIdentical (Cache::read ('App.singleQuoteTest ' , 'file_test ' ), "'this is a quoted string' " );
331
+ $ this ->assertSame (Cache::read ('App.singleQuoteTest ' , 'file_test ' ), "'this is a quoted string' " );
332
332
Cache::delete ('App.singleQuoteTest ' , 'file_test ' );
333
333
Cache::delete ('App.doubleQuoteTest ' , 'file_test ' );
334
334
}
@@ -361,31 +361,31 @@ public function testMaskSetting() {
361
361
$ write = Cache::write ('masking_test ' , $ data , 'mask_test ' );
362
362
$ result = substr (sprintf ('%o ' ,fileperms (TMP . 'tests ' . DS .'cake_masking_test ' )), -4 );
363
363
$ expected = '0664 ' ;
364
- $ this ->assertEqual ($ result , $ expected );
364
+ $ this ->assertEquals ($ result , $ expected );
365
365
Cache::delete ('masking_test ' , 'mask_test ' );
366
366
Cache::drop ('mask_test ' );
367
367
368
368
Cache::config ('mask_test ' , array ('engine ' => 'File ' , 'mask ' => 0666 , 'path ' => TMP . 'tests ' ));
369
369
$ write = Cache::write ('masking_test ' , $ data , 'mask_test ' );
370
370
$ result = substr (sprintf ('%o ' ,fileperms (TMP . 'tests ' . DS .'cake_masking_test ' )), -4 );
371
371
$ expected = '0666 ' ;
372
- $ this ->assertEqual ($ result , $ expected );
372
+ $ this ->assertEquals ($ result , $ expected );
373
373
Cache::delete ('masking_test ' , 'mask_test ' );
374
374
Cache::drop ('mask_test ' );
375
375
376
376
Cache::config ('mask_test ' , array ('engine ' => 'File ' , 'mask ' => 0644 , 'path ' => TMP . 'tests ' ));
377
377
$ write = Cache::write ('masking_test ' , $ data , 'mask_test ' );
378
378
$ result = substr (sprintf ('%o ' ,fileperms (TMP . 'tests ' . DS .'cake_masking_test ' )), -4 );
379
379
$ expected = '0644 ' ;
380
- $ this ->assertEqual ($ result , $ expected );
380
+ $ this ->assertEquals ($ result , $ expected );
381
381
Cache::delete ('masking_test ' , 'mask_test ' );
382
382
Cache::drop ('mask_test ' );
383
383
384
384
Cache::config ('mask_test ' , array ('engine ' => 'File ' , 'mask ' => 0640 , 'path ' => TMP . 'tests ' ));
385
385
$ write = Cache::write ('masking_test ' , $ data , 'mask_test ' );
386
386
$ result = substr (sprintf ('%o ' ,fileperms (TMP . 'tests ' . DS .'cake_masking_test ' )), -4 );
387
387
$ expected = '0640 ' ;
388
- $ this ->assertEqual ($ result , $ expected );
388
+ $ this ->assertEquals ($ result , $ expected );
389
389
Cache::delete ('masking_test ' , 'mask_test ' );
390
390
Cache::drop ('mask_test ' );
391
391
}
0 commit comments