<?php
require_once realpath(__DIR__ . '/../core/slir.class.php');

abstract class SLIRTestCase extends PHPUnit_Framework_TestCase
{
  /**
   * @var SLIR
   */
  protected $slir;

  /**
   * @return void
   */
  protected function setUp()
  {
    $this->slir = new SLIR();
    SLIRConfig::$defaultImagePath   = null;
    SLIRConfig::$forceQueryString   = false;
    SLIRConfig::$enableErrorImages  = false;
    SLIRConfig::$defaultCropper     = SLIR::CROP_CLASS_CENTERED;
    SLIRConfig::$copyEXIF           = false;

    // Try to fix documentRoot for CLI
    SLIRConfig::$documentRoot = realpath(__DIR__ . '/../../');
  }

  /**
   * @return void
   */
  protected function tearDown()
  {
    unset($this->slir);
  }
}

<?php
require_once realpath(__DIR__ . '/../core/slir.class.php');

abstract class SLIRTestCase extends PHPUnit_Framework_TestCase
{
  /**
   * @var SLIR
   */
  protected $slir;

  /**
   * @return void
   */
  protected function setUp()
  {
    $this->slir = new SLIR();
    SLIRConfig::$defaultImagePath     = null;
    SLIRConfig::$forceQueryString     = false;
    SLIRConfig::$enableErrorImages    = false;
    SLIRConfig::$defaultCropper       = SLIR::CROP_CLASS_CENTERED;
    SLIRConfig::$copyEXIF             = false;
    SLIRConfig::$maxMemoryToAllocate  = -1;

    // Try to fix documentRoot for CLI
    SLIRConfig::$documentRoot = realpath(__DIR__ . '/../../');
  }

  /**
   * @return void
   */
  protected function tearDown()
  {
    unset($this->slir);
  }
}

Set memory_limit to be unlimited for tests
Set memory_limit to be unlimited for tests
