diff options
Diffstat (limited to 'vendor/fguillot/picofeed')
-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()); } /** |