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