mirror of
https://github.com/simshaun/recurr.git
synced 2025-01-17 07:58:14 +01:00
Add test for #71
This commit is contained in:
parent
582566f504
commit
141092c272
@ -98,4 +98,19 @@ class ArrayTransformerTest extends ArrayTransformerBase
|
||||
$this->assertEquals(new \DateTime('2003-01-12 08:30:00'), $computed[28]->getStart());
|
||||
$this->assertEquals(new \DateTime('2003-01-12 09:30:00'), $computed[29]->getStart());
|
||||
}
|
||||
|
||||
/**
|
||||
* See Issue #71
|
||||
*/
|
||||
public function testPhp53vsPhp54()
|
||||
{
|
||||
$rule = Rule::createFromString('FREQ=WEEKLY;COUNT=3;WKST=MO;BYDAY=WE,TH,FR');
|
||||
$rule->setStartDate(new \Datetime('2015-11-02'));
|
||||
|
||||
$computed = $this->transformer->transform($rule);
|
||||
|
||||
$this->assertEquals(new \DateTime('2015-11-04'), $computed[0]->getStart());
|
||||
$this->assertEquals(new \DateTime('2015-11-05'), $computed[1]->getStart());
|
||||
$this->assertEquals(new \DateTime('2015-11-06'), $computed[2]->getStart());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user