Recurr\Test\Transformer\ArrayTransformerByDayTest::testByDayYearly PHP Метод

testByDayYearly() публичный Метод

public testByDayYearly ( )
    public function testByDayYearly()
    {
        $rule = new Rule('FREQ=YEARLY;COUNT=3;BYDAY=20MO', new \DateTime('1997-05-19 16:00:00'));
        $computed = $this->transformer->transform($rule);
        $this->assertEquals(3, count($computed));
        $this->assertEquals(new \DateTime('1997-05-19 16:00:00'), $computed[0]->getStart());
        $this->assertEquals(new \DateTime('1998-05-18 16:00:00'), $computed[1]->getStart());
        $this->assertEquals(new \DateTime('1999-05-17 16:00:00'), $computed[2]->getStart());
    }