/** * @dataProvider providerContains */ public function testIncludes($start, $contain, $notContain) { $year = new Year($start); $this->assertTrue($year->includes(new Day($contain))); $this->assertFalse($year->includes(new Day($notContain))); }
/** * @dataProvider providerContains */ public function testIncludes($start, $contain, $notContain) { $year = new Year($start, $this->prophesize(FactoryInterface::class)->reveal()); $this->assertTrue($year->includes(new Day($contain, $this->prophesize(FactoryInterface::class)->reveal()))); $this->assertFalse($year->includes(new Day($notContain, $this->prophesize(FactoryInterface::class)->reveal()))); }