mirror of
https://github.com/smarty-php/smarty.git
synced 2026-08-09 23:11:30 +02:00
* Removed unneeded files and replace dummy.txt with .gitignore files * Synced unit tests with master codebase, noted TODO's, fixed phpunit scripts and travis config * fix php7.4 deprecation and remove php7.4 from travis allow_failures since php7.4 is current stable Co-authored-by: Uwe Tews <uwe.tews@googlemail.com> Co-authored-by: Uwe Tews <uwe.tews@gmail.com> Co-authored-by: AnrDaemon <anrdaemon@yandex.ru>
29 lines
999 B
PHP
29 lines
999 B
PHP
<?php
|
|
/*
|
|
* This file is part of the Smarty PHPUnit tests.
|
|
*
|
|
*/
|
|
/*
|
|
* Smarty PHPUnit Bootstrap
|
|
*/
|
|
require_once dirname(__FILE__) . '/Config.php';
|
|
require_once dirname(__FILE__) . '/../vendor/autoload.php';
|
|
require_once dirname(__FILE__) . '/../libs/bootstrap.php';
|
|
|
|
if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) {
|
|
class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
|
|
class_alias('\PHPUnit\Framework\Error\Notice', '\PHPUnit_Framework_Error_Notice');
|
|
class_alias('\PHPUnit\Framework\Error\Error', '\PHPUnit_Framework_Error_Error');
|
|
class_alias('\PHPUnit\Framework\Error\Warning', '\PHPUnit_Framework_Error_Warning');
|
|
class_alias('\PHPUnit\Framework\Error\Warning', '\PHPUnit_Framework_Error_Deprecated');
|
|
class_alias('\PHPUnit\Util\Configuration', '\PHPUnit_Util_Configuration');
|
|
}
|
|
|
|
require_once 'PHPUnit_Smarty.php';
|
|
if (!ini_get('date.timezone')) {
|
|
ini_set('date.timezone', 'Europe/Berlin');
|
|
}
|
|
|
|
|
|
|