Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed syntax error in failing test... someone did not check their sem…

…i-colons for brackets
  • Loading branch information...
commit cbbf0f5e24835089dc8da8a1e8bc6214caccfe99 1 parent be44604
Sam de Freyssinet samsoir authored
2  classes/kohana/cache.php
View
@@ -120,7 +120,7 @@ public static function instance($group = NULL)
return Cache::$instances[$group];
}
- $config = Kohana::config('cache');
+ $config = Kohana::$config->load('cache');
if ( ! $config->offsetExists($group))
{
2  tests/cache/FileTest.php
View
@@ -37,7 +37,7 @@ public function setUp()
public function test_ignore_delete_file()
{
$cache = $this->cache();
- $config = Kohana::config('cache')->get('file');
+ $config = Kohana::$config->load('cache')->file;
$file = $config['cache_dir'].'/.gitignore';
// Lets pollute the cache folder
2  tests/cache/arithmetic/MemcacheTest.php
View
@@ -33,7 +33,7 @@ public function setUp()
$this->markTestSkipped('Memcache PHP Extension is not available');
}
- if ( ! $config = Kohana::config('cache')->get('memcache'))
+ if ( ! $config = Kohana::$config->load('cache')->memcache)
{
$this->markTestSkipped('Unable to load Memcache configuration');
}
Please sign in to comment.
Something went wrong with that request. Please try again.