process() public method

Execute processor
public process ( array $items ) : array
$items array
return array
Exemplo n.º 1
0
 public function testOverrideImage()
 {
     $this->items[0]->setImage('http://great.image.com/not-override.jpg');
     $this->items[0]->setContent('<img src="http://great.image.com/override.jpg"/>');
     $this->processor->setOverrideImage(true);
     $this->processor->process($this->items);
     $this->assertEquals('http://great.image.com/override.jpg', $this->items[0]->getImage());
 }