Make test case more resilient

When ran from a root directory the test case failed, because the open_basedir
restriction for "../[…]" won't kick in. Therefore we change the current
working directory to the test case's directory, as discussed on internals,
see <http://news.php.net/php.internals/95585>.
This commit is contained in:
Christoph M. Becker 2016-09-03 00:18:19 +02:00
parent 5efd2a33df
commit c83bdb8e6a

View File

@ -6,6 +6,8 @@ SQLite3 open_basedir checks
open_basedir=.
--FILE--
<?php
chdir(__DIR__);
$directory = dirname(__FILE__) . '/';
$file = uniqid() . '.db';