From 9bd00453598ef6baefc191d644ede998d6d8b504 Mon Sep 17 00:00:00 2001 From: Raghubansh Kumar Date: Wed, 8 Aug 2007 13:13:18 +0000 Subject: New Testcases for fgetcsv() function --- ext/standard/tests/file/fgetcsv_variation13.phpt | 189 +++++++++++++++++++++++ 1 file changed, 189 insertions(+) create mode 100644 ext/standard/tests/file/fgetcsv_variation13.phpt (limited to 'ext/standard/tests/file/fgetcsv_variation13.phpt') diff --git a/ext/standard/tests/file/fgetcsv_variation13.phpt b/ext/standard/tests/file/fgetcsv_variation13.phpt new file mode 100644 index 0000000000..a00405b90b --- /dev/null +++ b/ext/standard/tests/file/fgetcsv_variation13.phpt @@ -0,0 +1,189 @@ +--TEST-- +Test fgetcsv() : usage variations - with line without any csv fields + +--FILE-- + +--EXPECT-- +*** Testing fgetcsv() : reading the line which is without csv fields *** + +-- Testing fgetcsv() with file opened using r mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using rb mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using rt mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using r+ mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using r+b mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using r+t mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using a+ mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using a+b mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using a+t mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using w+ mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using w+b mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using w+t mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using x+ mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using x+b mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) + +-- Testing fgetcsv() with file opened using x+t mode -- +array(1) { + [0]=> + string(39) "This is line of text without csv fields" +} +int(40) +bool(false) +Done -- cgit v1.2.1