PHP Classes

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Ladislav Vondracek   Lawondyss Imager   tests/bootstrap.php   Download  
File: tests/bootstrap.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: Lawondyss Imager
Create image thumbnails using ImageMagick
Author: By
Last change:
Date: 9 years ago
Size: 409 bytes
 

Contents

Class file image Download
<?php

if (!(@include __DIR__ . '/../vendor/autoload.php')) {
  echo
'Install Nette Tester using "composer update --dev"';
  exit(
1);
}

date_default_timezone_set('Europe/Prague');

Tester\Environment::setup();

define('TEMP_DIR', __DIR__ . '/tmp/' . getmypid());

define('ASSETS', __DIR__ . '/assets/');
define('IMAGE', 'avatar.jpg');
define('NON_IMAGE', 'non-image.txt');


Tester\Helpers::purge(TEMP_DIR);