Exemplo n.º 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));
 }
Exemplo n.º 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));
 }