|
@ -54,12 +54,6 @@ class TestFeedFetching extends Test\AbstractTest { |
|
|
new Feed(null, $this->base."Fetching/EndlessLoop?i=0"); |
|
|
new Feed(null, $this->base."Fetching/EndlessLoop?i=0"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function testHandleATimeout() { |
|
|
|
|
|
Arsse::$conf->fetchTimeout = 1; |
|
|
|
|
|
$this->assertException("timeout", "Feed"); |
|
|
|
|
|
new Feed(null, $this->base."Fetching/Timeout"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function testHandleAnOverlyLargeFeed() { |
|
|
public function testHandleAnOverlyLargeFeed() { |
|
|
Arsse::$conf->fetchSizeLimit = 512; |
|
|
Arsse::$conf->fetchSizeLimit = 512; |
|
|
$this->assertException("maxSize", "Feed"); |
|
|
$this->assertException("maxSize", "Feed"); |
|
@ -70,4 +64,10 @@ class TestFeedFetching extends Test\AbstractTest { |
|
|
$this->assertException("invalidCertificate", "Feed"); |
|
|
$this->assertException("invalidCertificate", "Feed"); |
|
|
new Feed(null, "https://localhost:8000/"); |
|
|
new Feed(null, "https://localhost:8000/"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function testHandleATimeout() { |
|
|
|
|
|
Arsse::$conf->fetchTimeout = 1; |
|
|
|
|
|
$this->assertException("timeout", "Feed"); |
|
|
|
|
|
new Feed(null, $this->base."Fetching/Timeout"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|