PHP Classes

File: tests/ImageFactory.phpt

Recommend this page to a friend!
  Classes of Ladislav Vondracek   Lawondyss Imager   tests/ImageFactory.phpt   Download  
File: tests/ImageFactory.phpt
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lawondyss Imager
Create image thumbnails using ImageMagick
Author: By
Last change:
Date: 8 years ago
Size: 593 bytes


Class file image Download
<?php /** * @author Ladislav Vondráček <> * @package Tests */ namespace Tests; require_once __DIR__ . '/bootstrap.php'; use Imager\ImageFactory; use Imager\ImageInfo; use Nette; use Tester; use Tester\Assert; class ImageFactoryTest extends Tester\TestCase { public function testCreate() { $factory = new ImageFactory; Assert::type(\Imager\ImageFactory::class, $factory); $imageInfo = new ImageInfo(ASSETS . IMAGE); $result = $factory->create($imageInfo); Assert::type(\Imager\Image::class, $result); } } (new ImageFactoryTest())->run();