Skip to content

Commit

Permalink
Remove snake case
Browse files Browse the repository at this point in the history
this was unnecessary added complexity
  • Loading branch information
koenpunt committed Jun 11, 2017
1 parent 1ba7581 commit e935a9a
Show file tree
Hide file tree
Showing 37 changed files with 1,169 additions and 1,193 deletions.
12 changes: 6 additions & 6 deletions test/ActiveRecordCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@

class ActiveRecordCacheTest extends DatabaseTest
{
public function set_up($connection_name=null)
public function setUp($connection_name=null)
{
if (!extension_loaded('memcache'))
{
$this->markTestSkipped('The memcache extension is not available');
return;
}

parent::set_up($connection_name);
parent::setUp($connection_name);
ActiveRecord\Config::instance()->set_cache('memcache://localhost');
}

public function tear_down()
public function tearDown()
{
Cache::flush();
Cache::initialize(null);
}

public function test_default_expire()
{
$this->assert_equals(30,Cache::$options['expire']);
$this->assertEquals(30,Cache::$options['expire']);
}

public function test_explicit_default_expire()
{
ActiveRecord\Config::instance()->set_cache('memcache://localhost',array('expire' => 1));
$this->assert_equals(1,Cache::$options['expire']);
$this->assertEquals(1,Cache::$options['expire']);
}

public function test_caches_column_meta_data()
Expand All @@ -38,7 +38,7 @@ public function test_caches_column_meta_data()

$table_name = Author::table()->get_fully_qualified_table_name(!($this->conn instanceof ActiveRecord\PgsqlAdapter));
$value = Cache::$adapter->read("get_meta_data-$table_name");
$this->assert_true(is_array($value));
$this->assertTrue(is_array($value));
}
}

Loading

0 comments on commit e935a9a

Please sign in to comment.