standard header and bootstrap light continued - 2 (#688)
[openemr.git] / vendor / dompdf / dompdf / tests / bootstrap.php
blobce8f4f363c7a446e08d71a130329559514ad007f
1 <?php
3 date_default_timezone_set('UTC');
5 // Add composer autoloader
6 if (!@include_once __DIR__ . '/../vendor/autoload.php') {
7 if (!@include_once __DIR__ . '/../../../autoload.php') {
8 trigger_error("Unable to load dependencies", E_USER_ERROR);
12 // Add test autoloader
13 spl_autoload_register(function ($class) {
14 $class = str_replace('\\', DIRECTORY_SEPARATOR, $class);
15 $class = preg_replace('/^Dompdf/', 'Dompdf/Tests/_includes', $class);
16 if (file_exists(__DIR__ . DIRECTORY_SEPARATOR . $class . '.php')) {
17 require_once __DIR__ . DIRECTORY_SEPARATOR . $class . '.php';
19 });