Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function count()
 {
     if (null === $this->count && $this->worksheet) {
         $length = $this->length;
         $this->length = 0;
         $this->count = parent::count();
         $this->length = $length;
     }
     return $this->count ?: 0;
 }
Пример #2
0
 /**
  * @depends testCurrent
  */
 public function testHeaderRowNumber(ExcelReader $reader)
 {
     $reader->rewind();
     $this->assertEquals(0, $reader->key());
     $this->assertCount(1507, $reader);
     $reader->setHeaderRowNumber(1);
     $reader->rewind();
     $this->assertCount(1506, $reader);
     $this->assertEquals(1, $reader->key());
     return $reader;
 }