process() 공개 메소드

Execute processor
public process ( array $items ) : array
$items array
리턴 array
예제 #1
0
 /**
  * @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);
 }