mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 00:36:38 +00:00
Add test for empty first parameter
This commit is contained in:
@@ -324,4 +324,11 @@ class ParseTest extends TestCase {
|
||||
$actual = array_column($this->csv->data, 'keyword');
|
||||
self::assertSame($expected, $actual);
|
||||
}
|
||||
|
||||
public function testEmptyInput() {
|
||||
self::assertFalse($this->csv->parse(''));
|
||||
self::assertFalse($this->csv->parse(null));
|
||||
self::assertFalse($this->csv->parseFile(''));
|
||||
self::assertFalse($this->csv->parseFile(null));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user