Esempio n. 1
0
 /**
  * @expectedException        \ysaroka\autothumb\exception\ProcessException
  * @expectedExceptionMessage "type" variable must contain only words and numbers.
  */
 public function testProcessExceptionInvalidTypeName()
 {
     $this->variables['type'] = 'sma~ll';
     $this->autoThumb->process($this->variables, false);
 }
<?php

/**
 * Created: 2016-05-17
 * @author Yauhen Saroka <*****@*****.**>
 */
require_once dirname(__FILE__) . '/vendor/autoload.php';
use ysaroka\autothumb\AutoThumb;
$autothumb = new AutoThumb(require_once dirname(__FILE__) . '/autothumb.config.php');
$autothumb->process($_GET);