Added PHPUnit test to make sure very long text doesn't cause E_NOTICE

This commit is contained in:
Fonata
2018-09-25 00:27:04 +02:00
parent c7375dea8e
commit 3b74f7ce57

View File

@@ -188,6 +188,11 @@ class ParseTest extends TestCase {
$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() {
return [
[