mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Added PHPUnit test to make sure very long text doesn't cause E_NOTICE
This commit is contained in:
@@ -188,6 +188,11 @@ class ParseTest extends TestCase {
|
|||||||
$this->assertFalse($this->csv->autoDetectFileHasHeading());
|
$this->assertFalse($this->csv->autoDetectFileHasHeading());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testVeryLongNonExistingFile() {
|
||||||
|
$this->csv->parse(str_repeat('long_string', PHP_MAXPATHLEN));
|
||||||
|
$this->csv->auto(str_repeat('long_string', PHP_MAXPATHLEN));
|
||||||
|
}
|
||||||
|
|
||||||
protected function _get_magazines_data() {
|
protected function _get_magazines_data() {
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user