canRead(self::FILENAME)); } public function testNotEnoughMemoryCanRead(): void { $reader = new Gnumeric(); $reader->setMaxLength(64 * 1024 * 1024); self::assertFalse($reader->canRead(self::FILENAME)); } public function testNotEnoughMemoryListNames(): void { $this->expectException(ReaderException::class); $this->expectExceptionMessage('invalid Gnumeric file'); $reader = new Gnumeric(); $reader->setMaxLength(64 * 1024 * 1024); $reader->listWorksheetNames(self::FILENAME); } public function testNotEnoughMemoryListInfo(): void { $this->expectException(ReaderException::class); $this->expectExceptionMessage('invalid Gnumeric file'); $reader = new Gnumeric(); $reader->setMaxLength(64 * 1024 * 1024); $reader->listWorksheetInfo(self::FILENAME); } public function testNotEnoughMemoryLoad(): void { $this->expectException(ReaderException::class); $this->expectExceptionMessage('invalid Gnumeric file'); $reader = new Gnumeric(); $reader->setMaxLength(64 * 1024 * 1024); $reader->load(self::FILENAME); } }