summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-03-24 13:09:30 +0100
committerAndreas Gohr <andi@splitbrain.org>2013-03-24 13:09:30 +0100
commit33b8a94705bfbd34fbee5ed24982374e166a80d0 (patch)
treea3a18bfbc65613d8001630eddf791b93c431833e /_test
parentf2b500f5e7be771601ea1b1bc110337883d7caf2 (diff)
downloadrpg-33b8a94705bfbd34fbee5ed24982374e166a80d0.tar.gz
rpg-33b8a94705bfbd34fbee5ed24982374e166a80d0.tar.bz2
stream select parameters need to be reset for each call
Diffstat (limited to '_test')
-rw-r--r--_test/tests/inc/httpclient_http.test.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/_test/tests/inc/httpclient_http.test.php b/_test/tests/inc/httpclient_http.test.php
index 252eb6b65..387eb53aa 100644
--- a/_test/tests/inc/httpclient_http.test.php
+++ b/_test/tests/inc/httpclient_http.test.php
@@ -204,5 +204,16 @@ class httpclient_http_test extends DokuWikiTest {
$this->assertFalse($data === false, 'HTTP response');
$this->assertEquals(2550,strlen($data));
}
+
+ /**
+ * This address caused trouble with stream_select()
+ *
+ * @group internet
+ */
+ function test_wikimatrix(){
+ $http = new HTTPClient();
+ $data = $http->get('http://www.wikimatrix.org/cfeed/dokuwiki/-/-');
+ $this->assertTrue($data !== false, $http->error);
+ }
}
//Setup VIM: ex: et ts=4 :