diff options
Diffstat (limited to 'vendor/fguillot/picofeed/tests/Client/CurlTest.php')
-rw-r--r-- | vendor/fguillot/picofeed/tests/Client/CurlTest.php | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/vendor/fguillot/picofeed/tests/Client/CurlTest.php b/vendor/fguillot/picofeed/tests/Client/CurlTest.php index 0ade6d207..e141a1f54 100644 --- a/vendor/fguillot/picofeed/tests/Client/CurlTest.php +++ b/vendor/fguillot/picofeed/tests/Client/CurlTest.php @@ -18,19 +18,18 @@ class CurlTest extends PHPUnit_Framework_TestCase $this->assertEquals('text/html; charset=utf-8', $result['headers']['Content-Type']); } -// // disabled due to https://github.com/sebastianbergmann/phpunit/issues/1452 -// /** -// * @runInSeparateProcess -// */ -// public function testPassthrough() -// { -// $client = new Curl; -// $client->setUrl('http://miniflux.net/favicon.ico'); -// $client->enablePassthroughMode(); -// $client->doRequest(); -// -// $this->expectOutputString('no_to_be_defined'); -// } + /** + * @runInSeparateProcess + */ + public function testPassthrough() + { + $client = new Curl; + $client->setUrl('http://miniflux.net/favicon.ico'); + $client->enablePassthroughMode(); + $client->doRequest(); + + $this->expectOutputString(file_get_contents('tests/fixtures/miniflux_favicon.ico')); + } public function testRedirect() { |