public function ExplodeTest::testExplodeWithMultipleValuesAndLimit in Tamper 8
Text explode with limit.
File
- tests/
src/ Unit/ Plugin/ Tamper/ ExplodeTest.php, line 54
Class
- ExplodeTest
- Tests the explode plugin.
Namespace
Drupal\Tests\tamper\Unit\Plugin\TamperCode
public function testExplodeWithMultipleValuesAndLimit() {
$this
->expectException(TamperException::class);
$this
->expectExceptionMessage('Input should be a string.');
$original = [
'foo,bar,baz,zip',
'fizz,bang,boop',
];
$this
->getPluginWithLimit()
->tamper($original);
}