public function testRange3() { foreach ($this->createRangeIncreaseByFuncs() as $increaseByFunc) { $seq = Enumerable::range(2, 3, $increaseByFunc); $items = static::sequenceToArray($seq); $this->assertEquals(3, count($items)); $this->assertTrue(isset($items[0])); $this->assertSame(2, $items[0]); $this->assertTrue(isset($items[1])); $this->assertSame(2.5, $items[1]); $this->assertTrue(isset($items[2])); $this->assertSame(3.0, $items[2]); } }