/**
  * @dataProvider dataProvider
  */
 public function testProcess($content, $expectedImages, $pattern)
 {
     $this->items[0]->setContent($content);
     if ($pattern) {
         $this->processor->addIgnoredPattern($pattern);
     }
     $this->items = $this->processor->process($this->items);
     $images = $this->items[0]->getExtra('images');
     $this->assertEquals($expectedImages, $images);
 }