You are here

public function CsvEncoderTest::testDecodeCsv in CSV Serialization 8.2

Same name and namespace in other branches
  1. 8 tests/src/Unit/CsvEncoderTest.php \Drupal\Tests\csv_serialization\Unit\CsvEncoderTest::testDecodeCsv()

Tests the data structure created by decoding a CSV.

@dataProvider provideDecodeData

Parameters

$csv_encoded:

$csv_data:

File

tests/src/Unit/CsvEncoderTest.php, line 147

Class

CsvEncoderTest
Tests the encoding and decoding functionality of CsvEncoder.

Namespace

Drupal\Tests\csv_serialization\Unit

Code

public function testDecodeCsv($csv_encoded, $csv_data) {
  $this
    ->assertEquals($csv_data, $this->encoder
    ->decode($csv_encoded, 'csv'));
}