예제 #1
0
 /**
  * @dataProvider providerContains
  */
 public function testContains($begin, $end, $contain, $notContain)
 {
     $range = new Range($begin, $end);
     $this->assertTrue($range->contains($contain));
     $this->assertFalse($range->contains($notContain));
 }
예제 #2
0
 /**
  * @dataProvider providerContains
  */
 public function testContains($begin, $end, $contain, $notContain)
 {
     $range = new Range($begin, $end, $this->prophesize(FactoryInterface::class)->reveal());
     $this->assertTrue($range->contains($contain));
     $this->assertFalse($range->contains($notContain));
 }