--TEST-- Phar::buildFromDirectory() - non-directory passed as first parameter --EXTENSIONS-- phar --SKIPIF-- --INI-- phar.require_hash=0 phar.readonly=0 --FILE-- buildFromDirectory(1); } catch (Exception $e) { var_dump(get_class($e)); echo $e->getMessage() . "\n"; } ?> --CLEAN-- --EXPECTF-- %s(24) "UnexpectedValueException" RecursiveDirectoryIterator::__construct(1): %s (code: 2)