FastFeed\Tests\Processor\SortByDateProcessorTest::testProcess PHP Méthode

testProcess() public méthode

public testProcess ( )
    public function testProcess()
    {
        $this->items[0] = new Item();
        $this->items[1] = new Item();
        $this->items[2] = new Item();
        $this->items[3] = new Item();
        $date0 = new DateTime();
        $date1 = new DateTime();
        $date0->modify('-1 day');
        $this->items[0]->setDate($date0);
        $this->items[1]->setDate($date1);
        $this->items[2]->setDate($date0);
        $this->items = $this->processor->process($this->items);
        $this->assertEquals($this->items[0]->getDate(), $date1);
    }
SortByDateProcessorTest