2014-12-30 18:53:32 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// HEADER HERE
|
|
|
|
// ---------------------------------------------------------------
|
|
|
|
|
|
|
|
/**
|
|
|
|
* PHP TOC Unit Tests Bootstrap File
|
|
|
|
*
|
2015-02-04 20:42:05 +00:00
|
|
|
* @license http://opensource.org/licenses/MIT
|
|
|
|
* @link https://github.com/igorvbelousov/toc
|
|
|
|
* @version 1.0
|
|
|
|
* @package igorvbelousov/toc
|
2014-12-30 18:53:32 +00:00
|
|
|
* @author Casey McLaughlin <caseyamcl@gmail.com>
|
2015-02-04 20:42:05 +00:00
|
|
|
* @author Igor V Belousov <igor@belousovv.ru>
|
2014-12-30 18:53:32 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
//Files to ensure exist
|
|
|
|
$checkFiles['autoload'] = __DIR__.'/../vendor/autoload.php';
|
|
|
|
$checkFiles[] = __DIR__.'/../vendor/sunra/php-simple-html-dom-parser/README.md';
|
|
|
|
|
|
|
|
//Check 'Em
|
|
|
|
foreach($checkFiles as $file) {
|
|
|
|
|
|
|
|
if ( ! file_exists($file)) {
|
|
|
|
throw new RuntimeException('Install development dependencies to run test suite.');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Away we go
|
|
|
|
$autoload = require_once $checkFiles['autoload'];
|
|
|
|
|
|
|
|
/* EOF: bootstrap.php */
|