From 82f5fb6ab9a4bf2c62955436189706f6d2fee582 Mon Sep 17 00:00:00 2001 From: Mario Rutz Date: Mon, 23 Jan 2017 13:28:33 +0100 Subject: [PATCH] Remove object access within callback function --- .../TechDivision/MagentoUnitTesting/TestCase/Abstract.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/dev/tests/unit/framework/TechDivision/MagentoUnitTesting/TestCase/Abstract.php b/src/dev/tests/unit/framework/TechDivision/MagentoUnitTesting/TestCase/Abstract.php index 1d5a3f2..2c991c4 100644 --- a/src/dev/tests/unit/framework/TechDivision/MagentoUnitTesting/TestCase/Abstract.php +++ b/src/dev/tests/unit/framework/TechDivision/MagentoUnitTesting/TestCase/Abstract.php @@ -272,13 +272,7 @@ protected function _initMageAppMock() $this->getMageAppMock()->expects($this->any()) ->method('getStore') - ->will( - $this->returnCallback( - function () { - return $this->getMageStoreMock(); - } - ) - ); + ->will($this->returnCallback(array($this, 'getMageStoreMock'))); } /**