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:
@@ -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';
|
||||
|
Reference in New Issue
Block a user