1--TEST--
2Phar object passed URL
3--INI--
4default_charset=UTF-8
5--SKIPIF--
6<?php if (!extension_loaded("phar")) die("skip"); ?>
7--FILE--
8<?php
9try {
10	$a = new Phar('http://should.fail.com');
11} catch (UnexpectedValueException $e) {
12	echo $e->getMessage(),"\n";
13}
14try {
15	$a = new Phar('http://');
16} catch (UnexpectedValueException $e) {
17	echo $e->getMessage(),"\n";
18}
19try {
20	$a = new Phar('http:/');
21} catch (UnexpectedValueException $e) {
22	echo $e->getMessage(),"\n";
23}
24?>
25===DONE===
26--EXPECT--
27Cannot create a phar archive from a URL like "http://should.fail.com". Phar objects can only be created from local files
28Cannot create a phar archive from a URL like "http://". Phar objects can only be created from local files
29Cannot create phar 'http:/', file extension (or combination) not recognised or the directory does not exist
30===DONE===
31