Exemple #1
0
 /**
  * Test: Includes
  *
  * @access public
  * @param DateTime $begin
  * @param PeriodInterface $period
  * @param boolean $strict
  * @param boolean $result
  * @dataProvider includesDataProvider
  * @return void
  */
 public function testIncludes(\DateTime $begin, PeriodInterface $period, $strict, $result)
 {
     $hour = new Hour($begin);
     $this->assertSame($result, $hour->includes($period, $strict));
 }
Exemple #2
0
 /**
  * @dataProvider includesDataProvider
  */
 public function testIncludes(\DateTime $begin, PeriodInterface $period, $strict, $result)
 {
     $hour = new Hour($begin, $this->prophesize(FactoryInterface::class)->reveal());
     $this->assertSame($result, $hour->includes($period, $strict));
 }