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

This commit is contained in:
Larry E. Masters 2015-12-28 17:42:56 -05:00
parent a59ea13712
commit 34b4261e6d

View file

@ -362,7 +362,9 @@ class JsonViewTest extends CakeTestCase {
$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');