From 34b4261e6db33127c6f484122928c11cbf34208f Mon Sep 17 00:00:00 2001 From: "Larry E. Masters" Date: Mon, 28 Dec 2015 17:42:56 -0500 Subject: [PATCH] Fixes: A non well formed numeric value encountered - php 7 --- lib/Cake/Test/Case/View/JsonViewTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/View/JsonViewTest.php b/lib/Cake/Test/Case/View/JsonViewTest.php index aa5027ae1..d90596f47 100644 --- a/lib/Cake/Test/Case/View/JsonViewTest.php +++ b/lib/Cake/Test/Case/View/JsonViewTest.php @@ -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');