Update picofeed
This commit is contained in:
parent
7ec0c11190
commit
1c59f939de
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit093c65b5382fc7317d870fcd9f8036ba::getLoader();
|
||||
return ComposerAutoloaderInita56cecf18737d4c6655b021e5f21a1a6::getLoader();
|
||||
|
1
vendor/bin/picofeed
vendored
Symbolic link
1
vendor/bin/picofeed
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../fguillot/picofeed/picofeed
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit093c65b5382fc7317d870fcd9f8036ba
|
||||
class ComposerAutoloaderInita56cecf18737d4c6655b021e5f21a1a6
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -19,9 +19,9 @@ class ComposerAutoloaderInit093c65b5382fc7317d870fcd9f8036ba
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit093c65b5382fc7317d870fcd9f8036ba', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInita56cecf18737d4c6655b021e5f21a1a6', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit093c65b5382fc7317d870fcd9f8036ba', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInita56cecf18737d4c6655b021e5f21a1a6', 'loadClassLoader'));
|
||||
|
||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||
foreach ($map as $namespace => $path) {
|
||||
@ -42,14 +42,14 @@ class ComposerAutoloaderInit093c65b5382fc7317d870fcd9f8036ba
|
||||
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
foreach ($includeFiles as $file) {
|
||||
composerRequire093c65b5382fc7317d870fcd9f8036ba($file);
|
||||
composerRequirea56cecf18737d4c6655b021e5f21a1a6($file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire093c65b5382fc7317d870fcd9f8036ba($file)
|
||||
function composerRequirea56cecf18737d4c6655b021e5f21a1a6($file)
|
||||
{
|
||||
require $file;
|
||||
}
|
||||
|
14
vendor/composer/installed.json
vendored
14
vendor/composer/installed.json
vendored
@ -162,12 +162,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/fguillot/picoFeed.git",
|
||||
"reference": "a006fc10642fbdc5414bebd6542aeabd35f8c98b"
|
||||
"reference": "acc16f1a0854fdaeae2416f1b12ee51a9c150b52"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/fguillot/picoFeed/zipball/a006fc10642fbdc5414bebd6542aeabd35f8c98b",
|
||||
"reference": "a006fc10642fbdc5414bebd6542aeabd35f8c98b",
|
||||
"url": "https://api.github.com/repos/fguillot/picoFeed/zipball/acc16f1a0854fdaeae2416f1b12ee51a9c150b52",
|
||||
"reference": "acc16f1a0854fdaeae2416f1b12ee51a9c150b52",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -178,7 +178,13 @@
|
||||
"ext-xml": "*",
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"time": "2015-03-03 03:14:01",
|
||||
"suggest": {
|
||||
"ext-curl": "PicoFeed will use cURL if present"
|
||||
},
|
||||
"time": "2015-03-19 22:19:36",
|
||||
"bin": [
|
||||
"picofeed"
|
||||
],
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
|
8
vendor/fguillot/picofeed/composer.json
vendored
8
vendor/fguillot/picofeed/composer.json
vendored
@ -18,7 +18,13 @@
|
||||
"ext-libxml": "*",
|
||||
"ext-SimpleXML": "*"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-curl": "PicoFeed will use cURL if present"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": {"PicoFeed": "lib/"}
|
||||
}
|
||||
},
|
||||
"bin" : [
|
||||
"picofeed"
|
||||
]
|
||||
}
|
||||
|
@ -215,7 +215,8 @@ class Attribute
|
||||
* @var array
|
||||
*/
|
||||
private $add_attributes = array(
|
||||
'a' => array('rel' => 'noreferrer', 'target' => '_blank')
|
||||
'a' => array('rel' => 'noreferrer', 'target' => '_blank'),
|
||||
'video' => array('controls' => 'true'),
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
return array(
|
||||
'test_url' => 'http://lesjoiesducode.fr/post/75576211207/quand-lappli-ne-fonctionne-plus-sans-aucune-raison',
|
||||
'body' => array(
|
||||
'//div[@class="post"]//img',
|
||||
'//div[@class="blog-post-content"]',
|
||||
),
|
||||
'strip' => array(
|
||||
)
|
||||
|
@ -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();
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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')) {
|
||||
|
@ -94,7 +94,7 @@ class Rss20ParserTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
$parser = new Rss20(file_get_contents('tests/fixtures/fulltextrss.xml'));
|
||||
$feed = $parser->execute();
|
||||
$this->assertEquals(new DateTime, $feed->getDate());
|
||||
$this->assertEquals(time(), $feed->getDate()->getTimestamp(), '', 1);
|
||||
}
|
||||
|
||||
public function testFeedLanguage()
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user