diff --git a/.travis.yml b/.travis.yml
index 6dcce6e8..f2e69e64 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,7 +11,7 @@ before_script:
- composer self-update
- composer install --prefer-source --no-interaction --dev
-script: ./vendor/bin/phpunit --bootstrap ./test/bootstrap.php ./test
+script: ./vendor/bin/phpunit -c ./phpunit.xml
notifications:
on_success: never
diff --git a/phpunit.xml b/phpunit.xml
new file mode 100644
index 00000000..eb0ce3ef
--- /dev/null
+++ b/phpunit.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ ./test
+ ./test/res
+ ./test/tmp
+
+
\ No newline at end of file
diff --git a/test/bootstrap.php b/test/bootstrap.php
index 157a6e10..d855fcad 100644
--- a/test/bootstrap.php
+++ b/test/bootstrap.php
@@ -50,22 +50,28 @@ define('SELF_HOSTNAME', gethostbyaddr(SELF_IP_ADDRESS));
require APP_ROOT . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
require APP_ROOT . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'BaseFunctions.php';
+print 'APP_ROOT=' . APP_ROOT . PHP_EOL;
+
// Setup directories
if (!is_dir(TMP_DIR)) {
+ print 'Creating ' . TMP_DIR . PHP_EOL;
+
mkdir(TMP_DIR);
+} else {
+ print 'Deleting ' . TMP_DIR . PHP_EOL;
+
+ // Delete tmp dir ...
+ array_map('unlink', glob(TMP_DIR . DIRECTORY_SEPARATOR . '*'));
}
if (is_dir(CONFIG_PATH)
&& decoct(fileperms(CONFIG_PATH) & 0777) !== '750'
) {
+ print 'Setting permissions for ' . CONFIG_PATH . PHP_EOL;
+
chmod(CONFIG_PATH, 750);
}
-// Delete tmp dir ...
-array_map('unlink', glob(TMP_DIR . DIRECTORY_SEPARATOR . '*'));
-
-print 'APP_ROOT=' . APP_ROOT;
-
/**
* Función para llamadas a gettext
*/