summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/libraries/Useragent_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-09 22:16:58 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-09 22:16:58 +0200
commitc186288755aba46a2b6f0c3f104d9a6ce6b11a7f (patch)
tree1858ae3cb82693e30e2682b2d6e24aecfd959ff7 /tests/codeigniter/libraries/Useragent_test.php
parent99b782d8a3d92c4703a059cbd62e2f1e6fea689c (diff)
Cleanup/optimize tests/codeigniter/
Diffstat (limited to 'tests/codeigniter/libraries/Useragent_test.php')
-rw-r--r--tests/codeigniter/libraries/Useragent_test.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/codeigniter/libraries/Useragent_test.php b/tests/codeigniter/libraries/Useragent_test.php
index 7dad7ac54..89383f807 100644
--- a/tests/codeigniter/libraries/Useragent_test.php
+++ b/tests/codeigniter/libraries/Useragent_test.php
@@ -1,7 +1,7 @@
<?php
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';
@@ -10,7 +10,7 @@ class UserAgent_test extends CI_TestCase {
// set a baseline user agent
$_SERVER['HTTP_USER_AGENT'] = $this->_user_agent;
- $obj = new StdClass;
+ $obj = new stdClass;
$obj->agent = new Mock_Libraries_UserAgent();
$this->ci_instance($obj);
@@ -82,6 +82,4 @@ class UserAgent_test extends CI_TestCase {
$this->assertFalse($this->agent->accept_charset());
}
- // --------------------------------------------------------------------
-
} \ No newline at end of file