From 9d5dac05c3bcd038f91e9faf8841adc97f471ec8 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Fri, 17 Oct 2014 06:48:03 -0400 Subject: [PATCH] Dropped browser class Actually moved it off to joshtronic/php-remoteaddr --- src/Browser.php | 54 ----------------------------------- src/Time.php | 3 -- tests/Pickles/BrowserTest.php | 36 ----------------------- 3 files changed, 93 deletions(-) delete mode 100644 src/Browser.php delete mode 100644 tests/Pickles/BrowserTest.php diff --git a/src/Browser.php b/src/Browser.php deleted file mode 100644 index 8a767c1..0000000 --- a/src/Browser.php +++ /dev/null @@ -1,54 +0,0 @@ -assertFalse(Pickles\Browser::remoteIP()); - } - - public function testRemoteIPRemoteAddress() - { - $_SERVER['REMOTE_ADDR'] = '1.2.3.4'; - - $this->assertEquals('1.2.3.4', Pickles\Browser::remoteIP()); - } - - public function testRemoteIPHTTPXForwardedFor() - { - $_SERVER['HTTP_X_FORWARDED_FOR'] = '2.3.4.5'; - - $this->assertEquals('2.3.4.5', Pickles\Browser::remoteIP()); - } - - public function testRemoteIPHTTPClientIP() - { - $_SERVER['HTTP_CLIENT_IP'] = '3.4.5.6'; - - $this->assertEquals('3.4.5.6', Pickles\Browser::remoteIP()); - } - - public function testRemoteIPWithComma() - { - - } -} -