public function setUp() { $this->setUpApplication(__DIR__ . '/../../../../..'); $this->factory = ThumbnailFactory::getInstance(); $this->mockName = 'mock'; $this->mockImage = new Image(new File('application/data/test.jpg')); $this->mockThumbnailSize = 50; }
/** * Get a thumbnail for this image * @param string name name of the thumbnailer * @param int width width to calculate the thumbnail's width * @param int height height to calculate the thumbnail's height * @return Image Image instance of the thumbnail */ public function thumbnail($name, $width, $height) { $thumbnailFactory = ThumbnailFactory::getInstance(); return $thumbnailFactory->getThumbnail($name, $this, $width, $height); }