public function FeedsTamperImplodeTestCase::test in Feeds Tamper 6
Same name and namespace in other branches
- 7 tests/feeds_tamper_plugins.test \FeedsTamperImplodeTestCase::test()
File
- tests/
feeds_tamper_plugins.test, line 491 - 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);
}