/** * @dataProvider providerContains */ public function testContains($begin, $end, $contain, $notContain) { $range = new Range($begin, $end); $this->assertTrue($range->contains($contain)); $this->assertFalse($range->contains($notContain)); }
/** * @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)); }