mirror of
https://github.com/dg/dibi.git
synced 2025-08-01 11:50:15 +02:00
added tests
This commit is contained in:
26
tests/initialize.php
Normal file
26
tests/initialize.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Test initialization and helpers.
|
||||
*
|
||||
* @author David Grudl
|
||||
* @package Nette\Test
|
||||
*/
|
||||
|
||||
require dirname(__FILE__) . '/NetteTest/TestHelpers.php';
|
||||
require dirname(__FILE__) . '/NetteTest/Assert.php';
|
||||
require dirname(__FILE__) . '/../dibi/dibi.php';
|
||||
|
||||
date_default_timezone_set('Europe/Prague');
|
||||
|
||||
TestHelpers::startup();
|
||||
|
||||
if (function_exists('class_alias')) {
|
||||
class_alias('TestHelpers', 'T');
|
||||
} else {
|
||||
class T extends TestHelpers {}
|
||||
}
|
||||
|
||||
// load connections
|
||||
define('DIR', dirname(__FILE__));
|
||||
$config = parse_ini_file('config.ini', TRUE);
|
Reference in New Issue
Block a user