Skip to content
Permalink
Browse files

Fixes: A non well formed numeric value encountered - php 7

  • Loading branch information...
phpnut committed Dec 28, 2015
1 parent a59ea13 commit 34b4261e6db33127c6f484122928c11cbf34208f
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Test/Case/View/JsonViewTest.php
@@ -362,7 +362,9 @@ public function testRenderInvalidJSON() {
$Controller = new Controller($Request, $Response);
// non utf-8 stuff
$data = array('data' => array('foo' => 'bar' . chr('0x97')));
$bar = 'bar';
$bar .= chr(0x97);
$data = array('data' => array('foo' => $bar));
$Controller->set($data);
$Controller->set('_serialize', 'data');

0 comments on commit 34b4261

Please sign in to comment.
You can’t perform that action at this time.