comparison core/tests/Drupal/Tests/Component/Serialization/JsonTest.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
56 /** 56 /**
57 * Tests encoding for every ASCII character. 57 * Tests encoding for every ASCII character.
58 */ 58 */
59 public function testEncodingAscii() { 59 public function testEncodingAscii() {
60 // Verify there aren't character encoding problems with the source string. 60 // Verify there aren't character encoding problems with the source string.
61 $this->assertSame(strlen($this->string), 127, 'A string with the full ASCII table has the correct length.'); 61 $this->assertSame(127, strlen($this->string), 'A string with the full ASCII table has the correct length.');
62 foreach ($this->htmlUnsafe as $char) { 62 foreach ($this->htmlUnsafe as $char) {
63 $this->assertTrue(strpos($this->string, $char) > 0, sprintf('A string with the full ASCII table includes %s.', $char)); 63 $this->assertTrue(strpos($this->string, $char) > 0, sprintf('A string with the full ASCII table includes %s.', $char));
64 } 64 }
65 } 65 }
66 66