public function OptimizedPhpArrayDumperTest::percentsEscapeProvider in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest::percentsEscapeProvider()
Data provider for testPercentsEscape().
Return value
array[] Returns data-set elements with:
- expected final value.
- escaped value in service definition.
File
- core/
tests/ Drupal/ Tests/ Component/ DependencyInjection/ Dumper/ OptimizedPhpArrayDumperTest.php, line 632 - Contains \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest.
Class
- OptimizedPhpArrayDumperTest
- @coversDefaultClass \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper @group DependencyInjection
Namespace
Drupal\Tests\Component\DependencyInjection\DumperCode
public function percentsEscapeProvider() {
return [
[
'%foo%',
'%%foo%%',
],
[
'foo%bar%',
'foo%%bar%%',
],
[
'%foo%bar',
'%%foo%%bar',
],
[
'%',
'%',
],
[
'%',
'%%',
],
[
'%%',
'%%%',
],
[
'%%',
'%%%%',
],
];
}