You are here

public function FeedsTamperImplodeTestCase::test in Feeds Tamper 7

Same name and namespace in other branches
  1. 6 tests/feeds_tamper_plugins.test \FeedsTamperImplodeTestCase::test()

File

tests/feeds_tamper_plugins.test, line 540
Unit tests for feeds tamper plugins.

Class

FeedsTamperImplodeTestCase
Tests for implode.inc

Code

public function test() {
  $settings = array(
    'glue' => ',',
  );
  $this
    ->execute(array(
    'a',
    'b',
    'c',
  ), 'a,b,c', $settings);
  $settings = array(
    'glue' => ',%s',
  );
  $this
    ->execute(array(
    'a',
    'b',
    'c',
  ), 'a, b, c', $settings);
  $settings = array(
    'glue' => ',%t',
  );
  $this
    ->execute(array(
    'a',
    'b',
    'c',
  ), "a,\tb,\tc", $settings);
  $settings = array(
    'glue' => ',%n',
  );
  $this
    ->execute(array(
    'a',
    'b',
    'c',
  ), "a,\nb,\nc", $settings);
}