Skip to content

Commit a7ece36

Browse files
committed
Modified composer versions
1 parent 292f3b7 commit a7ece36

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"license" : "MIT",
1212
"require": {
1313
"php": ">=5.3.0",
14-
"illuminate/support": "4.1.x",
15-
"illuminate/database": "4.1.x",
16-
"illuminate/events": "4.1.x"
14+
"illuminate/support": "~4.0",
15+
"illuminate/database": "~4.0",
16+
"illuminate/events": "~4.0"
1717
},
1818
"require-dev": {
19-
"illuminate/cache": "4.1.x"
19+
"illuminate/cache": "~4.0"
2020
},
2121
"autoload": {
2222
"psr-0": {

tests/CacheTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ public function tearDown()
2222

2323
public function testCache()
2424
{
25+
# get from cache driver
26+
global $app;
27+
$cache = $app['cache'];
28+
$cache->forget('db.users');
29+
2530
# auto generate cache key
2631
$users = DB::collection('users')->where('age', '>', 10)->remember(10)->get();
2732
$this->assertEquals(3, count($users));
@@ -33,10 +38,6 @@ public function testCache()
3338
$users = User::where('age', '>', 10)->remember(10, 'db.users')->get();
3439
$this->assertEquals(3, count($users));
3540

36-
global $app;
37-
38-
# get from cache driver
39-
$cache = $app['cache'];
4041
$users = $cache->get('db.users');
4142
$this->assertEquals(3, count($users));
4243
}

0 commit comments

Comments
 (0)