summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/tests/Reader
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/fguillot/picofeed/tests/Reader')
-rw-r--r--vendor/fguillot/picofeed/tests/Reader/FaviconTest.php18
-rw-r--r--vendor/fguillot/picofeed/tests/Reader/ReaderTest.php12
2 files changed, 30 insertions, 0 deletions
diff --git a/vendor/fguillot/picofeed/tests/Reader/FaviconTest.php b/vendor/fguillot/picofeed/tests/Reader/FaviconTest.php
index 0652bc4af..81c9a04d6 100644
--- a/vendor/fguillot/picofeed/tests/Reader/FaviconTest.php
+++ b/vendor/fguillot/picofeed/tests/Reader/FaviconTest.php
@@ -77,6 +77,9 @@ class FaviconTest extends PHPUnit_Framework_TestCase
$this->assertEquals(array(), $favicon->extract($html));
}
+ /**
+ * @group online
+ */
public function testExists()
{
$favicon = new Favicon;
@@ -87,6 +90,9 @@ class FaviconTest extends PHPUnit_Framework_TestCase
$this->assertFalse($favicon->exists(''));
}
+ /**
+ * @group online
+ */
public function testFind_inMeta()
{
$favicon = new Favicon;
@@ -123,6 +129,9 @@ class FaviconTest extends PHPUnit_Framework_TestCase
$this->assertEmpty($favicon->getContent());
}
+ /**
+ * @group online
+ */
public function testFind_directLinkFirst()
{
$favicon = new Favicon;
@@ -135,6 +144,9 @@ class FaviconTest extends PHPUnit_Framework_TestCase
$this->assertNotEmpty($favicon->getContent());
}
+ /**
+ * @group online
+ */
public function testFind_fallsBackToExtract()
{
$favicon = new Favicon;
@@ -146,6 +158,9 @@ class FaviconTest extends PHPUnit_Framework_TestCase
$this->assertNotEmpty($favicon->getContent());
}
+ /**
+ * @group online
+ */
public function testDataUri()
{
$favicon = new Favicon;
@@ -160,6 +175,9 @@ class FaviconTest extends PHPUnit_Framework_TestCase
$this->assertEquals($expected, $favicon->getDataUri());
}
+ /**
+ * @group online
+ */
public function testDataUri_withBadContentType()
{
$favicon = new Favicon;
diff --git a/vendor/fguillot/picofeed/tests/Reader/ReaderTest.php b/vendor/fguillot/picofeed/tests/Reader/ReaderTest.php
index 1bd60ffee..821c6b9aa 100644
--- a/vendor/fguillot/picofeed/tests/Reader/ReaderTest.php
+++ b/vendor/fguillot/picofeed/tests/Reader/ReaderTest.php
@@ -15,6 +15,9 @@ class ReaderTest extends PHPUnit_Framework_TestCase
$this->assertEquals('https://google.com', $reader->prependScheme('https://google.com'));
}
+ /**
+ * @group online
+ */
public function testDownload_withHTTP()
{
$reader = new Reader;
@@ -22,6 +25,9 @@ class ReaderTest extends PHPUnit_Framework_TestCase
$this->assertNotEmpty($feed);
}
+ /**
+ * @group online
+ */
public function testDownload_withHTTPS()
{
$reader = new Reader;
@@ -29,6 +35,9 @@ class ReaderTest extends PHPUnit_Framework_TestCase
$this->assertNotEmpty($feed);
}
+ /**
+ * @group online
+ */
public function testDownload_withCache()
{
$reader = new Reader;
@@ -210,6 +219,9 @@ class ReaderTest extends PHPUnit_Framework_TestCase
$this->assertEquals(array(), $feeds);
}
+ /**
+ * @group online
+ */
public function testDiscover()
{
$reader = new Reader;