Exemple #1
0
 public function testRedirectsStrict()
 {
     if ($this->isRedirectSupportDisabled()) {
         $this->markTestSkipped('Redirect support in cURL is disabled by safe_mode or open_basedir setting');
     } else {
         parent::testRedirectsStrict();
     }
 }
Exemple #2
0
 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();
     }
 }