PHP Classes

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Matous Nemec   PHP Data Grid View   tests/bootstrap.php   Download  
File: tests/bootstrap.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Data Grid View
Display data in an editable grid on a Web page
Author: By
Last change:
Date: 3 years ago
Size: 624 bytes
 

Contents

Class file image Download
<?php

require_once __DIR__ . '/../vendor/autoload.php';

if (!
class_exists('Tester\Assert')) {
    echo
"Install Nette Tester using `composer update --dev`\n";
    exit(
1);
}
@
mkdir(__DIR__ . "/log");
@
mkdir(__DIR__ . "/tmp");

define("TEMP_DIR", __DIR__ . "/tmp/");

Tester\Helpers::purge(TEMP_DIR);

$loader = new Nette\Loaders\RobotLoader;
$loader->addDirectory(__DIR__ . '/../src');
$loader->setCacheStorage(new Nette\Caching\Storages\FileStorage(TEMP_DIR));
$loader->register();

Tester\Environment::setup();

function
pdump($val)
{
   
Tracy\Debugger::$productionMode = false;
   
call_user_func_array('dump', func_get_args());
}