protected function JsonTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Serialization/JsonTest.php \Drupal\Tests\Component\Serialization\JsonTest::setUp()
File
- core/tests/Drupal/Tests/Component/Serialization/JsonTest.php, line 38
Class
- JsonTest
- @coversDefaultClass \Drupal\Component\Serialization\Json
@group Serialization
Namespace
Drupal\Tests\Component\Serialization
Code
protected function setUp() {
parent::setUp();
$this->string = '';
for ($i = 1; $i < 128; $i++) {
$this->string .= chr($i);
}
$this->htmlUnsafe = [
'<',
'>',
'\'',
'&',
];
$this->htmlUnsafeEscaped = [
'\\u003C',
'\\u003E',
'\\u0027',
'\\u0026',
'\\u0022',
];
}