We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9d9a53 commit 73e9648Copy full SHA for 73e9648
tests/Caching/FileStorage.closure.phpt
@@ -1,7 +1,7 @@
1
<?php
2
3
/**
4
- * Test: Nette\Caching\Storages\FileStorage & Nette\Callback & Closure.
+ * Test: Nette\Caching\Storages\FileStorage
5
*
6
* @author David Grudl
7
*/
@@ -33,19 +33,6 @@ Assert::same( $res, $value );
33
Assert::same( $cache->load($key), $value );
34
35
36
-// Removing from cache using unset()...
37
-unset($cache[$key]);
38
-
39
-// Writing cache using Nette\Callback...
40
-$res = $cache->save($key, new Nette\Callback(function() use ($value) {
41
- return $value;
42
-}));
43
44
-Assert::same( $res, $value );
45
46
-Assert::same( $cache->load($key), $value );
47
48
49
// Removing from cache using NULL callback...
50
$cache->save($key, function() {
51
return NULL;
0 commit comments