diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-08-14 08:37:25 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-08-14 08:42:24 +0200 |
commit | b48d4fdddf67a88bf97d200397ab8c379715ed62 (patch) | |
tree | 07db2a4a6e4e7a34bd9c5e3b7d91138c1b2215b0 /vendor/fguillot | |
parent | f13220e131787efa788b31d98c9fcc138b525d63 (diff) |
update picofeed
Diffstat (limited to 'vendor/fguillot')
-rw-r--r-- | vendor/fguillot/picofeed/lib/PicoFeed/Rules/explosm.net.php | 1 | ||||
-rw-r--r-- | vendor/fguillot/picofeed/tests/Client/CurlTest.php | 4 | ||||
-rw-r--r-- | vendor/fguillot/picofeed/tests/Client/StreamTest.php | 4 |
3 files changed, 4 insertions, 5 deletions
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('<!DOCTYPE', substr($result['body'], 0, 9)); - $this->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('<!DOCTYPE', substr($result['body'], 0, 9)); - $this->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()); } /** |