FastFeed\Tests\Processor\ImagesProcessorTest::testProcess PHP Method

testProcess() public method

public testProcess ( $content, $expectedImages, $pattern )
    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);
    }