Example #1
0
 protected function _getPackageWithValidConnect()
 {
     return $this->_package->connect(self::VALID_HOST, self::VALID_PORT, self::VALID_USERNAME, self::VALID_PASSWORD);
 }
Example #2
0
 public function testInvalidResponseCode()
 {
     $this->_package->url('http://www.google.com/some_wrong_link')->responseCode('/^[2|3]/');
     $this->assertFalse($this->_result->wasSuccessful());
 }