1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/standard/tests/network/http-stream.phpt
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

24 lines
439 B
PHP

--TEST--
http-stream test
--EXTENSIONS--
dom
--SKIPIF--
<?php
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
require __DIR__.'/../http/server.inc';
http_server_skipif();
--INI--
allow_url_fopen=1
--FILE--
<?php
require __DIR__.'/../http/server.inc';
['pid' => $pid, 'uri' => $uri] = http_server([__DIR__."/news.rss"]);
$d = new DomDocument;
$e = $d->load("$uri/news.rss");
echo "ALIVE\n";
http_server_kill($pid);
--EXPECT--
ALIVE