Skip to content

Commit 73e9648

Browse files
committed
tests: removed old Callback
1 parent b9d9a53 commit 73e9648

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

tests/Caching/FileStorage.closure.phpt

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Test: Nette\Caching\Storages\FileStorage & Nette\Callback & Closure.
4+
* Test: Nette\Caching\Storages\FileStorage
55
*
66
* @author David Grudl
77
*/
@@ -33,19 +33,6 @@ Assert::same( $res, $value );
3333
Assert::same( $cache->load($key), $value );
3434

3535

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-
4936
// Removing from cache using NULL callback...
5037
$cache->save($key, function() {
5138
return NULL;

0 commit comments

Comments
 (0)