From 21460875fc983e22fd33cb108e9de5d897362715 Mon Sep 17 00:00:00 2001 From: Steph Fox Date: Sun, 4 May 2008 20:58:43 +0000 Subject: - Some tests for buildFromDirectory() --- ext/phar/tests/phar_buildfromdirectory3.phpt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ext/phar/tests/phar_buildfromdirectory3.phpt (limited to 'ext/phar/tests/phar_buildfromdirectory3.phpt') diff --git a/ext/phar/tests/phar_buildfromdirectory3.phpt b/ext/phar/tests/phar_buildfromdirectory3.phpt new file mode 100644 index 0000000000..435bbdfba6 --- /dev/null +++ b/ext/phar/tests/phar_buildfromdirectory3.phpt @@ -0,0 +1,27 @@ +--TEST-- +Phar::buildFromDirectory() - object passed as second parameter +--SKIPIF-- + +--INI-- +phar.require_hash=0 +phar.readonly=0 +--FILE-- +buildFromDirectory('files', new stdClass); +} catch (Exception $e) { + var_dump(get_class($e)); + echo $e->getMessage() . "\n"; +} +?> +===DONE=== +--CLEAN-- + +--EXPECTF-- +Warning: Phar::buildFromDirectory() expects parameter 2 to be string, object given in %sphar_buildfromdirectory3.php on line %d +===DONE=== -- cgit v1.2.1