Login   Register  
PHP Classes
elePHPant
Icontem

File: tests/bootstrap.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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:
Date: 9 months ago
Size: 282 bytes
 

Contents

Class file image Download
<?php

$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");
}