コード例 #1
0
 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));
 }
コード例 #2
0
 public function setUp()
 {
     parent::setUp();
     $file = File::createFromPath(__FILE__, __DIR__);
     $this->useStatement = new UseStatement($file, LineRange::fromLines(3, 5));
 }