From 1c593eea6327a9f542880d7909898cc7b9416215 Mon Sep 17 00:00:00 2001 From: "Larry E. Masters" Date: Tue, 22 Dec 2015 16:20:24 -0500 Subject: [PATCH] Adding return types to Session test classes. --- .../test_app/Model/Datasource/Session/TestAppLibSession.php | 5 +++++ .../Model/Datasource/Session/TestPluginSession.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/lib/Cake/Test/test_app/Model/Datasource/Session/TestAppLibSession.php b/lib/Cake/Test/test_app/Model/Datasource/Session/TestAppLibSession.php index 2ba874dba..d4ac56fd8 100644 --- a/lib/Cake/Test/test_app/Model/Datasource/Session/TestAppLibSession.php +++ b/lib/Cake/Test/test_app/Model/Datasource/Session/TestAppLibSession.php @@ -12,18 +12,23 @@ class TestAppLibSession implements CakeSessionHandlerInterface { } public function close() { + return true; } public function read($id) { + return ''; } public function write($id, $data) { + return true; } public function destroy($id) { + return true; } public function gc($expires = null) { + return true; } } diff --git a/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/Session/TestPluginSession.php b/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/Session/TestPluginSession.php index acad188e0..b297fb47f 100644 --- a/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/Session/TestPluginSession.php +++ b/lib/Cake/Test/test_app/Plugin/TestPlugin/Model/Datasource/Session/TestPluginSession.php @@ -12,18 +12,23 @@ class TestPluginSession implements CakeSessionHandlerInterface { } public function close() { + return true; } public function read($id) { + return ''; } public function write($id, $data) { + return true; } public function destroy($id) { + return true; } public function gc($expires = null) { + return true; } }