|
From: <gem...@li...> - 2012-08-30 13:00:48
|
Revision: 912
http://gemstracker.svn.sourceforge.net/gemstracker/?rev=912&view=rev
Author: mennodekker
Date: 2012-08-30 13:00:42 +0000 (Thu, 30 Aug 2012)
Log Message:
-----------
Removed IPRanges test as ip2long is not reliable between windows and *nix based systems
Removed Paths:
-------------
trunk/test/classes/Gems/Validate/IPRangesTest.php
Deleted: trunk/test/classes/Gems/Validate/IPRangesTest.php
===================================================================
--- trunk/test/classes/Gems/Validate/IPRangesTest.php 2012-08-29 14:55:50 UTC (rev 911)
+++ trunk/test/classes/Gems/Validate/IPRangesTest.php 2012-08-30 13:00:42 UTC (rev 912)
@@ -1,66 +0,0 @@
-<?php
-class Gems_Validate_IPRangesTest extends PHPUnit_Framework_TestCase
-{
-/**
- * @var Gems_Validate_IPRanges
- */
- protected $object;
-
- /**
- * Sets up the fixture, for example, opens a network connection.
- * This method is called before a test is executed.
- */
- protected function setUp()
- {
- $this->object = new Gems_Validate_IPRanges();
- }
-
- /**
- * @dataProvider providerValidIPRanges
- */
- public function testValidIPRange($input) {
- $this->assertTrue($this->object->isValid($input));
- }
-
- /**
- * @dataProvider providerInValidIPRanges
- */
- public function testInValidIPRange($input) {
- $this->assertFalse($this->object->isValid($input));
- }
-
- /**
- * This should be valid ip ranges
- *
- * @return array
- */
- public static function providerValidIPRanges() {
- return array(
- array('1-2'),
- array('10.1.1.2-20.1.2.3'),
- array('1|2'),
- );
- }
-
- /**
- * This should be invalid ip ranges
- *
- * @return array
- */
- public static function providerInValidIPRanges() {
- return array(
- array(''),
- array('a'),
- array('10.1.1.1-a'),
- );
- }
-
- /**
- * Tears down the fixture, for example, closes a network connection.
- * This method is called after a test is executed.
- */
- protected function tearDown()
- {
-
- }
-}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|