/** * Test: Includes * * @access public * @dataProvider providerIncludes * @param DateTime $begin * @param PeriodInterface $period * @param boolean $strict * @param boolean $result * @return void */ public function testIncludes(\DateTime $begin, PeriodInterface $period, $strict, $result) { $minute = new Minute($begin); $this->assertSame($result, $minute->includes($period, $strict)); }
/** * @dataProvider providerIncludes */ public function testIncludes(\DateTime $begin, PeriodInterface $period, $strict, $result) { $minute = new Minute($begin, $this->prophesize(FactoryInterface::class)->reveal()); $this->assertSame($result, $minute->includes($period, $strict)); }