aboutsummaryrefslogtreecommitdiff
path: root/tests/bootstrap.php
blob: e22fed26fb94edaf7e04958b66348ee2e4ac4896 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
<?php

ini_set('memory_limit', '512M');
$vendorDir = __DIR__ . '/../../..';

if (file_exists($file = $vendorDir . '/autoload.php')) {
    require_once $file;
} else if (file_exists($file = './vendor/autoload.php')) {
    require_once $file;
} else {
    throw new \RuntimeException("Not found composer autoload");
}