diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-31 10:18:08 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-31 10:19:06 +0200 |
commit | 5a5eda55dcdb636e243bb4afcdac2e1cc6f4787a (patch) | |
tree | 22000698d6a452024f276fd163df7a072eae7016 /vendor/fguillot/picofeed/tests/Client | |
parent | 539b3823ade372cc2d076980e513aec57b4c8b06 (diff) |
update picofeed
Diffstat (limited to 'vendor/fguillot/picofeed/tests/Client')
4 files changed, 55 insertions, 0 deletions
diff --git a/vendor/fguillot/picofeed/tests/Client/ClientTest.php b/vendor/fguillot/picofeed/tests/Client/ClientTest.php index 79592811b..b50837230 100644 --- a/vendor/fguillot/picofeed/tests/Client/ClientTest.php +++ b/vendor/fguillot/picofeed/tests/Client/ClientTest.php @@ -6,6 +6,9 @@ use PHPUnit_Framework_TestCase; class ClientTest extends PHPUnit_Framework_TestCase { + /** + * @group online + */ public function testDownload() { $client = Client::getInstance(); @@ -20,6 +23,7 @@ class ClientTest extends PHPUnit_Framework_TestCase /** * @runInSeparateProcess + * @group online */ public function testPassthrough() { @@ -31,6 +35,9 @@ class ClientTest extends PHPUnit_Framework_TestCase $this->expectOutputString(file_get_contents('tests/fixtures/miniflux_favicon.ico')); } + /** + * @group online + */ public function testCacheBothHaveToMatch() { $client = Client::getInstance(); @@ -46,6 +53,9 @@ class ClientTest extends PHPUnit_Framework_TestCase $this->assertTrue($client->isModified()); } + /** + * @group online + */ public function testCacheEtag() { $client = Client::getInstance(); @@ -63,6 +73,9 @@ class ClientTest extends PHPUnit_Framework_TestCase $this->assertFalse($client->isModified()); } + /** + * @group online + */ public function testCacheLastModified() { $client = Client::getInstance(); @@ -78,6 +91,9 @@ class ClientTest extends PHPUnit_Framework_TestCase $this->assertFalse($client->isModified()); } + /** + * @group online + */ public function testCacheBoth() { $client = Client::getInstance(); @@ -95,6 +111,9 @@ class ClientTest extends PHPUnit_Framework_TestCase $this->assertFalse($client->isModified()); } + /** + * @group online + */ public function testCharset() { $client = Client::getInstance(); @@ -108,6 +127,9 @@ class ClientTest extends PHPUnit_Framework_TestCase $this->assertEquals('', $client->getEncoding()); } + /** + * @group online + */ public function testContentType() { $client = Client::getInstance(); diff --git a/vendor/fguillot/picofeed/tests/Client/CurlTest.php b/vendor/fguillot/picofeed/tests/Client/CurlTest.php index e141a1f54..3ee249ff3 100644 --- a/vendor/fguillot/picofeed/tests/Client/CurlTest.php +++ b/vendor/fguillot/picofeed/tests/Client/CurlTest.php @@ -6,6 +6,9 @@ use PHPUnit_Framework_TestCase; class CurlTest extends PHPUnit_Framework_TestCase { + /** + * @group online + */ public function testDownload() { $client = new Curl; @@ -20,6 +23,7 @@ class CurlTest extends PHPUnit_Framework_TestCase /** * @runInSeparateProcess + * @group online */ public function testPassthrough() { @@ -31,6 +35,9 @@ class CurlTest extends PHPUnit_Framework_TestCase $this->expectOutputString(file_get_contents('tests/fixtures/miniflux_favicon.ico')); } + /** + * @group online + */ public function testRedirect() { $client = new Curl; @@ -46,6 +53,7 @@ class CurlTest extends PHPUnit_Framework_TestCase /** * @expectedException PicoFeed\Client\InvalidCertificateException + * @group online */ public function testSSL() { diff --git a/vendor/fguillot/picofeed/tests/Client/GrabberTest.php b/vendor/fguillot/picofeed/tests/Client/GrabberTest.php index 8fc9c58a6..224dc14f1 100644 --- a/vendor/fguillot/picofeed/tests/Client/GrabberTest.php +++ b/vendor/fguillot/picofeed/tests/Client/GrabberTest.php @@ -7,6 +7,9 @@ use PicoFeed\Reader\Reader; class GrabberTest extends PHPUnit_Framework_TestCase { + /** + * @group online + */ public function testGrabContentWithCandidates() { $grabber = new Grabber('http://theonion.com.feedsportal.com/c/34529/f/632231/s/309a7fe4/sc/20/l/0L0Stheonion0N0Carticles0Cobama0Ethrows0Eup0Eright0Ethere0Eduring0Esyria0Emeeting0H336850C/story01.htm'); @@ -37,6 +40,9 @@ class GrabberTest extends PHPUnit_Framework_TestCase } // 01net.com - https://github.com/fguillot/miniflux/issues/267 + /** + * @group online + */ public function testGetRules_afterRedirection() { $grabber = new Grabber('http://rss.feedsportal.com/c/629/f/502199/s/422f8c8a/sc/44/l/0L0S0A1net0N0Ceditorial0C640A3130Cces0E20A150Eimprimer0Eune0Epizza0Eet0Edes0Ebiscuits0Evideo0C0T0Dxtor0FRSS0E16/story01.htm'); @@ -44,6 +50,9 @@ class GrabberTest extends PHPUnit_Framework_TestCase $this->assertTrue(is_array($grabber->getRules())); } + /** + * @group online + */ public function testGrabContent() { $grabber = new Grabber('http://www.egscomics.com/index.php?id=1690'); @@ -53,6 +62,9 @@ class GrabberTest extends PHPUnit_Framework_TestCase $this->assertEquals('<img title="2013-08-22" src="comics/../comics/1377151029-2013-08-22.png" id="comic" border="0" />', $grabber->getContent()); } + /** + * @group online + */ public function testRssGrabContent() { $reader = new Reader; diff --git a/vendor/fguillot/picofeed/tests/Client/StreamTest.php b/vendor/fguillot/picofeed/tests/Client/StreamTest.php index 314d488c3..9a72789a8 100644 --- a/vendor/fguillot/picofeed/tests/Client/StreamTest.php +++ b/vendor/fguillot/picofeed/tests/Client/StreamTest.php @@ -6,6 +6,9 @@ use PHPUnit_Framework_TestCase; class StreamTest extends PHPUnit_Framework_TestCase { + /** + * @group online + */ public function testChunkedResponse() { $client = new Stream; @@ -15,6 +18,9 @@ class StreamTest extends PHPUnit_Framework_TestCase $this->assertEquals('</rss>', substr($result['body'], -6)); } + /** + * @group online + */ public function testDownload() { $client = new Stream; @@ -29,6 +35,7 @@ class StreamTest extends PHPUnit_Framework_TestCase /** * @runInSeparateProcess + * @group online */ public function testPassthrough() { @@ -40,6 +47,9 @@ class StreamTest extends PHPUnit_Framework_TestCase $this->expectOutputString(file_get_contents('tests/fixtures/miniflux_favicon.ico')); } + /** + * @group online + */ public function testRedirect() { $client = new Stream; @@ -64,6 +74,9 @@ class StreamTest extends PHPUnit_Framework_TestCase $client->doRequest(); } + /** + * @group online + */ public function testDecodeGzip() { if (function_exists('gzdecode')) { |