1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-12 00:54:11 +02:00

updated test support files

This commit is contained in:
David Grudl
2014-05-13 02:47:35 +02:00
parent d4c72bbd4d
commit e99ce9d053
5 changed files with 19 additions and 72 deletions

View File

@@ -1,13 +1,18 @@
<?php
/**
* Test initialization and helpers.
*
* @author David Grudl
*/
// The Nette Tester command-line runner can be
// invoked through the command: ../../vendor/bin/tester .
require __DIR__ . '/../../vendor/nette/tester/Tester/bootstrap.php';
require __DIR__ . '/../../dibi/dibi.php';
$config = require __DIR__ . '/config.php';
if (@!include __DIR__ . '/../../vendor/autoload.php') {
echo 'Install Nette Tester using `composer update --dev`';
exit(1);
}
// configure environment
Tester\Environment::setup();
date_default_timezone_set('Europe/Prague');
// load connections
$config = require __DIR__ . '/config.php';