protected function buildShortenedText($targetLength) { $this->shortenedText = $this->textIterator->setText($this->splitText)->iterate($targetLength); $this->shortenedText = rtrim($this->shortenedText) . ' ...'; }
public function testCsv() { $this->object->setFlags(TextIterator::SKIP_FIRST_LINE)->setCsv(';'); $compare = $this->loadContent(); $this->assertSame(self::getFileContent('csv'), $compare); }