/** * 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)); }
/** * @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)); }