Fix phar regex test when '.php' is part of the path, instead be more specific with '.php$' regex.

This commit is contained in:
Brian Shire 2009-11-21 05:38:58 +00:00
parent 121f106685
commit 2484e563e2

View File

@ -15,7 +15,7 @@ foreach(range(1, 4) as $i) {
try {
$phar = new Phar(dirname(__FILE__) . '/buildfromdirectory.phar');
var_dump($phar->buildFromDirectory(dirname(__FILE__) . '/testdir', '/\.php/'));
var_dump($phar->buildFromDirectory(dirname(__FILE__) . '/testdir', '/\.php$/'));
} catch (Exception $e) {
var_dump(get_class($e));
echo $e->getMessage() . "\n";