예제 #1
0
 /**
  * @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)));
 }
예제 #2
0
 /**
  * @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())));
 }