/** * @dataProvider getN2PTestData * @group Core * @group IP */ public function testPrettyPrintInvalidInput($N) { $this->assertEquals("0.0.0.0", Piwik_IP::prettyPrint($N), bin2hex($N)); }
function test_prettyPrint_invalidInput() { foreach ($this->getN2PTestData() as $N) { $this->assertEqual(Piwik_IP::prettyPrint($N), "0.0.0.0", bin2hex($N)); } }