diff options
author | Greg Beaver <cellog@php.net> | 2008-10-12 05:41:22 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2008-10-12 05:41:22 +0000 |
commit | 53e1428b069dc9b259839f38c2eb9ac389c33a53 (patch) | |
tree | 3bc64a26906720e09d1e89622fb1e69e68e4f3ad /ext/phar/tests/files | |
parent | 60969b5385e38ff12eedc2ec899351dc41efde65 (diff) | |
download | php-git-53e1428b069dc9b259839f38c2eb9ac389c33a53.tar.gz |
increase code coverage
Diffstat (limited to 'ext/phar/tests/files')
-rw-r--r-- | ext/phar/tests/files/include_path.phar | bin | 0 -> 458 bytes | |||
-rw-r--r-- | ext/phar/tests/files/include_path.phar.inc | 19 | ||||
-rw-r--r-- | ext/phar/tests/files/include_path2.phar | bin | 0 -> 6837 bytes |
3 files changed, 19 insertions, 0 deletions
diff --git a/ext/phar/tests/files/include_path.phar b/ext/phar/tests/files/include_path.phar Binary files differnew file mode 100644 index 0000000000..50f698c2b7 --- /dev/null +++ b/ext/phar/tests/files/include_path.phar diff --git a/ext/phar/tests/files/include_path.phar.inc b/ext/phar/tests/files/include_path.phar.inc new file mode 100644 index 0000000000..85ef5a7663 --- /dev/null +++ b/ext/phar/tests/files/include_path.phar.inc @@ -0,0 +1,19 @@ +<?php +// test advanced example +$phar = new Phar(dirname(__FILE__) . '/include_path.phar'); +$phar2 = new Phar(dirname(__FILE__) . '/include_path2.phar'); +$phar2['file1.php'] = 'file1.php +'; +$phar2['test/file1.php'] = 'test/file1.php +'; +$phar['hello/test.php'] = '<?php +include "file1.php";'; + +$phar->setStub("<?php +set_include_path('.' . PATH_SEPARATOR . 'phar://' . dirname(__FILE__) . '/include_path2.phar' ); +include 'phar://' . __FILE__ . '/hello/test.php'; +set_include_path('.' . PATH_SEPARATOR . 'phar://' . dirname(__FILE__) . '/include_path2.phar/test'); +include 'phar://' . __FILE__ . '/hello/test.php'; +echo \"ok\\n\"; +__HALT_COMPILER(); +?>"); diff --git a/ext/phar/tests/files/include_path2.phar b/ext/phar/tests/files/include_path2.phar Binary files differnew file mode 100644 index 0000000000..7b7355fc2e --- /dev/null +++ b/ext/phar/tests/files/include_path2.phar |