public function testCreateFromLines() { $range = LineRange::fromLines(1, 4); $this->assertEquals(1, $range->getStart()); $this->assertEquals(4, $range->getEnd()); $this->assertTrue($range->isInRange(1)); $this->assertFalse($range->isInRange(5)); }
public function setUp() { parent::setUp(); $file = File::createFromPath(__FILE__, __DIR__); $this->useStatement = new UseStatement($file, LineRange::fromLines(3, 5)); }