예제 #1
0
 /**
  * @dataProvider includesDataProvider
  */
 public function testIncludes(\DateTime $begin, PeriodInterface $period, $strict, $result)
 {
     $day = new Day($begin, $this->prophesize(FactoryInterface::class)->reveal());
     $this->assertSame($result, $day->includes($period, $strict));
 }
예제 #2
0
 /**
  * @dataProvider includesDataProvider
  */
 public function testIncludes(\DateTime $begin, PeriodInterface $period, $strict, $result)
 {
     $day = new Day($begin);
     $this->assertSame($result, $day->includes($period, $strict));
 }