Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 67f69a1

Browse files
committed
3.1.11
1 parent 99e9a9a commit 67f69a1

File tree

366 files changed

+19007
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

366 files changed

+19007
-1
lines changed

Bootstrap.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
/*
3+
* This file is part of the Smarty PHPUnit tests.
4+
*
5+
*/
6+
/*
7+
* Smarty PHPUnit Bootstrap
8+
*/
9+
// Locate SmartyBC class and load it
10+
if (is_file(__DIR__ . '/../smarty/libs/SmartyBC.class.php')) {
11+
require_once __DIR__ . '/../smarty/libs/SmartyBC.class.php';
12+
} elseif (is_file(__DIR__ . '/../libs/SmartyBC.class.php')) {
13+
require_once __DIR__ . '/../libs/SmartyBC.class.php';
14+
} else {
15+
throw new Exception('can not locate Smarty distribution');
16+
}
17+
if (!defined('SMARTY_COMPOSER_INSTALL')) {
18+
foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
19+
if (file_exists($file)) {
20+
define('SMARTY_COMPOSER_INSTALL', $file);
21+
break;
22+
}
23+
}
24+
unset($file);
25+
}
26+
if (!class_exists('PHPUnit_Framework_TestCase')) {
27+
require_once SMARTY_COMPOSER_INSTALL;
28+
}
29+
require_once 'PHPUnit_Smarty.php';
30+
ini_set('date.timezone', 'UTC');
31+
32+

0 commit comments

Comments
 (0)