From b55a88508f52c5449ddf57a5019c70fac2348a4d Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 13 Oct 2014 21:05:33 -0400 Subject: [PATCH] Fix PHPCS and PHP5.3 error. --- lib/Cake/Test/Case/TestSuite/CakeTestCaseTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/TestSuite/CakeTestCaseTest.php b/lib/Cake/Test/Case/TestSuite/CakeTestCaseTest.php index 16e70f777..d6c4fc1f0 100644 --- a/lib/Cake/Test/Case/TestSuite/CakeTestCaseTest.php +++ b/lib/Cake/Test/Case/TestSuite/CakeTestCaseTest.php @@ -26,6 +26,7 @@ App::uses('Model', 'Model'); * Secondary Post stub class. */ class SecondaryPost extends Model { + /** * @var string */ @@ -35,6 +36,7 @@ class SecondaryPost extends Model { * @var string */ public $useDbConfig = 'secondary'; + } /** @@ -437,9 +439,9 @@ class CakeTestCaseTest extends CakeTestCase { ) ), App::RESET); CakePlugin::load('TestPlugin'); - ConnectionManager::create('test_secondary', [ + ConnectionManager::create('test_secondary', array( 'datasource' => 'Database/TestLocalDriver' - ]); + )); $post = $this->getMockForModel('SecondaryPost', array('save')); $this->assertEquals('test_secondary', $post->useDbConfig); ConnectionManager::drop('test_secondary');