/** * @dataProvider dataProvider */ public function testProcess($expected, $actual) { $this->items[0]->setIntro($actual); $this->items[0]->setContent($actual); $this->items = $this->processor->process($this->items); $this->assertEquals($expected, $this->items[0]->getIntro()); $this->assertEquals($expected, $this->items[0]->getContent()); }
/** * @expectedException \FastFeed\Exception\InvalidArgumentException */ public function testException() { $this->processor = new SanitizerProcessor('/'); $this->processor->process($this->items); }