Commit a7ece360 authored by Jens Segers's avatar Jens Segers

Modified composer versions

parent 292f3b71
......@@ -11,12 +11,12 @@
"license" : "MIT",
"require": {
"php": ">=5.3.0",
"illuminate/support": "4.1.x",
"illuminate/database": "4.1.x",
"illuminate/events": "4.1.x"
"illuminate/support": "~4.0",
"illuminate/database": "~4.0",
"illuminate/events": "~4.0"
},
"require-dev": {
"illuminate/cache": "4.1.x"
"illuminate/cache": "~4.0"
},
"autoload": {
"psr-0": {
......
......@@ -22,6 +22,11 @@ class CacheTest extends PHPUnit_Framework_TestCase {
public function testCache()
{
# get from cache driver
global $app;
$cache = $app['cache'];
$cache->forget('db.users');
# auto generate cache key
$users = DB::collection('users')->where('age', '>', 10)->remember(10)->get();
$this->assertEquals(3, count($users));
......@@ -33,10 +38,6 @@ class CacheTest extends PHPUnit_Framework_TestCase {
$users = User::where('age', '>', 10)->remember(10, 'db.users')->get();
$this->assertEquals(3, count($users));
global $app;
# get from cache driver
$cache = $app['cache'];
$users = $cache->get('db.users');
$this->assertEquals(3, count($users));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment