Skip to content

Commit e5645d1

Browse files
committed
Remove snake case
this was unnecessary added complexity
1 parent a10c8ae commit e5645d1

37 files changed

+1178
-1202
lines changed

test/ActiveRecordCacheTest.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@
33

44
class ActiveRecordCacheTest extends DatabaseTest
55
{
6-
public function set_up($connection_name=null)
6+
public function setUp($connection_name=null)
77
{
88
if (!extension_loaded('memcache'))
99
{
1010
$this->markTestSkipped('The memcache extension is not available');
1111
return;
1212
}
1313

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

18-
public function tear_down()
18+
public function tearDown()
1919
{
2020
Cache::flush();
2121
Cache::initialize(null);
2222
}
2323

2424
public function test_default_expire()
2525
{
26-
$this->assert_equals(30,Cache::$options['expire']);
26+
$this->assertEquals(30,Cache::$options['expire']);
2727
}
2828

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

3535
public function test_caches_column_meta_data()
@@ -38,7 +38,7 @@ public function test_caches_column_meta_data()
3838

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

0 commit comments

Comments
 (0)