public function testProcess($content, $expectedImage, $pattern)
{
$this->items[0]->setContent($content);
if ($pattern) {
$this->processor->addIgnoredPattern($pattern);
}
$this->items = $this->processor->process($this->items);
$this->assertEquals($expectedImage, $this->items[0]->getImage());
}