Current File : //opt/RZphp74/includes/test/File_CSV_DataSource/tests/.File_CSV_DataSourceTest.php.swp |
b0VIM 7.2 �oK'86 [� kazu utopia.local ~kazu/dev/svn/File/CSV/tests/File_CSV_DataSourceTest.php utf-8
3210 #"! U tp w X x [ � R + N } 2 � ad 7 / w � � � � { z v O � � � � � � m g f D > # �
�
�
w
3
)
#
"
� � � � � � Y ? � � � | v u S M L �
�
�
�
�
�
<
� � � � � K � � � ` Z Y 2 , � � � � � : � � � � � V ! � � � � � � r % � � � D > = � � � c
� � m / . $this->assertFalse($this->csv->createHeaders('COL')); $this->assertTrue($this->csv->load(path('asymmetric.csv'))); { public function tets_create_headers_must_not_create_when_data_is_aisSymmetric() } $this->assertEquals(fix('expected_headers'), $this->csv->getHeaders()); $this->assertTrue($this->csv->createHeaders('COL')); $this->assertTrue($this->csv->load(path('symmetric.csv'))); { public function test_create_headers_must_generate_headers_for_symmetric_data() } $this->assertEquals(fix('expected_escaped'), $this->csv->connect()); $this->assertTrue($this->csv->load(path('escape_ok.csv'))); { public function test_if_connect_ignores_valid_escaped_delims() } $this->assertEquals(fix('expected_raw'), $this->csv->getRawArray()); $this->assertTrue($this->csv->load(path('raw.csv'))); { public function testRaw_array() } $this->assertEquals(fix('expected_column'), $result); $result = $this->csv->getColumn('header_c'); $this->assertTrue($this->csv->load(path('asymmetric.csv'))); { public function testColumn() } $this->assertEquals(fix('asymmetric_rows'), $result); $result = $this->csv->getAsymmetricRows(); $this->assertTrue($this->csv->load(path('asymmetric.csv'))); { public function testAsymmetry() } $this->assertFalse($this->csv->isSymmetric()); $this->assertTrue($this->csv->load(path('asymmetric.csv'))); { public function testSymmetric_NG() } $this->assertTrue($this->csv->isSymmetric()); $this->assertTrue($this->csv->load(path('symmetric.csv'))); { public function testSymmetric_OK() } $this->assertEquals(array(), $this->csv->connect()); $this->assertTrue($this->csv->load(path('escape_ng.csv'))); { public function test_connect_must_return_emtpy_arr_when_not_aisSymmetric() } $this->assertEquals(fix('symmetric_connection'), $this->csv->connect()); $this->assertTrue($this->csv->load(path('symmetric.csv'))); { public function testConnect() } $this->assertEquals(fix('symmetric_headers'), $result); $result = $this->csv->getHeaders(); $this->csv->load(path('symmetric.csv')); { public function testHeaders() } $this->assertEquals($expected, $this->csv->settings, $msg); $msg = 'settings where not parsed correctly!'; ); 'escape' => '"'