/** * @covers Image\Canvas::apply */ public function testApply() { $this->object->createImage(100, 100); $this->object->attach(new Draw\Border(10)); $this->assertInstanceOf(get_class($this->object), $this->object->apply()); }
/** * @description Canvas filtering */ function canvasfilter() { $f = new Canvas(100, 100, rgb(0, 255, 0)); $f->apply(new PixelateImageFilter(5)); // $this->assertEquals($f->getColorAt(0,0),rgb(0,0,255)); }