http-stream.phpt 439 B

1234567891011121314151617181920212223
  1. --TEST--
  2. http-stream test
  3. --EXTENSIONS--
  4. dom
  5. --SKIPIF--
  6. <?php
  7. if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
  8. require __DIR__.'/../http/server.inc';
  9. http_server_skipif();
  10. --INI--
  11. allow_url_fopen=1
  12. --FILE--
  13. <?php
  14. require __DIR__.'/../http/server.inc';
  15. ['pid' => $pid, 'uri' => $uri] = http_server([__DIR__."/news.rss"]);
  16. $d = new DomDocument;
  17. $e = $d->load("$uri/news.rss");
  18. echo "ALIVE\n";
  19. http_server_kill($pid);
  20. --EXPECT--
  21. ALIVE