コード例 #1
0
ファイル: CurlTest.php プロジェクト: rogerwu99/punch_bantana
 public function testRedirectsStrict()
 {
     if ($this->isRedirectSupportDisabled()) {
         $this->markTestSkipped('Redirect support in cURL is disabled by safe_mode or open_basedir setting');
     } else {
         parent::testRedirectsStrict();
     }
 }
コード例 #2
0
ファイル: CurlTest.php プロジェクト: Geeklog-Core/geeklog
 public function testRedirectsStrict()
 {
     if ($this->isRedirectSupportDisabled()) {
         $this->markTestSkipped('Redirect support in cURL is disabled by safe_mode or open_basedir setting');
     } elseif (version_compare(phpversion(), '5.3.2', '<')) {
         $this->markTestSkipped('CURLOPT_POSTREDIR required for strict redirects, available in PHP 5.3.2+');
     } else {
         parent::testRedirectsStrict();
     }
 }