PHP Classes

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Alexander Kiryukhin   PHP Math Expression Evaluator   tests/bootstrap.php   Download  
File: tests/bootstrap.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP Math Expression Evaluator
Parse and evaluate strings with math expressions
Author: By
Last change: Update of tests/bootstrap.php
Date: 2 months ago
Size: 284 bytes
 

Contents

Class file image Download
<?php

$vendorDir
= __DIR__ . '/../../..';

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