TESTS_ZEND_SERVICE_DEVELOPERGARDEN_ONLINE_LOGIN, 'password' => TESTS_ZEND_SERVICE_DEVELOPERGARDEN_ONLINE_PASSWORD, ); $this->service = new Zend_Service_DeveloperGarden_OfflineIpLocation_Mock($config); } /** * @expectedException Zend_Service_DeveloperGarden_Exception */ public function testIpAddressVersion() { $ip = new Zend_Service_DeveloperGarden_IpLocation_IpAddress('127.0.0.1', 4); $this->assertNotNull($ip->setVersion(6)); } /** * @expectedException Zend_Service_DeveloperGarden_Exception */ public function testIpAddressInValid() { $ip = new Zend_Service_DeveloperGarden_IpLocation_IpAddress('266.266.266.266'); } } class Zend_Service_DeveloperGarden_OfflineIpLocation_Mock extends Zend_Service_DeveloperGarden_IpLocation { } if (PHPUnit_MAIN_METHOD == 'Zend_Service_DeveloperGarden_OfflineIpLocationTest::main') { Zend_Service_DeveloperGarden_OfflineIpLocationTest::main(); }