コード例 #1
0
ファイル: YearTest.php プロジェクト: joostvanderborg/CalendR
 /**
  * @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
ファイル: YearTest.php プロジェクト: morloderex/CalendR
 /**
  * @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())));
 }