Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-10-30 00:20:49 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-10-30 00:20:49 +0300
commitecf5fa923645204b0967d898083295fee2ccb8aa (patch)
tree97fc614d6df2c18c63a2253a7690bfaf3221ef09 /tests/PHPUnit/Unit/DeprecatedMethodsTest.php
parentbbbf9acea29e10b9b9b2da1def68fbebc1efef6c (diff)
Added tests for deprecated methods in Piwik\IP class
Diffstat (limited to 'tests/PHPUnit/Unit/DeprecatedMethodsTest.php')
-rw-r--r--tests/PHPUnit/Unit/DeprecatedMethodsTest.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/PHPUnit/Unit/DeprecatedMethodsTest.php b/tests/PHPUnit/Unit/DeprecatedMethodsTest.php
index 633d5b6ea3..82e564cb95 100644
--- a/tests/PHPUnit/Unit/DeprecatedMethodsTest.php
+++ b/tests/PHPUnit/Unit/DeprecatedMethodsTest.php
@@ -39,6 +39,21 @@ class DeprecatedMethodsTest extends PHPUnit_Framework_TestCase
$this->assertDeprecatedClassIsRemoved('\Piwik\Tests\Fixture', $validTill);
$this->assertDeprecatedClassIsRemoved('\Piwik\Tests\OverrideLogin', $validTill);
+ $validTill = '2015-03-01';
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'sanitizeIp', $validTill);
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'sanitizeIpRange', $validTill);
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'P2N', $validTill);
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'N2P', $validTill);
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'prettyPrint', $validTill);
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'isIPv4', $validTill);
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'long2ip', $validTill);
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'isIPv6', $validTill);
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'isMappedIPv4', $validTill);
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'getIPv4FromMappedIPv6', $validTill);
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'getIpsForRange', $validTill);
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'isIpInRange', $validTill);
+ $this->assertDeprecatedMethodIsRemoved('Piwik\IP', 'getHostByAddr', $validTill);
+
$this->assertDeprecatedMethodIsRemovedInPiwik3('\Piwik\Menu\MenuAbstract', 'add');
}