From b48d4fdddf67a88bf97d200397ab8c379715ed62 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 14 Aug 2015 08:37:25 +0200 Subject: update picofeed --- vendor/fguillot/picofeed/lib/PicoFeed/Rules/explosm.net.php | 1 - vendor/fguillot/picofeed/tests/Client/CurlTest.php | 4 ++-- vendor/fguillot/picofeed/tests/Client/StreamTest.php | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'vendor/fguillot') diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/explosm.net.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/explosm.net.php index 3a6587130..83a08904c 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/explosm.net.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/explosm.net.php @@ -5,7 +5,6 @@ return array( 'test_url' => 'http://explosm.net/comics/3803/', 'body' => array( '//div[@id="comic-container"]', - '//div[@id="comic-container"]//img/@src' ), 'strip' => array( ), diff --git a/vendor/fguillot/picofeed/tests/Client/CurlTest.php b/vendor/fguillot/picofeed/tests/Client/CurlTest.php index a1410ce72..ec7b39894 100644 --- a/vendor/fguillot/picofeed/tests/Client/CurlTest.php +++ b/vendor/fguillot/picofeed/tests/Client/CurlTest.php @@ -47,8 +47,8 @@ class CurlTest extends PHPUnit_Framework_TestCase $this->assertTrue(is_array($result)); $this->assertEquals(200, $result['status']); $this->assertEquals('assertEquals('text/html', $result['headers']['Content-Type']); - $this->assertEquals('http://www.01net.com/editorial/643722/android-google-now-s-ouvre-aux-applications-tierces/', str_replace('#?xtor=RSS-16', '', $client->getUrl())); + $this->assertEquals('text/html; charset=utf-8', $result['headers']['Content-Type']); + $this->assertEquals('http://www.01net.com/actualites/android-google-now-s-ouvre-aux-applications-tierces-643722.html', $client->getUrl()); } /** diff --git a/vendor/fguillot/picofeed/tests/Client/StreamTest.php b/vendor/fguillot/picofeed/tests/Client/StreamTest.php index 9a72789a8..764850d3c 100644 --- a/vendor/fguillot/picofeed/tests/Client/StreamTest.php +++ b/vendor/fguillot/picofeed/tests/Client/StreamTest.php @@ -59,8 +59,8 @@ class StreamTest extends PHPUnit_Framework_TestCase $this->assertTrue(is_array($result)); $this->assertEquals(200, $result['status']); $this->assertEquals('assertEquals('text/html', $result['headers']['Content-Type']); - $this->assertEquals('http://www.01net.com/editorial/643722/android-google-now-s-ouvre-aux-applications-tierces/#?xtor=RSS-16', $client->getUrl()); + $this->assertEquals('text/html; charset=utf-8', $result['headers']['Content-Type']); + $this->assertEquals('http://www.01net.com/actualites/android-google-now-s-ouvre-aux-applications-tierces-643722.html', $client->getUrl()); } /** -- cgit v1.2.3