firefly-iii/tests/_bootstrap.php

31 lines
756 B
PHP
Raw Normal View History

2014-11-26 14:31:12 -06:00
<?php
2014-12-20 08:00:53 -06:00
//exec('php artisan migrate --seed --env=testing');
2014-11-26 14:31:12 -06:00
// This is global bootstrap for autoloading
2014-12-20 08:00:53 -06:00
//
//
//$db = realpath(__DIR__ . '/_data') . '/testing.sqlite';
//if (!file_exists($db)) {
// echo 'Recreating database...' . "\n";
// exec('touch ' . $db);
//
//} else {
// echo 'Database exists!' . "\n";
//}
//echo 'Copy database to clean database (turned off)...' . "\n";
//exec('cp ' . $db . ' ' . realpath(__DIR__ . '/_data') . '/clean.sqlite');
//
//
///**
// * Class resetToClean
// * @SuppressWarnings("CamelCase")
// */
2014-12-13 02:36:30 -06:00
class resetToClean
{
/**
*
*/
static public function clean()
{
2014-12-20 08:00:53 -06:00
//exec('cp ' . realpath(__DIR__ . '/_data') . '/clean.sqlite ' . realpath(__DIR__ . '/_data') . '/testing.sqlite');
2014-12-13 02:36:30 -06:00
}
}