summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/libraries/User_agent_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codeigniter/libraries/User_agent_test.php')
-rw-r--r--tests/codeigniter/libraries/User_agent_test.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/codeigniter/libraries/User_agent_test.php b/tests/codeigniter/libraries/User_agent_test.php
index d1d950cd9..277c12ed0 100644
--- a/tests/codeigniter/libraries/User_agent_test.php
+++ b/tests/codeigniter/libraries/User_agent_test.php
@@ -9,7 +9,7 @@ class UserAgent_test extends CI_TestCase
protected $_user_agent = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-us) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27';
protected $_mobile_ua = 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7';
- public function setUp()
+ public function set_up()
{
// set a baseline user agent
$_SERVER['HTTP_USER_AGENT'] = $this->_user_agent;
@@ -24,7 +24,7 @@ class UserAgent_test extends CI_TestCase
// --------------------------------------------------------------------
- public function testAcceptLang()
+ public function test_accept_lang()
{
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'en';
@@ -35,7 +35,7 @@ class UserAgent_test extends CI_TestCase
// --------------------------------------------------------------------
- public function testMobile()
+ public function test_mobile()
{
// Mobile Not Set
$_SERVER['HTTP_USER_AGENT'] = $this->_mobile_ua;
@@ -45,7 +45,7 @@ class UserAgent_test extends CI_TestCase
// --------------------------------------------------------------------
- public function testUtilIsFunctions()
+ public function test_util_is_functions()
{
$this->assertTrue($this->agent->is_browser());
$this->assertFalse($this->agent->is_robot());
@@ -55,14 +55,14 @@ class UserAgent_test extends CI_TestCase
// --------------------------------------------------------------------
- public function testAgentString()
+ public function test_agent_string()
{
$this->assertEquals($this->_user_agent, $this->agent->agent_string());
}
// --------------------------------------------------------------------
- public function testBrowserInfo()
+ public function test_browser_info()
{
$this->assertEquals('Mac OS X', $this->agent->platform());
$this->assertEquals('Safari', $this->agent->browser());
@@ -73,7 +73,7 @@ class UserAgent_test extends CI_TestCase
// --------------------------------------------------------------------
- public function testCharsets()
+ public function test_charsets()
{
$_SERVER['HTTP_ACCEPT_CHARSET'] = 'utf8';