Commit 956781dc authored by webchick's avatar webchick

Issue #2068593 by Berdir, ParisLiakos: Fixed JsonTest fails with pecl-json.

parent dacc2773
......@@ -56,7 +56,7 @@ protected function setUp() {
// Setup a string with the full ASCII table.
// @todo: Add tests for non-ASCII characters and Unicode.
$this->string = '';
for ($i=0; $i < 128; $i++) {
for ($i = 1; $i < 128; $i++) {
$this->string .= chr($i);
}
......@@ -72,7 +72,7 @@ protected function setUp() {
*/
public function testEncodingAscii() {
// Verify there aren't character encoding problems with the source string.
$this->assertSame(strlen($this->string), 128, 'A string with the full ASCII table has the correct length.');
$this->assertSame(strlen($this->string), 127, 'A string with the full ASCII table has the correct length.');
foreach ($this->htmlUnsafe as $char) {
$this->assertTrue(strpos($this->string, $char) > 0, sprintf('A string with the full ASCII table includes %s.', $char));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment