From 50db2d3526523fa1ff8c6e7f2d30f03433af1091 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:37 +0700 Subject: [PATCH 01/36] Add missing properties to classes tests/Zend/Amf/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Amf/AllTests.php --- tests/Zend/Amf/Adobe/IntrospectorTest.php | 5 +++++ tests/Zend/Amf/AuthTest.php | 13 +++++++++++++ tests/Zend/Amf/ResponseTest.php | 10 ++++++++++ tests/Zend/Amf/Value/MessageBodyTest.php | 5 +++++ 4 files changed, 33 insertions(+) diff --git a/tests/Zend/Amf/Adobe/IntrospectorTest.php b/tests/Zend/Amf/Adobe/IntrospectorTest.php index 45cd05fd4e..48b21cccab 100644 --- a/tests/Zend/Amf/Adobe/IntrospectorTest.php +++ b/tests/Zend/Amf/Adobe/IntrospectorTest.php @@ -45,6 +45,11 @@ */ class Zend_Amf_Adobe_IntrospectorTest extends TestCase { + /** + * @var \Zend_Amf_Adobe_Introspector|mixed + */ + protected $introspector; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/Amf/AuthTest.php b/tests/Zend/Amf/AuthTest.php index e2374a0b4a..e49a2a0836 100755 --- a/tests/Zend/Amf/AuthTest.php +++ b/tests/Zend/Amf/AuthTest.php @@ -50,6 +50,11 @@ */ class Zend_Amf_AuthTest extends TestCase { + /** + * @var \Zend_Acl|mixed + */ + protected $_acl; + /** * Enter description here... * @@ -301,6 +306,14 @@ public function authenticate() class RightPassword extends Zend_Amf_Auth_Abstract { + /** + * @var mixed + */ + protected $_name; + /** + * @var mixed + */ + protected $_role; public function __construct($name, $role) { $this->_name = $name; diff --git a/tests/Zend/Amf/ResponseTest.php b/tests/Zend/Amf/ResponseTest.php index e0c0573c83..00f8f73cf5 100644 --- a/tests/Zend/Amf/ResponseTest.php +++ b/tests/Zend/Amf/ResponseTest.php @@ -51,6 +51,16 @@ */ class Zend_Amf_ResponseTest extends TestCase { + /** + * @var \Zend_Amf_Value_MessageHeader|mixed + */ + protected $header1; + + /** + * @var \Zend_Amf_Value_MessageHeader|mixed + */ + protected $header2; + // The message response status code. public $responseURI = "/2/onResult"; diff --git a/tests/Zend/Amf/Value/MessageBodyTest.php b/tests/Zend/Amf/Value/MessageBodyTest.php index 9745e82e92..a64a26e061 100644 --- a/tests/Zend/Amf/Value/MessageBodyTest.php +++ b/tests/Zend/Amf/Value/MessageBodyTest.php @@ -43,6 +43,11 @@ */ class Zend_Amf_Value_MessageBodyTest extends TestCase { + /** + * @var \Zend_Amf_Value_MessageBody|mixed + */ + protected $body; + /** * Runs the test methods of this class. * From 43a90e13ad37e4282b7acd7954bef18212b29a3c Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:38 +0700 Subject: [PATCH 02/36] Add missing properties to classes tests/Zend/Application/Bootstrap/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Application/Bootstrap/BootstrapTest.php --- .../Application/Bootstrap/BootstrapTest.php | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/tests/Zend/Application/Bootstrap/BootstrapTest.php b/tests/Zend/Application/Bootstrap/BootstrapTest.php index c0c7837f54..39e9254b13 100644 --- a/tests/Zend/Application/Bootstrap/BootstrapTest.php +++ b/tests/Zend/Application/Bootstrap/BootstrapTest.php @@ -42,9 +42,28 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Application */ -#[AllowDynamicProperties] class Zend_Application_Bootstrap_BootstrapTest extends TestCase { + /** + * @var mixed[]|mixed + */ + protected $loaders; + + /** + * @var \Zend_Loader_Autoloader + */ + protected $autoloader; + + /** + * @var \Zend_Application|mixed + */ + protected $application; + + /** + * @var \Zend_Application_Bootstrap_Bootstrap|mixed + */ + protected $bootstrap; + public static function main() { $suite = new TestSuite(__CLASS__); From 9f6bc7b0b6e471d3e4875fae5d3ff0b3c0c7a793 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:38 +0700 Subject: [PATCH 03/36] Add missing properties to classes tests/Zend/Cache/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Cache/AllTests.php --- tests/Zend/Cache/ClassFrontendTest.php | 11 ++++++++++- tests/Zend/Cache/CoreTest.php | 6 +++++- tests/Zend/Cache/FileFrontendTest.php | 6 +++++- tests/Zend/Cache/FunctionFrontendTest.php | 6 +++++- tests/Zend/Cache/ManagerTest.php | 9 ++++++++- tests/Zend/Cache/OutputFrontendTest.php | 6 +++++- tests/Zend/Cache/PageFrontendTest.php | 6 +++++- 7 files changed, 43 insertions(+), 7 deletions(-) diff --git a/tests/Zend/Cache/ClassFrontendTest.php b/tests/Zend/Cache/ClassFrontendTest.php index 4e3778efc3..6da11d0399 100644 --- a/tests/Zend/Cache/ClassFrontendTest.php +++ b/tests/Zend/Cache/ClassFrontendTest.php @@ -82,9 +82,18 @@ public function throwException() * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Cache */ -#[AllowDynamicProperties] class Zend_Cache_ClassFrontendTest extends TestCase { + /** + * @var \Zend_Cache_Backend_Test|mixed + */ + protected $_backend1; + + /** + * @var \Zend_Cache_Backend_Test|mixed + */ + protected $_backend2; + private $_instance1; private $_instance2; diff --git a/tests/Zend/Cache/CoreTest.php b/tests/Zend/Cache/CoreTest.php index 74b8039020..56b2efe7e5 100644 --- a/tests/Zend/Cache/CoreTest.php +++ b/tests/Zend/Cache/CoreTest.php @@ -41,9 +41,13 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Cache */ -#[AllowDynamicProperties] class Zend_Cache_CoreTest extends TestCase { + /** + * @var \Zend_Cache_Backend_Test|mixed + */ + protected $_backend; + private $_instance; protected function setUp(): void diff --git a/tests/Zend/Cache/FileFrontendTest.php b/tests/Zend/Cache/FileFrontendTest.php index 8db0c87f42..778b383add 100644 --- a/tests/Zend/Cache/FileFrontendTest.php +++ b/tests/Zend/Cache/FileFrontendTest.php @@ -38,9 +38,13 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Cache */ -#[AllowDynamicProperties] class Zend_Cache_FileFrontendTest extends TestCase { + /** + * @var \Zend_Cache_Backend_Test|mixed + */ + protected $_backend; + private $_instance1; private $_instance2; private $_instance3; diff --git a/tests/Zend/Cache/FunctionFrontendTest.php b/tests/Zend/Cache/FunctionFrontendTest.php index 6d53a65706..cba9939a73 100644 --- a/tests/Zend/Cache/FunctionFrontendTest.php +++ b/tests/Zend/Cache/FunctionFrontendTest.php @@ -60,9 +60,13 @@ public function foobar($param1, $param2) * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Cache */ -#[AllowDynamicProperties] class Zend_Cache_FunctionFrontendTest extends TestCase { + /** + * @var \Zend_Cache_Backend_Test|mixed + */ + protected $_backend; + private $_instance; protected function setUp(): void diff --git a/tests/Zend/Cache/ManagerTest.php b/tests/Zend/Cache/ManagerTest.php index 1b5ca48602..5d2d5cecb2 100644 --- a/tests/Zend/Cache/ManagerTest.php +++ b/tests/Zend/Cache/ManagerTest.php @@ -32,9 +32,16 @@ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ -#[AllowDynamicProperties] + class Zend_Cache_ManagerTest extends TestCase { + protected $_cache_dir; + + /** + * @var \Zend_Cache_Core|null|mixed + */ + protected $_cache; + protected function setUp(): void { $this->_cache_dir = $this->mkdir(); diff --git a/tests/Zend/Cache/OutputFrontendTest.php b/tests/Zend/Cache/OutputFrontendTest.php index 3fdfe52269..9d6094cc75 100644 --- a/tests/Zend/Cache/OutputFrontendTest.php +++ b/tests/Zend/Cache/OutputFrontendTest.php @@ -38,9 +38,13 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Cache */ -#[AllowDynamicProperties] class Zend_Cache_OutputFrontendTest extends TestCase { + /** + * @var \Zend_Cache_Backend_Test|mixed + */ + protected $_backend; + private $_instance; protected function setUp(): void diff --git a/tests/Zend/Cache/PageFrontendTest.php b/tests/Zend/Cache/PageFrontendTest.php index 895f8d339b..2984aef9c5 100644 --- a/tests/Zend/Cache/PageFrontendTest.php +++ b/tests/Zend/Cache/PageFrontendTest.php @@ -38,9 +38,13 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Cache */ -#[AllowDynamicProperties] class Zend_Cache_PageFrontendTest extends TestCase { + /** + * @var \Zend_Cache_Backend_Test|mixed + */ + protected $_backend; + private $_instance; protected function setUp(): void From 4d2e4fb450bce663d6c3a0c404dbc753e0ce7559 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:38 +0700 Subject: [PATCH 04/36] Add missing properties to classes tests/Zend/Captcha/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Captcha/AllTests.php --- tests/Zend/Captcha/DumbTest.php | 11 ++++++++++- tests/Zend/Captcha/FigletTest.php | 21 ++++++++++++++++++++- tests/Zend/Captcha/ImageTest.php | 27 ++++++++++++++++++++++++++- tests/Zend/Captcha/ReCaptchaTest.php | 13 ++++++++++++- 4 files changed, 68 insertions(+), 4 deletions(-) diff --git a/tests/Zend/Captcha/DumbTest.php b/tests/Zend/Captcha/DumbTest.php index 1647904a02..0ac284ef41 100644 --- a/tests/Zend/Captcha/DumbTest.php +++ b/tests/Zend/Captcha/DumbTest.php @@ -41,9 +41,18 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Captcha */ -#[AllowDynamicProperties] class Zend_Captcha_DumbTest extends TestCase { + protected $word; + + /** + * @var \Zend_Form_Element_Captcha|mixed + */ + protected $element; + /** + * @var \Zend_Captcha_Adapter|mixed + */ + protected $captcha; /** * Runs the test methods of this class. * diff --git a/tests/Zend/Captcha/FigletTest.php b/tests/Zend/Captcha/FigletTest.php index fd719ff35b..16ee2a089d 100644 --- a/tests/Zend/Captcha/FigletTest.php +++ b/tests/Zend/Captcha/FigletTest.php @@ -42,9 +42,28 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Captcha */ -#[AllowDynamicProperties] class Zend_Captcha_FigletTest extends TestCase { + /** + * @var mixed|string + */ + protected $word; + + /** + * @var \Zend_Form_Element_Captcha|mixed + */ + protected $element; + + /** + * @var \Zend_Captcha_Adapter|mixed + */ + protected $captcha; + + /** + * @var string + */ + protected $id; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Captcha/ImageTest.php b/tests/Zend/Captcha/ImageTest.php index 342bde7be1..59ffd688c3 100644 --- a/tests/Zend/Captcha/ImageTest.php +++ b/tests/Zend/Captcha/ImageTest.php @@ -43,6 +43,31 @@ */ class Zend_Captcha_ImageTest extends TestCase { + /** + * @var mixed|string + */ + protected $word; + + /** + * @var string|mixed + */ + protected $testDir; + + /** + * @var \Zend_Form_Element_Captcha|mixed + */ + protected $element; + + /** + * @var \Zend_Captcha_Adapter|mixed + */ + protected $captcha; + + /** + * @var string + */ + protected $id; + protected $_tmpDir; /** @@ -102,7 +127,7 @@ protected function setUp(): void protected function tearDown(): void { // remove chaptcha images - foreach (new DirectoryIterator($this->testDir) as $file) { + foreach (new DirectoryIterator((string) $this->testDir) as $file) { if (!$file->isDot() && !$file->isDir()) { unlink($file->getPathname()); } diff --git a/tests/Zend/Captcha/ReCaptchaTest.php b/tests/Zend/Captcha/ReCaptchaTest.php index 78154b3fd8..a8a65073f2 100644 --- a/tests/Zend/Captcha/ReCaptchaTest.php +++ b/tests/Zend/Captcha/ReCaptchaTest.php @@ -41,9 +41,20 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Captcha */ -#[AllowDynamicProperties] class Zend_Captcha_ReCaptchaTest extends TestCase { + protected $word; + + /** + * @var \Zend_Form_Element_Captcha|mixed + */ + protected $element; + + /** + * @var \Zend_Captcha_Adapter + */ + protected $captcha; + /** * Runs the test methods of this class. * From 2f136949cb244da15d65ee2118c6a0870a5804e9 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:38 +0700 Subject: [PATCH 05/36] Add missing properties to classes tests/Zend/Config/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Config/AllTests.php --- tests/Zend/Config/IniTest.php | 26 +++++++++++- tests/Zend/Config/JsonTest.php | 21 +++++++++- tests/Zend/Config/XmlTest.php | 31 ++++++++++++++- tests/Zend/Config/YamlTest.php | 72 +++++++++++++++++++++++++++++++++- 4 files changed, 146 insertions(+), 4 deletions(-) diff --git a/tests/Zend/Config/IniTest.php b/tests/Zend/Config/IniTest.php index e1a8cbbacc..7eeda1cdb6 100644 --- a/tests/Zend/Config/IniTest.php +++ b/tests/Zend/Config/IniTest.php @@ -36,9 +36,33 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Config */ -#[AllowDynamicProperties] class Zend_Config_IniTest extends TestCase { + /** + * @var string|mixed + */ + protected $_iniFileMultipleInheritanceConfig; + + /** + * @var string|mixed + */ + protected $_iniFileSeparatorConfig; + + /** + * @var string + */ + protected $_nonReadableConfig; + + /** + * @var string|mixed + */ + protected $_iniFileNoSectionsConfig; + + /** + * @var string|mixed + */ + protected $_iniFileInvalid; + protected $_iniFileConfig; protected $_iniFileAllSectionsConfig; protected $_iniFileCircularConfig; diff --git a/tests/Zend/Config/JsonTest.php b/tests/Zend/Config/JsonTest.php index dbbd0c00c9..c906c237cf 100644 --- a/tests/Zend/Config/JsonTest.php +++ b/tests/Zend/Config/JsonTest.php @@ -35,9 +35,28 @@ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ -#[AllowDynamicProperties] class Zend_Config_JsonTest extends TestCase { + /** + * @var string|mixed + */ + protected $_iniFileMultipleInheritanceConfig; + + /** + * @var string + */ + protected $_nonReadableConfig; + + /** + * @var string|mixed + */ + protected $_iniFileNoSectionsConfig; + + /** + * @var string|mixed + */ + protected $_iniFileInvalid; + protected $_iniFileConfig; protected $_iniFileAllSectionsConfig; protected $_iniFileCircularConfig; diff --git a/tests/Zend/Config/XmlTest.php b/tests/Zend/Config/XmlTest.php index a44f17bb23..110a989ff0 100644 --- a/tests/Zend/Config/XmlTest.php +++ b/tests/Zend/Config/XmlTest.php @@ -36,9 +36,38 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Config */ -#[AllowDynamicProperties] class Zend_Config_XmlTest extends TestCase { + /** + * @var string|mixed + */ + protected $_xmlFileTopLevelStringConfig; + + /** + * @var string|mixed + */ + protected $_xmlFileOneTopLevelStringConfig; + + /** + * @var string + */ + protected $_nonReadableConfig; + + /** + * @var string|mixed + */ + protected $_xmlFileSameNameKeysConfig; + + /** + * @var string|mixed + */ + protected $_xmlFileShortParamsOneConfig; + + /** + * @var string|mixed + */ + protected $_xmlFileShortParamsTwoConfig; + protected $_xmlFileConfig; protected $_xmlFileAllSectionsConfig; protected $_xmlFileCircularConfig; diff --git a/tests/Zend/Config/YamlTest.php b/tests/Zend/Config/YamlTest.php index c108ad032d..c7a73c40c6 100755 --- a/tests/Zend/Config/YamlTest.php +++ b/tests/Zend/Config/YamlTest.php @@ -36,9 +36,79 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Config */ -#[AllowDynamicProperties] class Zend_Config_YamlTest extends TestCase { + /** + * @var string|mixed + */ + protected $_iniFileConfig; + + /** + * @var string|mixed + */ + + protected $_iniFileAllSectionsConfig; + + /** + * @var string|mixed + */ + protected $_iniFileCircularConfig; + + /** + * @var string + */ + protected $_nonReadableConfig; + + /** + * @var string|mixed + */ + protected $_iniFileInvalid; + + /** + * @var string|mixed + */ + protected $_iniFileSameNameKeysConfig; + + /** + * @var string|mixed + */ + protected $_badIndentationConfig; + + /** + * @var string|mixed + */ + protected $_booleansConfig; + + /** + * @var string|mixed + */ + protected $_constantsConfig; + + /** + * @var string|mixed + */ + protected $_yamlInlineCommentsConfig; + + /** + * @var string|mixed + */ + protected $_yamlIndentedCommentsConfig; + + /** + * @var string|mixed + */ + protected $_yamlListConstantsConfig; + + /** + * @var string|mixed + */ + protected $_listBooleansConfig; + + /** + * @var string|mixed + */ + protected $_yamlSingleQuotedString; + protected function setUp(): void { $this->_iniFileConfig = dirname(__FILE__) . '/_files/config.yaml'; From 6ee2bc35f2c6e392135c700b8b64fa226c15f4ad Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:39 +0700 Subject: [PATCH 06/36] Add missing properties to classes tests/Zend/Controller/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Controller/AllTests.php --- .../Action/Helper/AjaxContextTest.php | 41 ++++++++++++++++++- .../Action/Helper/AutoCompleteTest.php | 26 +++++++++++- .../Controller/Action/Helper/CacheTest.php | 9 +++- .../Action/Helper/ContextSwitchTest.php | 41 ++++++++++++++++++- .../Controller/Action/Helper/JsonTest.php | 14 ++++++- .../Action/Helper/RedirectorTest.php | 11 ++++- .../Zend/Controller/Action/Helper/UrlTest.php | 11 ++++- tests/Zend/Controller/ActionTest.php | 6 ++- .../Controller/Dispatcher/StandardTest.php | 2 + .../Controller/Request/HttpTestCaseTest.php | 6 ++- .../Controller/Response/HttpTestCaseTest.php | 6 ++- 11 files changed, 163 insertions(+), 10 deletions(-) diff --git a/tests/Zend/Controller/Action/Helper/AjaxContextTest.php b/tests/Zend/Controller/Action/Helper/AjaxContextTest.php index 05c6284288..9abfc84684 100644 --- a/tests/Zend/Controller/Action/Helper/AjaxContextTest.php +++ b/tests/Zend/Controller/Action/Helper/AjaxContextTest.php @@ -55,9 +55,48 @@ * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ -#[AllowDynamicProperties] class Zend_Controller_Action_Helper_AjaxContextTest extends TestCase { + /** + * @var \Zend_Controller_Front|mixed + */ + protected $front; + + /** + * @var \Zend_Layout|mixed + */ + protected $layout; + + /** + * @var \Zend_Controller_Action_Helper_AjaxContext|mixed + */ + protected $helper; + + /** + * @var \Zend_Controller_Request_Http|mixed + */ + protected $request; + + /** + * @var \Zend_Controller_Response_Cli|mixed + */ + protected $response; + + /** + * @var \Zend_VIew|mixed + */ + protected $view; + + /** + * @var \Zend_Controller_Action_Helper_Abstract|mixed + */ + protected $viewRenderer; + + /** + * @var \Zend_Controller_Action_Helper_AjaxContextTestController|mixed + */ + protected $controller; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Controller/Action/Helper/AutoCompleteTest.php b/tests/Zend/Controller/Action/Helper/AutoCompleteTest.php index dfa22666e2..e814ea968d 100644 --- a/tests/Zend/Controller/Action/Helper/AutoCompleteTest.php +++ b/tests/Zend/Controller/Action/Helper/AutoCompleteTest.php @@ -54,9 +54,33 @@ * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ -#[AllowDynamicProperties] class Zend_Controller_Action_Helper_AutoCompleteTest extends TestCase { + /** + * @var \Zend_Controller_Request_Http|mixed + */ + protected $request; + + /** + * @var \Zend_Controller_Response_Cli|mixed + */ + protected $response; + + /** + * @var \Zend_Controller_Front|mixed + */ + protected $front; + + /** + * @var \Zend_Controller_Action_Helper_Abstract|mixed + */ + protected $viewRenderer; + + /** + * @var \Zend_Layout|mixed + */ + protected $layout; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Controller/Action/Helper/CacheTest.php b/tests/Zend/Controller/Action/Helper/CacheTest.php index 1ce3ec682a..ec12358810 100644 --- a/tests/Zend/Controller/Action/Helper/CacheTest.php +++ b/tests/Zend/Controller/Action/Helper/CacheTest.php @@ -20,9 +20,16 @@ /** * Test class for Zend_Controller_Action_Helper_Cache */ -#[AllowDynamicProperties] class Zend_Controller_Action_Helper_CacheTest extends TestCase { + /** + * @var \Zend_Controller_Front|mixed + */ + protected $front; + /** + * @var \Zend_Controller_Request_Http|mixed + */ + protected $request; protected $_requestUriOld; /** diff --git a/tests/Zend/Controller/Action/Helper/ContextSwitchTest.php b/tests/Zend/Controller/Action/Helper/ContextSwitchTest.php index 9d3345da05..91f822cd37 100644 --- a/tests/Zend/Controller/Action/Helper/ContextSwitchTest.php +++ b/tests/Zend/Controller/Action/Helper/ContextSwitchTest.php @@ -56,9 +56,48 @@ * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ -#[AllowDynamicProperties] class Zend_Controller_Action_Helper_ContextSwitchTest extends TestCase { + /** + * @var \Zend_Controller_Front|mixed + */ + protected $front; + + /** + * @var \Zend_Layout|mixed + */ + protected $layout; + + /** + * @var \Zend_Controller_Action_Helper_ContextSwitch|mixed + */ + protected $helper; + + /** + * @var \Zend_Controller_Request_Http|mixed + */ + protected $request; + + /** + * @var \Zend_Controller_Response_Cli|mixed + */ + protected $response; + + /** + * @var \Zend_View|mixed + */ + protected $view; + + /** + * @var \Zend_Controller_Action_Helper_Abstract|mixed + */ + protected $viewRenderer; + + /** + * @var \Zend_Controller_Action_Helper_ContextSwitchTestController|mixed + */ + protected $controller; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Controller/Action/Helper/JsonTest.php b/tests/Zend/Controller/Action/Helper/JsonTest.php index 4a1ef29278..306fd0202c 100644 --- a/tests/Zend/Controller/Action/Helper/JsonTest.php +++ b/tests/Zend/Controller/Action/Helper/JsonTest.php @@ -51,9 +51,21 @@ * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ -#[AllowDynamicProperties] class Zend_Controller_Action_Helper_JsonTest extends TestCase { + /** + * @var \Zend_Controller_Response_Http|mixed + */ + protected $response; + + /** + * @var \Zend_Controller_Action_Helper_ViewRenderer|mixed + */ + protected $viewRenderer; + /** + * @var \Zend_Controller_Action_Helper_Json|mixed + */ + protected $helper; /** * Runs the test methods of this class. * diff --git a/tests/Zend/Controller/Action/Helper/RedirectorTest.php b/tests/Zend/Controller/Action/Helper/RedirectorTest.php index d64cc816e5..87c8c0f799 100644 --- a/tests/Zend/Controller/Action/Helper/RedirectorTest.php +++ b/tests/Zend/Controller/Action/Helper/RedirectorTest.php @@ -49,9 +49,18 @@ * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ -#[AllowDynamicProperties] class Zend_Controller_Action_Helper_RedirectorTest extends TestCase { + /** + * @var \Zend_Controller_Router_Interface|mixed + */ + protected $router; + + /** + * @var array|mixed + */ + protected $_server; + /** * @var Zend_Controller_Action_Helper_Redirector */ diff --git a/tests/Zend/Controller/Action/Helper/UrlTest.php b/tests/Zend/Controller/Action/Helper/UrlTest.php index e2e857c470..e302ebc4b3 100644 --- a/tests/Zend/Controller/Action/Helper/UrlTest.php +++ b/tests/Zend/Controller/Action/Helper/UrlTest.php @@ -47,9 +47,18 @@ * @group Zend_Controller_Action * @group Zend_Controller_Action_Helper */ -#[AllowDynamicProperties] class Zend_Controller_Action_Helper_UrlTest extends TestCase { + /** + * @var \Zend_Controller_Front|mixed + */ + protected $front; + + /** + * @var \Zend_Controller_Action_Helper_Url|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Controller/ActionTest.php b/tests/Zend/Controller/ActionTest.php index a5ffde07d2..590227f832 100644 --- a/tests/Zend/Controller/ActionTest.php +++ b/tests/Zend/Controller/ActionTest.php @@ -46,9 +46,13 @@ * @group Zend_Controller * @group Zend_Controller_Action */ -#[AllowDynamicProperties] class Zend_Controller_ActionTest extends TestCase { + /** + * @var \Zend_Controller_ActionTest_TestController|mixed + */ + protected $_controller; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Controller/Dispatcher/StandardTest.php b/tests/Zend/Controller/Dispatcher/StandardTest.php index f4bf023c47..588ad0ddbd 100644 --- a/tests/Zend/Controller/Dispatcher/StandardTest.php +++ b/tests/Zend/Controller/Dispatcher/StandardTest.php @@ -48,6 +48,8 @@ */ class Zend_Controller_Dispatcher_StandardTest extends TestCase { + protected $error; + protected $_dispatcher; /** diff --git a/tests/Zend/Controller/Request/HttpTestCaseTest.php b/tests/Zend/Controller/Request/HttpTestCaseTest.php index 1f3dc8f669..bd8c755ed2 100644 --- a/tests/Zend/Controller/Request/HttpTestCaseTest.php +++ b/tests/Zend/Controller/Request/HttpTestCaseTest.php @@ -44,9 +44,13 @@ * @group Zend_Controller * @group Zend_Controller_Request */ -#[AllowDynamicProperties] class Zend_Controller_Request_HttpTestCaseTest extends TestCase { + /** + * @var \Zend_Controller_Request_HttpTestCase|mixed + */ + protected $request; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Controller/Response/HttpTestCaseTest.php b/tests/Zend/Controller/Response/HttpTestCaseTest.php index 474564b70d..0ce318ab02 100644 --- a/tests/Zend/Controller/Response/HttpTestCaseTest.php +++ b/tests/Zend/Controller/Response/HttpTestCaseTest.php @@ -44,9 +44,13 @@ * @group Zend_Controller * @group Zend_Controller_Response */ -#[AllowDynamicProperties] class Zend_Controller_Response_HttpTestCaseTest extends TestCase { + /** + * @var \Zend_Controller_Response_HttpTestCase|mixed + */ + protected $response; + /** * Runs the test methods of this class. * From dafccd04e975e7c5f70f1ce4ce0569f664267d1b Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:39 +0700 Subject: [PATCH 07/36] Add missing properties to classes tests/Zend/Crypt/Rsa/RsaTest.php PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Crypt/Rsa/RsaTest.php --- tests/Zend/Crypt/Rsa/RsaTest.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tests/Zend/Crypt/Rsa/RsaTest.php b/tests/Zend/Crypt/Rsa/RsaTest.php index 167709bf76..43afe43de8 100644 --- a/tests/Zend/Crypt/Rsa/RsaTest.php +++ b/tests/Zend/Crypt/Rsa/RsaTest.php @@ -34,9 +34,23 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Crypt */ -#[AllowDynamicProperties] class Zend_Crypt_RsaTest extends TestCase { + /** + * @var string|mixed + */ + protected $_testPemStringPublic; + + /** + * @var string|mixed + */ + protected $_testCertificateString; + + /** + * @var string|mixed + */ + protected $_testCertificatePath; + protected $_testPemString = null; protected $_testPemPath = null; From 9d7f4ad1cb9da5db20d0f0464e13e00ec2c79cc5 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:39 +0700 Subject: [PATCH 08/36] Add missing properties to classes tests/Zend/Date/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Date/DateObjectTest.php --- tests/Zend/Date/DateObjectTest.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/Zend/Date/DateObjectTest.php b/tests/Zend/Date/DateObjectTest.php index da5ef37128..42a85cf142 100644 --- a/tests/Zend/Date/DateObjectTest.php +++ b/tests/Zend/Date/DateObjectTest.php @@ -36,9 +36,18 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Date */ -#[AllowDynamicProperties] class Zend_Date_DateObjectTest extends TestCase { + /** + * @var string|mixed + */ + protected $originalTimezone; + + /** + * @var \Zend_Cache_Core|mixed + */ + protected $_cache; + protected function setUp(): void { $this->originalTimezone = date_default_timezone_get(); From cedeeea280e45a342b4037fae4248147a3cfe362 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:40 +0700 Subject: [PATCH 09/36] Add missing properties to classes tests/Zend/Dojo/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Dojo/AllTests.php --- tests/Zend/Dojo/BuildLayerTest.php | 5 +++++ .../Form/Decorator/AccordionContainerTest.php | 12 +++++++++++ .../Dojo/Form/Decorator/AccordionPaneTest.php | 9 +++++++++ .../Form/Decorator/BorderContainerTest.php | 12 +++++++++++ .../Form/Decorator/DijitContainerTest.php | 17 ++++++++++++++++ .../Dojo/Form/Decorator/DijitElementTest.php | 20 +++++++++++++++++++ .../Dojo/Form/Decorator/DijitFormTest.php | 15 ++++++++++++++ .../Form/Decorator/SplitContainerTest.php | 14 +++++++++++++ .../Form/Decorator/StackContainerTest.php | 15 ++++++++++++++ .../Dojo/Form/Decorator/TabContainerTest.php | 15 ++++++++++++++ tests/Zend/Dojo/Form/Element/ButtonTest.php | 10 ++++++++++ tests/Zend/Dojo/Form/Element/CheckBoxTest.php | 10 ++++++++++ tests/Zend/Dojo/Form/Element/ComboBoxTest.php | 10 ++++++++++ .../Dojo/Form/Element/CurrencyTextBoxTest.php | 9 +++++++++ .../Dojo/Form/Element/DateTextBoxTest.php | 10 ++++++++++ tests/Zend/Dojo/Form/Element/DijitTest.php | 10 ++++++++++ tests/Zend/Dojo/Form/Element/EditorTest.php | 10 ++++++++++ .../Dojo/Form/Element/FilteringSelectTest.php | 10 ++++++++++ .../Form/Element/HorizontalSliderTest.php | 10 ++++++++++ .../Dojo/Form/Element/NumberSpinnerTest.php | 10 ++++++++++ .../Dojo/Form/Element/NumberTextBoxTest.php | 10 ++++++++++ .../Dojo/Form/Element/PasswordTextBoxTest.php | 10 ++++++++++ .../Dojo/Form/Element/RadioButtonTest.php | 10 ++++++++++ .../Dojo/Form/Element/SimpleTextareaTest.php | 10 ++++++++++ .../Dojo/Form/Element/SubmitButtonTest.php | 10 ++++++++++ tests/Zend/Dojo/Form/Element/TextBoxTest.php | 10 ++++++++++ tests/Zend/Dojo/Form/Element/TextareaTest.php | 10 ++++++++++ .../Dojo/Form/Element/TimeTextBoxTest.php | 10 ++++++++++ .../Form/Element/ValidationTextBoxTest.php | 10 ++++++++++ .../Dojo/Form/Element/VerticalSliderTest.php | 10 ++++++++++ tests/Zend/Dojo/Form/FormTest.php | 5 +++++ tests/Zend/Dojo/Form/SubFormTest.php | 5 +++++ .../View/Helper/AccordionContainerTest.php | 10 ++++++++++ .../Dojo/View/Helper/AccordionPaneTest.php | 10 ++++++++++ .../Dojo/View/Helper/BorderContainerTest.php | 10 ++++++++++ tests/Zend/Dojo/View/Helper/ButtonTest.php | 9 +++++++++ tests/Zend/Dojo/View/Helper/CheckBoxTest.php | 10 ++++++++++ tests/Zend/Dojo/View/Helper/ComboBoxTest.php | 10 ++++++++++ .../Zend/Dojo/View/Helper/ContentPaneTest.php | 10 ++++++++++ .../Dojo/View/Helper/CurrencyTextBoxTest.php | 10 ++++++++++ .../Zend/Dojo/View/Helper/CustomDijitTest.php | 5 +++++ .../Zend/Dojo/View/Helper/DateTextBoxTest.php | 10 ++++++++++ tests/Zend/Dojo/View/Helper/DojoTest.php | 5 +++++ tests/Zend/Dojo/View/Helper/EditorTest.php | 10 ++++++++++ .../Dojo/View/Helper/FilteringSelectTest.php | 10 ++++++++++ tests/Zend/Dojo/View/Helper/FormTest.php | 10 ++++++++++ .../Dojo/View/Helper/HorizontalSliderTest.php | 10 ++++++++++ .../Dojo/View/Helper/NumberSpinnerTest.php | 10 ++++++++++ .../Dojo/View/Helper/NumberTextBoxTest.php | 10 ++++++++++ .../Dojo/View/Helper/PasswordTextBoxTest.php | 10 ++++++++++ .../Zend/Dojo/View/Helper/RadioButtonTest.php | 10 ++++++++++ .../Dojo/View/Helper/SimpleTextareaTest.php | 10 ++++++++++ .../Dojo/View/Helper/SplitContainerTest.php | 10 ++++++++++ .../Dojo/View/Helper/StackContainerTest.php | 7 +++++++ .../Dojo/View/Helper/SubmitButtonTest.php | 7 +++++++ .../Dojo/View/Helper/TabContainerTest.php | 10 ++++++++++ tests/Zend/Dojo/View/Helper/TextBoxTest.php | 10 ++++++++++ tests/Zend/Dojo/View/Helper/TextareaTest.php | 10 ++++++++++ .../Zend/Dojo/View/Helper/TimeTextBoxTest.php | 10 ++++++++++ .../View/Helper/ValidationTextBoxTest.php | 10 ++++++++++ .../Dojo/View/Helper/VerticalSliderTest.php | 10 ++++++++++ 61 files changed, 616 insertions(+) diff --git a/tests/Zend/Dojo/BuildLayerTest.php b/tests/Zend/Dojo/BuildLayerTest.php index 03b9f29660..40e5e95bca 100644 --- a/tests/Zend/Dojo/BuildLayerTest.php +++ b/tests/Zend/Dojo/BuildLayerTest.php @@ -44,6 +44,11 @@ */ class Zend_Dojo_BuildLayerTest extends TestCase { + /** + * @var \Zend_View|mixed + */ + protected $view; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/Dojo/Form/Decorator/AccordionContainerTest.php b/tests/Zend/Dojo/Form/Decorator/AccordionContainerTest.php index 8ff8acd99d..f2e613bc34 100644 --- a/tests/Zend/Dojo/Form/Decorator/AccordionContainerTest.php +++ b/tests/Zend/Dojo/Form/Decorator/AccordionContainerTest.php @@ -58,6 +58,18 @@ */ class Zend_Dojo_Form_Decorator_AccordionContainerTest extends TestCase { + protected $view; + + /** + * @var \Zend_Dojo_Form_Decorator_AccordionContainer|mixed + */ + protected $decorator; + + /** + * @var \Zend_Dojo_Form + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Decorator/AccordionPaneTest.php b/tests/Zend/Dojo/Form/Decorator/AccordionPaneTest.php index 80b8dff0eb..ccd35cbf0d 100644 --- a/tests/Zend/Dojo/Form/Decorator/AccordionPaneTest.php +++ b/tests/Zend/Dojo/Form/Decorator/AccordionPaneTest.php @@ -58,6 +58,15 @@ */ class Zend_Dojo_Form_Decorator_AccordionPaneTest extends TestCase { + protected $view; + + /** + * @var \Zend_Dojo_Form_Decorator_AccordionPane|mixed + */ + protected $decorator; + + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Decorator/BorderContainerTest.php b/tests/Zend/Dojo/Form/Decorator/BorderContainerTest.php index 104f31e660..e8528d06bd 100644 --- a/tests/Zend/Dojo/Form/Decorator/BorderContainerTest.php +++ b/tests/Zend/Dojo/Form/Decorator/BorderContainerTest.php @@ -58,6 +58,18 @@ */ class Zend_Dojo_Form_Decorator_BorderContainerTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Decorator_BorderContainer|mixed + */ + protected $decorator; + + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Decorator/DijitContainerTest.php b/tests/Zend/Dojo/Form/Decorator/DijitContainerTest.php index 384ed07817..3982c49078 100644 --- a/tests/Zend/Dojo/Form/Decorator/DijitContainerTest.php +++ b/tests/Zend/Dojo/Form/Decorator/DijitContainerTest.php @@ -61,6 +61,23 @@ */ class Zend_Dojo_Form_Decorator_DijitContainerTest extends TestCase { + /** + * @var mixed[]|string[]|mixed + */ + protected $errors; + + protected $view; + + /** + * @var \Zend_Dojo_Form_Decorator_ContentPane|mixed + */ + protected $decorator; + + /** + * @var \Zend_Dojo_Form + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Decorator/DijitElementTest.php b/tests/Zend/Dojo/Form/Decorator/DijitElementTest.php index f92cb226b5..bf1d3337ee 100644 --- a/tests/Zend/Dojo/Form/Decorator/DijitElementTest.php +++ b/tests/Zend/Dojo/Form/Decorator/DijitElementTest.php @@ -58,6 +58,26 @@ */ class Zend_Dojo_Form_Decorator_DijitElementTest extends TestCase { + /** + * @var mixed[]|string[]|mixed + */ + protected $errors; + + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Decorator_DijitElement|mixed + */ + protected $decorator; + + /** + * @var \Zend_Dojo_Form_Element_TextBox + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Decorator/DijitFormTest.php b/tests/Zend/Dojo/Form/Decorator/DijitFormTest.php index c0167ec030..c88d634efb 100644 --- a/tests/Zend/Dojo/Form/Decorator/DijitFormTest.php +++ b/tests/Zend/Dojo/Form/Decorator/DijitFormTest.php @@ -58,6 +58,21 @@ */ class Zend_Dojo_Form_Decorator_DijitFormTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Decorator_DijitForm|mixed + */ + protected $decorator; + + /** + * @var \Zend_Dojo_Form + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Decorator/SplitContainerTest.php b/tests/Zend/Dojo/Form/Decorator/SplitContainerTest.php index 2836e23300..057a428475 100644 --- a/tests/Zend/Dojo/Form/Decorator/SplitContainerTest.php +++ b/tests/Zend/Dojo/Form/Decorator/SplitContainerTest.php @@ -58,6 +58,20 @@ */ class Zend_Dojo_Form_Decorator_SplitContainerTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Decorator_SplitContainer|mixed + */ + protected $decorator; + + /** + * @var \Zend_Dojo_Form + */ + protected $element; /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Decorator/StackContainerTest.php b/tests/Zend/Dojo/Form/Decorator/StackContainerTest.php index f85b2e17c4..e494ad1efa 100644 --- a/tests/Zend/Dojo/Form/Decorator/StackContainerTest.php +++ b/tests/Zend/Dojo/Form/Decorator/StackContainerTest.php @@ -58,6 +58,21 @@ */ class Zend_Dojo_Form_Decorator_StackContainerTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Decorator_StackContainer|mixed + */ + protected $decorator; + + /** + * @var \Zend_Dojo_Form + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Decorator/TabContainerTest.php b/tests/Zend/Dojo/Form/Decorator/TabContainerTest.php index b0cba070fe..be496d6b74 100644 --- a/tests/Zend/Dojo/Form/Decorator/TabContainerTest.php +++ b/tests/Zend/Dojo/Form/Decorator/TabContainerTest.php @@ -58,6 +58,21 @@ */ class Zend_Dojo_Form_Decorator_TabContainerTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Decorator_TabContainer|mixed + */ + protected $decorator; + + /** + * @var \Zend_Dojo_Form + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/ButtonTest.php b/tests/Zend/Dojo/Form/Element/ButtonTest.php index 237537b038..0895866ebd 100644 --- a/tests/Zend/Dojo/Form/Element/ButtonTest.php +++ b/tests/Zend/Dojo/Form/Element/ButtonTest.php @@ -58,6 +58,16 @@ */ class Zend_Dojo_Form_Element_ButtonTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_Button + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/CheckBoxTest.php b/tests/Zend/Dojo/Form/Element/CheckBoxTest.php index 06c845653b..b9107e817b 100644 --- a/tests/Zend/Dojo/Form/Element/CheckBoxTest.php +++ b/tests/Zend/Dojo/Form/Element/CheckBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_CheckBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_CheckBox + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/ComboBoxTest.php b/tests/Zend/Dojo/Form/Element/ComboBoxTest.php index b0f46ec43d..5326183380 100644 --- a/tests/Zend/Dojo/Form/Element/ComboBoxTest.php +++ b/tests/Zend/Dojo/Form/Element/ComboBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_ComboBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_ComboBox + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/CurrencyTextBoxTest.php b/tests/Zend/Dojo/Form/Element/CurrencyTextBoxTest.php index 7a097c71c5..e56bbb7fda 100644 --- a/tests/Zend/Dojo/Form/Element/CurrencyTextBoxTest.php +++ b/tests/Zend/Dojo/Form/Element/CurrencyTextBoxTest.php @@ -55,6 +55,15 @@ */ class Zend_Dojo_Form_Element_CurrencyTextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var Zend_Dojo_Form_Element_CurrencyTextBox + */ + protected $element; /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/DateTextBoxTest.php b/tests/Zend/Dojo/Form/Element/DateTextBoxTest.php index b2d82dfb71..a252fcbb54 100644 --- a/tests/Zend/Dojo/Form/Element/DateTextBoxTest.php +++ b/tests/Zend/Dojo/Form/Element/DateTextBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_DateTextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_DateTextBox + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/DijitTest.php b/tests/Zend/Dojo/Form/Element/DijitTest.php index fb6df4c4c2..9b3dfc0c3a 100644 --- a/tests/Zend/Dojo/Form/Element/DijitTest.php +++ b/tests/Zend/Dojo/Form/Element/DijitTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_DijitTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_TextBox + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/EditorTest.php b/tests/Zend/Dojo/Form/Element/EditorTest.php index 0ee0eb8b84..f8c31e9298 100644 --- a/tests/Zend/Dojo/Form/Element/EditorTest.php +++ b/tests/Zend/Dojo/Form/Element/EditorTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_EditorTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_TextBox + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/FilteringSelectTest.php b/tests/Zend/Dojo/Form/Element/FilteringSelectTest.php index 85761fcbe3..64344da99e 100644 --- a/tests/Zend/Dojo/Form/Element/FilteringSelectTest.php +++ b/tests/Zend/Dojo/Form/Element/FilteringSelectTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_FilteringSelectTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_FilteringSelect + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/HorizontalSliderTest.php b/tests/Zend/Dojo/Form/Element/HorizontalSliderTest.php index 3287082239..10cb091171 100644 --- a/tests/Zend/Dojo/Form/Element/HorizontalSliderTest.php +++ b/tests/Zend/Dojo/Form/Element/HorizontalSliderTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_HorizontalSliderTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_HorizontalSlider + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/NumberSpinnerTest.php b/tests/Zend/Dojo/Form/Element/NumberSpinnerTest.php index c48027a9de..a322a2a72e 100644 --- a/tests/Zend/Dojo/Form/Element/NumberSpinnerTest.php +++ b/tests/Zend/Dojo/Form/Element/NumberSpinnerTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_NumberSpinnerTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_NumberSpinner + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/NumberTextBoxTest.php b/tests/Zend/Dojo/Form/Element/NumberTextBoxTest.php index e7b4b83c65..cde255ad36 100644 --- a/tests/Zend/Dojo/Form/Element/NumberTextBoxTest.php +++ b/tests/Zend/Dojo/Form/Element/NumberTextBoxTest.php @@ -54,6 +54,16 @@ */ class Zend_Dojo_Form_Element_NumberTextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_NumberTextBox + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/PasswordTextBoxTest.php b/tests/Zend/Dojo/Form/Element/PasswordTextBoxTest.php index 34be46dc2e..586e5571e7 100644 --- a/tests/Zend/Dojo/Form/Element/PasswordTextBoxTest.php +++ b/tests/Zend/Dojo/Form/Element/PasswordTextBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_PasswordTextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_PasswordTextBox + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/RadioButtonTest.php b/tests/Zend/Dojo/Form/Element/RadioButtonTest.php index 54bf39cf08..75a3fb3542 100644 --- a/tests/Zend/Dojo/Form/Element/RadioButtonTest.php +++ b/tests/Zend/Dojo/Form/Element/RadioButtonTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_RadioButtonTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_RadioButton + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/SimpleTextareaTest.php b/tests/Zend/Dojo/Form/Element/SimpleTextareaTest.php index 0945bc2408..121b3d63dc 100644 --- a/tests/Zend/Dojo/Form/Element/SimpleTextareaTest.php +++ b/tests/Zend/Dojo/Form/Element/SimpleTextareaTest.php @@ -58,6 +58,16 @@ */ class Zend_Dojo_Form_Element_SimpleTextareaTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_SimpleTextarea + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/SubmitButtonTest.php b/tests/Zend/Dojo/Form/Element/SubmitButtonTest.php index c7e8d2cc9d..d095589750 100644 --- a/tests/Zend/Dojo/Form/Element/SubmitButtonTest.php +++ b/tests/Zend/Dojo/Form/Element/SubmitButtonTest.php @@ -58,6 +58,16 @@ */ class Zend_Dojo_Form_Element_SubmitButtonTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_SubmitButton + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/TextBoxTest.php b/tests/Zend/Dojo/Form/Element/TextBoxTest.php index 7bfd465450..66b67eec87 100644 --- a/tests/Zend/Dojo/Form/Element/TextBoxTest.php +++ b/tests/Zend/Dojo/Form/Element/TextBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_TextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_TextBox + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/TextareaTest.php b/tests/Zend/Dojo/Form/Element/TextareaTest.php index 9c002b6d6c..661402c2c3 100644 --- a/tests/Zend/Dojo/Form/Element/TextareaTest.php +++ b/tests/Zend/Dojo/Form/Element/TextareaTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_TextareaTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_Textarea + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/TimeTextBoxTest.php b/tests/Zend/Dojo/Form/Element/TimeTextBoxTest.php index e53b87218c..12b52d17c1 100644 --- a/tests/Zend/Dojo/Form/Element/TimeTextBoxTest.php +++ b/tests/Zend/Dojo/Form/Element/TimeTextBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_TimeTextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_TimeTextBox + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/ValidationTextBoxTest.php b/tests/Zend/Dojo/Form/Element/ValidationTextBoxTest.php index 7b3d074a63..b00c3cf3d3 100644 --- a/tests/Zend/Dojo/Form/Element/ValidationTextBoxTest.php +++ b/tests/Zend/Dojo/Form/Element/ValidationTextBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_ValidationTextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_ValidationTextBox + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/Element/VerticalSliderTest.php b/tests/Zend/Dojo/Form/Element/VerticalSliderTest.php index f244ed0ab8..04b9185ee4 100644 --- a/tests/Zend/Dojo/Form/Element/VerticalSliderTest.php +++ b/tests/Zend/Dojo/Form/Element/VerticalSliderTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_Form_Element_VerticalSliderTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_Form_Element_VerticalSlider + */ + protected $element; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/FormTest.php b/tests/Zend/Dojo/Form/FormTest.php index 4af4cd606f..470e94a31e 100644 --- a/tests/Zend/Dojo/Form/FormTest.php +++ b/tests/Zend/Dojo/Form/FormTest.php @@ -49,6 +49,11 @@ */ class Zend_Dojo_Form_FormTest extends TestCase { + /** + * @var \Zend_Dojo_Form|mixed + */ + protected $form; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/Form/SubFormTest.php b/tests/Zend/Dojo/Form/SubFormTest.php index c882592849..8dd00ea7d4 100644 --- a/tests/Zend/Dojo/Form/SubFormTest.php +++ b/tests/Zend/Dojo/Form/SubFormTest.php @@ -49,6 +49,11 @@ */ class Zend_Dojo_Form_SubFormTest extends TestCase { + /** + * @var \Zend_Dojo_Form_SubForm|mixed + */ + protected $form; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/AccordionContainerTest.php b/tests/Zend/Dojo/View/Helper/AccordionContainerTest.php index 1b8751ff09..6d3fde6a5b 100644 --- a/tests/Zend/Dojo/View/Helper/AccordionContainerTest.php +++ b/tests/Zend/Dojo/View/Helper/AccordionContainerTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_AccordionContainerTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_AccordionContainer|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/AccordionPaneTest.php b/tests/Zend/Dojo/View/Helper/AccordionPaneTest.php index e6d023de77..aa0f477187 100644 --- a/tests/Zend/Dojo/View/Helper/AccordionPaneTest.php +++ b/tests/Zend/Dojo/View/Helper/AccordionPaneTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_AccordionPaneTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_AccordionPane|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/BorderContainerTest.php b/tests/Zend/Dojo/View/Helper/BorderContainerTest.php index 011e28dee4..f05afd4c42 100644 --- a/tests/Zend/Dojo/View/Helper/BorderContainerTest.php +++ b/tests/Zend/Dojo/View/Helper/BorderContainerTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_BorderContainerTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_BorderContainer|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/ButtonTest.php b/tests/Zend/Dojo/View/Helper/ButtonTest.php index 7156c6cc8d..b3b5ea3bc0 100644 --- a/tests/Zend/Dojo/View/Helper/ButtonTest.php +++ b/tests/Zend/Dojo/View/Helper/ButtonTest.php @@ -55,6 +55,15 @@ */ class Zend_Dojo_View_Helper_ButtonTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_Button|mixed + */ + protected $helper; /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/CheckBoxTest.php b/tests/Zend/Dojo/View/Helper/CheckBoxTest.php index ccafe30bc6..6817eb2822 100644 --- a/tests/Zend/Dojo/View/Helper/CheckBoxTest.php +++ b/tests/Zend/Dojo/View/Helper/CheckBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_CheckBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_CheckBox|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/ComboBoxTest.php b/tests/Zend/Dojo/View/Helper/ComboBoxTest.php index a4f4370a67..e3667e51aa 100644 --- a/tests/Zend/Dojo/View/Helper/ComboBoxTest.php +++ b/tests/Zend/Dojo/View/Helper/ComboBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_ComboBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_ComboBox|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/ContentPaneTest.php b/tests/Zend/Dojo/View/Helper/ContentPaneTest.php index 45da8c7c4e..c6db6ccc40 100644 --- a/tests/Zend/Dojo/View/Helper/ContentPaneTest.php +++ b/tests/Zend/Dojo/View/Helper/ContentPaneTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_ContentPaneTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_ContentPane|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/CurrencyTextBoxTest.php b/tests/Zend/Dojo/View/Helper/CurrencyTextBoxTest.php index 5fb036a1ce..911c3e9af1 100644 --- a/tests/Zend/Dojo/View/Helper/CurrencyTextBoxTest.php +++ b/tests/Zend/Dojo/View/Helper/CurrencyTextBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_CurrencyTextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_CurrencyTextBox|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/CustomDijitTest.php b/tests/Zend/Dojo/View/Helper/CustomDijitTest.php index 2537649597..84e39e5a4e 100644 --- a/tests/Zend/Dojo/View/Helper/CustomDijitTest.php +++ b/tests/Zend/Dojo/View/Helper/CustomDijitTest.php @@ -55,6 +55,11 @@ */ class Zend_Dojo_View_Helper_CustomDijitTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/DateTextBoxTest.php b/tests/Zend/Dojo/View/Helper/DateTextBoxTest.php index 41d02d7919..1a93653dfd 100644 --- a/tests/Zend/Dojo/View/Helper/DateTextBoxTest.php +++ b/tests/Zend/Dojo/View/Helper/DateTextBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_DateTextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_DateTextBox|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/DojoTest.php b/tests/Zend/Dojo/View/Helper/DojoTest.php index 831c0b2ad8..8f68156237 100644 --- a/tests/Zend/Dojo/View/Helper/DojoTest.php +++ b/tests/Zend/Dojo/View/Helper/DojoTest.php @@ -54,6 +54,11 @@ */ class Zend_Dojo_View_Helper_DojoTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + /** * @var Zend_Dojo_View_Helper_Dojo_Container */ diff --git a/tests/Zend/Dojo/View/Helper/EditorTest.php b/tests/Zend/Dojo/View/Helper/EditorTest.php index 2b65bda5b5..2364d64907 100644 --- a/tests/Zend/Dojo/View/Helper/EditorTest.php +++ b/tests/Zend/Dojo/View/Helper/EditorTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_EditorTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_Editor|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/FilteringSelectTest.php b/tests/Zend/Dojo/View/Helper/FilteringSelectTest.php index 26ba0cf459..4842a518e4 100644 --- a/tests/Zend/Dojo/View/Helper/FilteringSelectTest.php +++ b/tests/Zend/Dojo/View/Helper/FilteringSelectTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_FilteringSelectTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_FilteringSelect|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/FormTest.php b/tests/Zend/Dojo/View/Helper/FormTest.php index 2d89f460ce..b02e48d82a 100644 --- a/tests/Zend/Dojo/View/Helper/FormTest.php +++ b/tests/Zend/Dojo/View/Helper/FormTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_FormTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_Form|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/HorizontalSliderTest.php b/tests/Zend/Dojo/View/Helper/HorizontalSliderTest.php index 7655754e93..549c6b0a55 100644 --- a/tests/Zend/Dojo/View/Helper/HorizontalSliderTest.php +++ b/tests/Zend/Dojo/View/Helper/HorizontalSliderTest.php @@ -61,6 +61,16 @@ */ class Zend_Dojo_View_Helper_HorizontalSliderTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_HorizontalSlider|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/NumberSpinnerTest.php b/tests/Zend/Dojo/View/Helper/NumberSpinnerTest.php index f7185a5d34..c922fc8d28 100644 --- a/tests/Zend/Dojo/View/Helper/NumberSpinnerTest.php +++ b/tests/Zend/Dojo/View/Helper/NumberSpinnerTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_NumberSpinnerTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_NumberSpinner|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/NumberTextBoxTest.php b/tests/Zend/Dojo/View/Helper/NumberTextBoxTest.php index b4a65c9dca..6dfc316090 100644 --- a/tests/Zend/Dojo/View/Helper/NumberTextBoxTest.php +++ b/tests/Zend/Dojo/View/Helper/NumberTextBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_NumberTextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_NumberTextBox|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/PasswordTextBoxTest.php b/tests/Zend/Dojo/View/Helper/PasswordTextBoxTest.php index e824a3fd26..8b70c0e7bd 100644 --- a/tests/Zend/Dojo/View/Helper/PasswordTextBoxTest.php +++ b/tests/Zend/Dojo/View/Helper/PasswordTextBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_PasswordTextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_PasswordTextBox|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/RadioButtonTest.php b/tests/Zend/Dojo/View/Helper/RadioButtonTest.php index 30af3e24dc..13e0b67479 100644 --- a/tests/Zend/Dojo/View/Helper/RadioButtonTest.php +++ b/tests/Zend/Dojo/View/Helper/RadioButtonTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_RadioButtonTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_RadioButton|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/SimpleTextareaTest.php b/tests/Zend/Dojo/View/Helper/SimpleTextareaTest.php index fe3852133c..f393c7892c 100644 --- a/tests/Zend/Dojo/View/Helper/SimpleTextareaTest.php +++ b/tests/Zend/Dojo/View/Helper/SimpleTextareaTest.php @@ -58,6 +58,16 @@ */ class Zend_Dojo_View_Helper_SimpleTextareaTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_SimpleTextarea|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/SplitContainerTest.php b/tests/Zend/Dojo/View/Helper/SplitContainerTest.php index 6193e56763..f4a60e0e6a 100644 --- a/tests/Zend/Dojo/View/Helper/SplitContainerTest.php +++ b/tests/Zend/Dojo/View/Helper/SplitContainerTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_SplitContainerTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_SplitContainer|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/StackContainerTest.php b/tests/Zend/Dojo/View/Helper/StackContainerTest.php index d15c448b3f..b9f804f4b7 100644 --- a/tests/Zend/Dojo/View/Helper/StackContainerTest.php +++ b/tests/Zend/Dojo/View/Helper/StackContainerTest.php @@ -55,6 +55,13 @@ */ class Zend_Dojo_View_Helper_StackContainerTest extends TestCase { + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_StackContainer|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/SubmitButtonTest.php b/tests/Zend/Dojo/View/Helper/SubmitButtonTest.php index 28c9999812..d492be8ef3 100644 --- a/tests/Zend/Dojo/View/Helper/SubmitButtonTest.php +++ b/tests/Zend/Dojo/View/Helper/SubmitButtonTest.php @@ -55,6 +55,13 @@ */ class Zend_Dojo_View_Helper_SubmitButtonTest extends TestCase { + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_SubmitButton|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/TabContainerTest.php b/tests/Zend/Dojo/View/Helper/TabContainerTest.php index 3bccafbbac..141f336b32 100644 --- a/tests/Zend/Dojo/View/Helper/TabContainerTest.php +++ b/tests/Zend/Dojo/View/Helper/TabContainerTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_TabContainerTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_TabContainer|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/TextBoxTest.php b/tests/Zend/Dojo/View/Helper/TextBoxTest.php index 93284a976b..29404f5472 100644 --- a/tests/Zend/Dojo/View/Helper/TextBoxTest.php +++ b/tests/Zend/Dojo/View/Helper/TextBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_TextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_TextBox|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/TextareaTest.php b/tests/Zend/Dojo/View/Helper/TextareaTest.php index d3d3e4d023..a14f0c09b5 100644 --- a/tests/Zend/Dojo/View/Helper/TextareaTest.php +++ b/tests/Zend/Dojo/View/Helper/TextareaTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_TextareaTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_Textarea|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/TimeTextBoxTest.php b/tests/Zend/Dojo/View/Helper/TimeTextBoxTest.php index 112d4a7065..a8001163ee 100644 --- a/tests/Zend/Dojo/View/Helper/TimeTextBoxTest.php +++ b/tests/Zend/Dojo/View/Helper/TimeTextBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_TimeTextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_TimeTextBox|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/ValidationTextBoxTest.php b/tests/Zend/Dojo/View/Helper/ValidationTextBoxTest.php index 24d505d929..e8a073839f 100644 --- a/tests/Zend/Dojo/View/Helper/ValidationTextBoxTest.php +++ b/tests/Zend/Dojo/View/Helper/ValidationTextBoxTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_ValidationTextBoxTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_ValidationTextBox|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Dojo/View/Helper/VerticalSliderTest.php b/tests/Zend/Dojo/View/Helper/VerticalSliderTest.php index e56c09fd35..0b232f665b 100644 --- a/tests/Zend/Dojo/View/Helper/VerticalSliderTest.php +++ b/tests/Zend/Dojo/View/Helper/VerticalSliderTest.php @@ -55,6 +55,16 @@ */ class Zend_Dojo_View_Helper_VerticalSliderTest extends TestCase { + /** + * @var \Zend_View + */ + protected $view; + + /** + * @var \Zend_Dojo_View_Helper_VerticalSlider|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * From ee0b205016cbacbafc6999ce80525dce01a93bfa Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:40 +0700 Subject: [PATCH 10/36] Add missing properties to classes tests/Zend/Dom/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Dom/AllTests.php --- tests/Zend/Dom/QueryTest.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/Zend/Dom/QueryTest.php b/tests/Zend/Dom/QueryTest.php index e65b0db61d..0db5dbb7ba 100644 --- a/tests/Zend/Dom/QueryTest.php +++ b/tests/Zend/Dom/QueryTest.php @@ -43,9 +43,21 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Dom */ -#[AllowDynamicProperties] class Zend_Dom_QueryTest extends TestCase { + /** + * @var \Zend_Dom_Query|mixed + */ + protected $query; + + /** + * @var string + */ + protected $error; + + /** + * @var string + */ public $html; /** From 33c457b70afcfac22c6d679b05d1ef0b6aef4616 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:40 +0700 Subject: [PATCH 11/36] Add missing properties to classes tests/Zend/EventManager/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/EventManager/AllTests.php --- tests/Zend/EventManager/EventManagerTest.php | 31 ++++++++++++++++++- tests/Zend/EventManager/FilterChainTest.php | 11 ++++++- .../EventManager/GlobalEventManagerTest.php | 6 +++- .../EventManager/StaticEventManagerTest.php | 6 +++- .../EventManager/StaticIntegrationTest.php | 11 ++++++- 5 files changed, 60 insertions(+), 5 deletions(-) diff --git a/tests/Zend/EventManager/EventManagerTest.php b/tests/Zend/EventManager/EventManagerTest.php index 481dad2c73..794aa6a8d2 100644 --- a/tests/Zend/EventManager/EventManagerTest.php +++ b/tests/Zend/EventManager/EventManagerTest.php @@ -44,9 +44,38 @@ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ -#[AllowDynamicProperties] class Zend_EventManager_EventManagerTest extends TestCase { + /** + * @var string + */ + protected $message; + + /** + * @var string|mixed + */ + protected $default; + + /** + * @var \Zend_EventManager_EventManager|mixed + */ + protected $events; + + /** + * @var string|class-string<\FOO>|mixed + */ + protected $foo; + + /** + * @var string|mixed + */ + protected $bar; + + /** + * @var \stdClass|mixed + */ + protected $test; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/EventManager/FilterChainTest.php b/tests/Zend/EventManager/FilterChainTest.php index 6d90c22475..3d6e8f9c0a 100644 --- a/tests/Zend/EventManager/FilterChainTest.php +++ b/tests/Zend/EventManager/FilterChainTest.php @@ -40,9 +40,18 @@ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ -#[AllowDynamicProperties] class Zend_EventManager_FilterChainTest extends TestCase { + /** + * @var string + */ + protected $message; + + /** + * @var \Zend_EventManager_FilterChain|mixed + */ + protected $filterchain; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/EventManager/GlobalEventManagerTest.php b/tests/Zend/EventManager/GlobalEventManagerTest.php index 26d6884c15..9c02a67358 100644 --- a/tests/Zend/EventManager/GlobalEventManagerTest.php +++ b/tests/Zend/EventManager/GlobalEventManagerTest.php @@ -39,9 +39,13 @@ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ -#[AllowDynamicProperties] class Zend_EventManager_GlobalEventManagerTest extends TestCase { + /** + * @var \stdClass|mixed + */ + protected $test; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/EventManager/StaticEventManagerTest.php b/tests/Zend/EventManager/StaticEventManagerTest.php index 90b858d121..49597c7deb 100644 --- a/tests/Zend/EventManager/StaticEventManagerTest.php +++ b/tests/Zend/EventManager/StaticEventManagerTest.php @@ -39,9 +39,13 @@ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ -#[AllowDynamicProperties] class Zend_EventManager_StaticEventManagerTest extends TestCase { + /** + * @var \stdClass|mixed + */ + protected $test; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/EventManager/StaticIntegrationTest.php b/tests/Zend/EventManager/StaticIntegrationTest.php index a70b4afc09..8bf8868557 100644 --- a/tests/Zend/EventManager/StaticIntegrationTest.php +++ b/tests/Zend/EventManager/StaticIntegrationTest.php @@ -41,9 +41,18 @@ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ -#[AllowDynamicProperties] class Zend_EventManager_StaticIntegrationTest extends TestCase { + /** + * @var \stdClass|mixed + */ + protected $counter; + + /** + * @var \stdClass|mixed + */ + protected $test; + public static function main() { $suite = new TestSuite(__CLASS__); From c54974799155fd0f1bdcf22ad4a151af9e960bc9 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:40 +0700 Subject: [PATCH 12/36] Add missing properties to classes tests/Zend/Feed/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Feed/AllTests.php --- tests/Zend/Feed/Pubsubhubbub/SubscriberHttpTest.php | 2 ++ tests/Zend/Feed/Reader/Integration/PodcastRss2Test.php | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/tests/Zend/Feed/Pubsubhubbub/SubscriberHttpTest.php b/tests/Zend/Feed/Pubsubhubbub/SubscriberHttpTest.php index d627001eb4..d926b7f114 100644 --- a/tests/Zend/Feed/Pubsubhubbub/SubscriberHttpTest.php +++ b/tests/Zend/Feed/Pubsubhubbub/SubscriberHttpTest.php @@ -46,6 +46,8 @@ */ class Zend_Feed_Pubsubhubbub_SubscriberHttpTest extends TestCase { + protected $_storage; + protected $_subscriber = null; protected $_baseuri; diff --git a/tests/Zend/Feed/Reader/Integration/PodcastRss2Test.php b/tests/Zend/Feed/Reader/Integration/PodcastRss2Test.php index 470a1b7eb6..12115a9a6c 100644 --- a/tests/Zend/Feed/Reader/Integration/PodcastRss2Test.php +++ b/tests/Zend/Feed/Reader/Integration/PodcastRss2Test.php @@ -36,6 +36,11 @@ */ class Zend_Feed_Reader_Integration_PodcastRss2Test extends TestCase { + /** + * @var mixed[]|void|mixed + */ + protected $_options; + protected $_feedSamplePath = null; protected function setUp(): void From 658d3d3712823bc6ceba969f60f3b58d0a5a3fa9 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:41 +0700 Subject: [PATCH 13/36] Add missing properties to classes tests/Zend/Filter/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Filter/AllTests.php --- tests/Zend/Filter/InflectorTest.php | 16 +++++++++++++++- tests/Zend/Filter/PregReplaceTest.php | 6 +++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/tests/Zend/Filter/InflectorTest.php b/tests/Zend/Filter/InflectorTest.php index 2c004cdbfb..fc71c52d4e 100644 --- a/tests/Zend/Filter/InflectorTest.php +++ b/tests/Zend/Filter/InflectorTest.php @@ -52,9 +52,23 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Filter */ -#[AllowDynamicProperties] class Zend_Filter_InflectorTest extends TestCase { + /** + * @var \Zend_Filter_Inflector|mixed + */ + protected $inflector; + + /** + * @var \Zend_Loader_PluginLoader_Interface|mixed + */ + protected $loader; + + /** + * @var string|mixed + */ + protected $_context; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Filter/PregReplaceTest.php b/tests/Zend/Filter/PregReplaceTest.php index 040a39b2cb..158cd622af 100644 --- a/tests/Zend/Filter/PregReplaceTest.php +++ b/tests/Zend/Filter/PregReplaceTest.php @@ -47,9 +47,13 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Filter */ -#[AllowDynamicProperties] class Zend_Filter_PregReplaceTest extends TestCase { + /** + * @var \Zend_Filter_PregReplace|mixed + */ + protected $filter; + /** * Runs the test methods of this class. * From 5d1ff9a59faa85713922f8177a3cb21b501f71f1 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:41 +0700 Subject: [PATCH 14/36] Add missing properties to classes tests/Zend/Form/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Form/AllTests.php --- .../Zend/Form/Decorator/PrepareElementsTest.php | 10 ++++++++++ tests/Zend/Form/DisplayGroupTest.php | 16 +++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/tests/Zend/Form/Decorator/PrepareElementsTest.php b/tests/Zend/Form/Decorator/PrepareElementsTest.php index 996e78bbed..4c2a09bf64 100644 --- a/tests/Zend/Form/Decorator/PrepareElementsTest.php +++ b/tests/Zend/Form/Decorator/PrepareElementsTest.php @@ -47,6 +47,16 @@ */ class Zend_Form_Decorator_PrepareElementsTest extends TestCase { + /** + * @var \Zend_Form|mixed + */ + protected $form; + + /** + * @var \Zend_Form_Decorator_Abstract|bool + */ + protected $decorator; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Form/DisplayGroupTest.php b/tests/Zend/Form/DisplayGroupTest.php index 127ba90170..c8cd97e6c2 100644 --- a/tests/Zend/Form/DisplayGroupTest.php +++ b/tests/Zend/Form/DisplayGroupTest.php @@ -51,9 +51,23 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Form */ -#[AllowDynamicProperties] class Zend_Form_DisplayGroupTest extends TestCase { + /** + * @var string + */ + protected $error; + + /** + * @var \Zend_Loader_PluginLoader|mixed + */ + protected $loader; + + /** + * @var \Zend_Form_DisplayGroup|mixed + */ + protected $group; + public static function main() { $suite = new TestSuite('Zend_Form_DisplayGroupTest'); From 76ffa639dd8eb0ec9ac8c3c56b442bcd4cbd1ed0 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:41 +0700 Subject: [PATCH 15/36] Add missing properties to classes tests/Zend/Http/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Http/AllTests.php --- tests/Zend/Http/Client/ClientTest.php | 6 +++++- .../UserAgent/Features/Adapter/DeviceAtlasTest.php | 5 +++++ .../Http/UserAgent/Features/Adapter/TeraWurflTest.php | 5 +++++ tests/Zend/Http/UserAgentTest.php | 11 +++++++++++ 4 files changed, 26 insertions(+), 1 deletion(-) diff --git a/tests/Zend/Http/Client/ClientTest.php b/tests/Zend/Http/Client/ClientTest.php index d0bfecebc6..f91e7b59ff 100644 --- a/tests/Zend/Http/Client/ClientTest.php +++ b/tests/Zend/Http/Client/ClientTest.php @@ -34,9 +34,13 @@ * @group Zend_Http * @group Zend_Http_Client */ -#[AllowDynamicProperties] class Zend_Http_Client_ClientTest extends TestCase { + /** + * @var \Zend_Http_Client|mixed + */ + protected $client; + /** * Set up the test case * diff --git a/tests/Zend/Http/UserAgent/Features/Adapter/DeviceAtlasTest.php b/tests/Zend/Http/UserAgent/Features/Adapter/DeviceAtlasTest.php index ef2394ad57..0c8497b39e 100644 --- a/tests/Zend/Http/UserAgent/Features/Adapter/DeviceAtlasTest.php +++ b/tests/Zend/Http/UserAgent/Features/Adapter/DeviceAtlasTest.php @@ -33,6 +33,11 @@ */ class Zend_Http_UserAgent_Features_Adapter_DeviceAtlasTest extends TestCase { + /** + * @var array + */ + protected $config; + protected function setUp(): void { if (!constant('TESTS_ZEND_HTTP_USERAGENT_DEVICEATLAS_LIB_DIR') diff --git a/tests/Zend/Http/UserAgent/Features/Adapter/TeraWurflTest.php b/tests/Zend/Http/UserAgent/Features/Adapter/TeraWurflTest.php index f2f4eff498..9ab3e34c75 100644 --- a/tests/Zend/Http/UserAgent/Features/Adapter/TeraWurflTest.php +++ b/tests/Zend/Http/UserAgent/Features/Adapter/TeraWurflTest.php @@ -37,6 +37,11 @@ */ class Zend_Http_UserAgent_Features_Adapter_TeraWurflTest extends TestCase { + /** + * @var array + */ + protected $config; + protected function setUp(): void { if (!constant('TESTS_ZEND_HTTP_USERAGENT_TERAWURFL_LIB_DIR')) { diff --git a/tests/Zend/Http/UserAgentTest.php b/tests/Zend/Http/UserAgentTest.php index f81883df7b..c588e3bfd7 100644 --- a/tests/Zend/Http/UserAgentTest.php +++ b/tests/Zend/Http/UserAgentTest.php @@ -45,6 +45,17 @@ #[AllowDynamicProperties] class Zend_Http_UserAgentTest extends TestCase { + /** + * @var mixed[]|array|mixed|array + */ + + protected $server; + + /** + * @var array>|mixed|array|array>>|array>>>|array>>|array>>>|array + */ + protected $config; + protected function setUp(): void { Zend_Session::$_unitTestEnabled = true; From 6c432ab713568e26b93eaf7e064d563f649afe2b Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:42 +0700 Subject: [PATCH 16/36] Add missing properties to classes tests/Zend/Json/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Json/AllTests.php --- tests/Zend/Json/Server/CacheTest.php | 11 ++++++++++- tests/Zend/Json/Server/ErrorTest.php | 6 +++++- tests/Zend/Json/Server/RequestTest.php | 6 +++++- tests/Zend/Json/Server/ResponseTest.php | 6 +++++- tests/Zend/Json/Server/Smd/ServiceTest.php | 6 +++++- tests/Zend/Json/Server/SmdTest.php | 6 +++++- tests/Zend/Json/ServerTest.php | 6 +++++- 7 files changed, 40 insertions(+), 7 deletions(-) diff --git a/tests/Zend/Json/Server/CacheTest.php b/tests/Zend/Json/Server/CacheTest.php index d1aeaeb9fc..e51d02b29e 100644 --- a/tests/Zend/Json/Server/CacheTest.php +++ b/tests/Zend/Json/Server/CacheTest.php @@ -44,9 +44,18 @@ * @group Zend_Json * @group Zend_Json_Server */ -#[AllowDynamicProperties] class Zend_Json_Server_CacheTest extends TestCase { + /** + * @var \Zend_Json_Server|mixed + */ + protected $server; + + /** + * @var string|bool|mixed + */ + protected $cacheFile; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Json/Server/ErrorTest.php b/tests/Zend/Json/Server/ErrorTest.php index d0268226d7..2b10a47628 100644 --- a/tests/Zend/Json/Server/ErrorTest.php +++ b/tests/Zend/Json/Server/ErrorTest.php @@ -44,9 +44,13 @@ * @group Zend_Json * @group Zend_Json_Server */ -#[AllowDynamicProperties] class Zend_Json_Server_ErrorTest extends TestCase { + /** + * @var \Zend_Json_Server_Error|mixed + */ + protected $error; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Json/Server/RequestTest.php b/tests/Zend/Json/Server/RequestTest.php index 8a45f16910..ed8bc1f291 100644 --- a/tests/Zend/Json/Server/RequestTest.php +++ b/tests/Zend/Json/Server/RequestTest.php @@ -42,9 +42,13 @@ * @group Zend_Json * @group Zend_Json_Server */ -#[AllowDynamicProperties] class Zend_Json_Server_RequestTest extends TestCase { + /** + * @var \Zend_Json_Server_Request|mixed + */ + protected $request; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Json/Server/ResponseTest.php b/tests/Zend/Json/Server/ResponseTest.php index f964777738..9c2c2af32f 100644 --- a/tests/Zend/Json/Server/ResponseTest.php +++ b/tests/Zend/Json/Server/ResponseTest.php @@ -45,9 +45,13 @@ * @group Zend_Json * @group Zend_Json_Server */ -#[AllowDynamicProperties] class Zend_Json_Server_ResponseTest extends TestCase { + /** + * @var \Zend_Json_Server_Response|mixed + */ + protected $response; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Json/Server/Smd/ServiceTest.php b/tests/Zend/Json/Server/Smd/ServiceTest.php index c96527dbb5..548bf85e77 100644 --- a/tests/Zend/Json/Server/Smd/ServiceTest.php +++ b/tests/Zend/Json/Server/Smd/ServiceTest.php @@ -45,9 +45,13 @@ * @group Zend_Json * @group Zend_Json_Server */ -#[AllowDynamicProperties] class Zend_Json_Server_Smd_ServiceTest extends TestCase { + /** + * @var \Zend_Json_Server_Smd_Service|mixed + */ + protected $service; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Json/Server/SmdTest.php b/tests/Zend/Json/Server/SmdTest.php index 905c65fdcb..da28e63bfd 100644 --- a/tests/Zend/Json/Server/SmdTest.php +++ b/tests/Zend/Json/Server/SmdTest.php @@ -45,9 +45,13 @@ * @group Zend_Json * @group Zend_Json_Server */ -#[AllowDynamicProperties] class Zend_Json_Server_SmdTest extends TestCase { + /** + * @var \Zend_Json_Server_Smd|mixed + */ + protected $smd; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Json/ServerTest.php b/tests/Zend/Json/ServerTest.php index 4a8a34ec73..f7257ad8dd 100644 --- a/tests/Zend/Json/ServerTest.php +++ b/tests/Zend/Json/ServerTest.php @@ -47,9 +47,13 @@ * @group Zend_Json * @group Zend_Json_Server */ -#[AllowDynamicProperties] class Zend_Json_ServerTest extends TestCase { + /** + * @var \Zend_Json_Server|mixed + */ + protected $server; + /** * Runs the test methods of this class. * From 7a3813adaeb15515effa85b894b28ec66920eea4 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:42 +0700 Subject: [PATCH 17/36] Add missing properties to classes tests/Zend/Loader/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Loader/AllTests.php --- tests/Zend/Loader/Autoloader/ResourceTest.php | 26 +++++++++++- tests/Zend/Loader/AutoloaderFactoryTest.php | 11 ++++- .../Loader/AutoloaderMultiVersionTest.php | 41 ++++++++++++++++++- tests/Zend/Loader/AutoloaderTest.php | 21 +++++++++- tests/Zend/Loader/ClassMapAutoloaderTest.php | 11 ++++- tests/Zend/Loader/PluginLoaderTest.php | 11 ++++- tests/Zend/Loader/StandardAutoloaderTest.php | 11 ++++- 7 files changed, 125 insertions(+), 7 deletions(-) diff --git a/tests/Zend/Loader/Autoloader/ResourceTest.php b/tests/Zend/Loader/Autoloader/ResourceTest.php index 7f7708ff86..fbbe15f645 100644 --- a/tests/Zend/Loader/Autoloader/ResourceTest.php +++ b/tests/Zend/Loader/Autoloader/ResourceTest.php @@ -55,9 +55,33 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Loader */ -#[AllowDynamicProperties] class Zend_Loader_Autoloader_ResourceTest extends TestCase { + /** + * @var mixed[]|mixed + */ + protected $loaders; + + /** + * @var string|bool|mixed + */ + protected $includePath; + + /** + * @var \Zend_Loader_Autoloader + */ + protected $autoloader; + + /** + * @var null + */ + protected $error; + + /** + * @var \Zend_Loader_Autoloader_Resource|mixed + */ + protected $loader; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/Loader/AutoloaderFactoryTest.php b/tests/Zend/Loader/AutoloaderFactoryTest.php index 3bb0df29a9..8c54f3737d 100644 --- a/tests/Zend/Loader/AutoloaderFactoryTest.php +++ b/tests/Zend/Loader/AutoloaderFactoryTest.php @@ -43,9 +43,18 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Loader */ -#[AllowDynamicProperties] class Zend_Loader_AutoloaderFactoryTest extends TestCase { + /** + * @var mixed[]|mixed + */ + protected $loaders; + + /** + * @var string|bool|mixed + */ + protected $includePath; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/Loader/AutoloaderMultiVersionTest.php b/tests/Zend/Loader/AutoloaderMultiVersionTest.php index dc173fe54b..f6b1ca19d7 100644 --- a/tests/Zend/Loader/AutoloaderMultiVersionTest.php +++ b/tests/Zend/Loader/AutoloaderMultiVersionTest.php @@ -42,9 +42,48 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Loader */ -#[AllowDynamicProperties] class Zend_Loader_AutoloaderMultiVersionTest extends TestCase { + /** + * @var mixed[]|mixed + */ + protected $loaders; + + /** + * @var string|bool|mixed + */ + protected $includePath; + + /** + * @var mixed + */ + protected $path; + + /** + * @var mixed + */ + protected $latest; + + /** + * @var mixed + */ + protected $latestMajor; + + /** + * @var mixed + */ + protected $latestMinor; + + /** + * @var mixed + */ + protected $specific; + + /** + * @var \Zend_Loader_Autoloader|mixed + */ + protected $autoloader; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/Loader/AutoloaderTest.php b/tests/Zend/Loader/AutoloaderTest.php index 80f8722da8..ce6255a423 100644 --- a/tests/Zend/Loader/AutoloaderTest.php +++ b/tests/Zend/Loader/AutoloaderTest.php @@ -47,9 +47,28 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Loader */ -#[AllowDynamicProperties] class Zend_Loader_AutoloaderTest extends TestCase { + /** + * @var mixed[]|mixed + */ + protected $loaders; + + /** + * @var string|bool|mixed + */ + protected $includePath; + + /** + * @var \Zend_Loader_Autoloader|mixed + */ + protected $autoloader; + + /** + * @var null|mixed + */ + protected $error; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/Loader/ClassMapAutoloaderTest.php b/tests/Zend/Loader/ClassMapAutoloaderTest.php index 051cd682b2..553b81fb26 100644 --- a/tests/Zend/Loader/ClassMapAutoloaderTest.php +++ b/tests/Zend/Loader/ClassMapAutoloaderTest.php @@ -39,9 +39,18 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Loader */ -#[AllowDynamicProperties] class Zend_Loader_ClassMapAutoloaderTest extends TestCase { + /** + * @var mixed[]|mixed + */ + protected $loaders; + + /** + * @var string|bool|mixed + */ + protected $includePath; + /** * @var Zend_Loader_ClassMapAutoloader */ diff --git a/tests/Zend/Loader/PluginLoaderTest.php b/tests/Zend/Loader/PluginLoaderTest.php index f3cbd6e1f8..775bafdc87 100644 --- a/tests/Zend/Loader/PluginLoaderTest.php +++ b/tests/Zend/Loader/PluginLoaderTest.php @@ -42,9 +42,18 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Loader */ -#[AllowDynamicProperties] class Zend_Loader_PluginLoaderTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $libPath; + + /** + * @var null|mixed|string + */ + protected $key; + protected $_includeCache; /** diff --git a/tests/Zend/Loader/StandardAutoloaderTest.php b/tests/Zend/Loader/StandardAutoloaderTest.php index aa785493b0..673b096b18 100644 --- a/tests/Zend/Loader/StandardAutoloaderTest.php +++ b/tests/Zend/Loader/StandardAutoloaderTest.php @@ -38,9 +38,18 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Loader */ -#[AllowDynamicProperties] class Zend_Loader_StandardAutoloaderTest extends TestCase { + /** + * @var mixed[]|mixed + */ + protected $loaders; + + /** + * @var string|bool|mixed + */ + protected $includePath; + protected function setUp(): void { // Store original autoloaders From 321e26d23a468ff48307e9ad5f34e1c172cbdd30 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:42 +0700 Subject: [PATCH 18/36] Add missing properties to classes tests/Zend/Log/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Log/AllTests.php --- tests/Zend/Log/Filter/ChainingTest.php | 11 ++++++++++- tests/Zend/Log/Filter/SuppressTest.php | 6 +++++- tests/Zend/Log/LogTest.php | 21 ++++++++++++++++++++- tests/Zend/Log/Writer/DbTest.php | 16 +++++++++++++++- 4 files changed, 50 insertions(+), 4 deletions(-) diff --git a/tests/Zend/Log/Filter/ChainingTest.php b/tests/Zend/Log/Filter/ChainingTest.php index fff177d05c..4fcd2a4cad 100644 --- a/tests/Zend/Log/Filter/ChainingTest.php +++ b/tests/Zend/Log/Filter/ChainingTest.php @@ -43,9 +43,18 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Log */ -#[AllowDynamicProperties] class Zend_Log_Filter_ChainingTest extends TestCase { + /** + * @var resource|bool|mixed + */ + protected $log; + + /** + * @var \Zend_Log|mixed + */ + protected $logger; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/Log/Filter/SuppressTest.php b/tests/Zend/Log/Filter/SuppressTest.php index cb9f26f2e8..36ccf4a4fa 100644 --- a/tests/Zend/Log/Filter/SuppressTest.php +++ b/tests/Zend/Log/Filter/SuppressTest.php @@ -43,9 +43,13 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Log */ -#[AllowDynamicProperties] class Zend_Log_Filter_SuppressTest extends TestCase { + /** + * @var \Zend_Log_Filter_Suppress|mixed + */ + protected $filter; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/Log/LogTest.php b/tests/Zend/Log/LogTest.php index 10f7c8c6c7..95d087a12b 100644 --- a/tests/Zend/Log/LogTest.php +++ b/tests/Zend/Log/LogTest.php @@ -49,9 +49,28 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Log */ -#[AllowDynamicProperties] class Zend_Log_LogTest extends TestCase { + /** + * @var resource|bool|mixed + */ + protected $log; + + /** + * @var \Zend_Log_Writer_Stream|mixed + */ + protected $writer; + + /** + * @var \Zend_Log_Writer_Mock|mixed + */ + protected $errWriter; + + /** + * @var bool|mixed + */ + protected $expectingLogging; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/Log/Writer/DbTest.php b/tests/Zend/Log/Writer/DbTest.php index 1c28b89f4e..c9a883f6df 100644 --- a/tests/Zend/Log/Writer/DbTest.php +++ b/tests/Zend/Log/Writer/DbTest.php @@ -41,9 +41,23 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Log */ -#[AllowDynamicProperties] class Zend_Log_Writer_DbTest extends TestCase { + /** + * @var string|mixed + */ + protected $tableName; + + /** + * @var \Zend_Log_Writer_DbTest_MockDbAdapter|mixed + */ + protected $db; + + /** + * @var \Zend_Log_Writer_Db|mixed + */ + protected $writer; + public static function main() { $suite = new TestSuite(__CLASS__); From a1c160fa8e32b82e6df13c9d01a5c63dea2af309 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:42 +0700 Subject: [PATCH 19/36] Add missing properties to classes tests/Zend/Mail/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Mail/AllTests.php --- tests/Zend/Mail/FileTransportTest.php | 5 ++++- tests/Zend/Mail/MboxMessageOldTest.php | 2 +- tests/Zend/Mail/MboxTest.php | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/Zend/Mail/FileTransportTest.php b/tests/Zend/Mail/FileTransportTest.php index 90680ab54b..1a4780df41 100644 --- a/tests/Zend/Mail/FileTransportTest.php +++ b/tests/Zend/Mail/FileTransportTest.php @@ -41,9 +41,12 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Mail */ -#[AllowDynamicProperties] class Zend_Mail_FileTransportTest extends TestCase { + /** + * @var bool|mixed + */ + protected $createdTmpDir; protected $_params; protected $_transport; protected $_tmpdir; diff --git a/tests/Zend/Mail/MboxMessageOldTest.php b/tests/Zend/Mail/MboxMessageOldTest.php index 84126d95e5..1e80323f9a 100644 --- a/tests/Zend/Mail/MboxMessageOldTest.php +++ b/tests/Zend/Mail/MboxMessageOldTest.php @@ -96,7 +96,7 @@ protected function setUp(): void protected function tearDown(): void { - unlink($this->_mboxFile); + unlink((string) $this->_mboxFile); } public function testFetchHeader() diff --git a/tests/Zend/Mail/MboxTest.php b/tests/Zend/Mail/MboxTest.php index 5ec95d8c36..786ebd9ab1 100644 --- a/tests/Zend/Mail/MboxTest.php +++ b/tests/Zend/Mail/MboxTest.php @@ -79,7 +79,7 @@ protected function setUp(): void protected function tearDown(): void { - unlink($this->_mboxFile); + unlink((string) $this->_mboxFile); } /** @doesNotPerformAssertions */ public function testLoadOk() From aa321dd2d44d6c5081a8f05a2e14b357425e738b Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:43 +0700 Subject: [PATCH 20/36] Add missing properties to classes tests/Zend/Measure/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Measure/AllTests.php --- tests/Zend/Measure/TemperatureTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Zend/Measure/TemperatureTest.php b/tests/Zend/Measure/TemperatureTest.php index d7ce302718..6338a1d589 100644 --- a/tests/Zend/Measure/TemperatureTest.php +++ b/tests/Zend/Measure/TemperatureTest.php @@ -49,6 +49,11 @@ */ class Zend_Measure_TemperatureTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $_locale; + public static function main() { $suite = new TestSuite(__CLASS__); From a7e83c55218ad41592a0fbd146bc22275bdf6e3b Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:43 +0700 Subject: [PATCH 21/36] Add missing properties to classes tests/Zend/Mobile/Push/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Mobile/Push/AllTests.php --- tests/Zend/Mobile/Push/AbstractTest.php | 6 +++++- tests/Zend/Mobile/Push/ApnsTest.php | 10 ++++++++++ tests/Zend/Mobile/Push/GcmTest.php | 20 +++++++++++++++++++ .../Zend/Mobile/Push/Message/AbstractTest.php | 5 +++++ tests/Zend/Mobile/Push/Message/ApnsTest.php | 5 +++++ tests/Zend/Mobile/Push/MpnsTest.php | 15 ++++++++++++++ 6 files changed, 60 insertions(+), 1 deletion(-) diff --git a/tests/Zend/Mobile/Push/AbstractTest.php b/tests/Zend/Mobile/Push/AbstractTest.php index 4df3efc513..12777230d4 100644 --- a/tests/Zend/Mobile/Push/AbstractTest.php +++ b/tests/Zend/Mobile/Push/AbstractTest.php @@ -36,9 +36,13 @@ * @group Zend_Mobile_Push * @group Zend_Mobile_Push_Abstract */ - class Zend_Mobile_Push_AbstractTest extends TestCase { + /** + * @var \Zend_Mobile_Push_AbstractProxy|mixed + */ + protected $adapter; + protected function setUp(): void { $this->adapter = new Zend_Mobile_Push_AbstractProxy(); diff --git a/tests/Zend/Mobile/Push/ApnsTest.php b/tests/Zend/Mobile/Push/ApnsTest.php index d797281f76..2027b69334 100644 --- a/tests/Zend/Mobile/Push/ApnsTest.php +++ b/tests/Zend/Mobile/Push/ApnsTest.php @@ -38,6 +38,16 @@ */ class Zend_Mobile_Push_ApnsTest extends TestCase { + /** + * @var \Zend_Mobile_Push_Test_ApnsProxy|mixed + */ + protected $apns; + + /** + * @var \Zend_Mobile_Push_Message_Apns|mixed + */ + protected $message; + protected function setUp(): void { $this->apns = new Zend_Mobile_Push_Test_ApnsProxy(); diff --git a/tests/Zend/Mobile/Push/GcmTest.php b/tests/Zend/Mobile/Push/GcmTest.php index 48c15688fc..05e3af210d 100644 --- a/tests/Zend/Mobile/Push/GcmTest.php +++ b/tests/Zend/Mobile/Push/GcmTest.php @@ -39,6 +39,26 @@ */ class Zend_Mobile_Push_gcmTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + + /** + * @var \Zend_Http_Client|mixed + */ + protected $client; + + /** + * @var \Zend_Mobile_Push_Gcm|mixed + */ + protected $gcm; + + /** + * @var \Zend_Mobile_Push_Message_Gcm|mixed + */ + protected $message; + protected function _createJSONResponse($id, $success, $failure, $ids, $results) { return json_encode([ diff --git a/tests/Zend/Mobile/Push/Message/AbstractTest.php b/tests/Zend/Mobile/Push/Message/AbstractTest.php index 207dd16261..d0b85f9ae9 100644 --- a/tests/Zend/Mobile/Push/Message/AbstractTest.php +++ b/tests/Zend/Mobile/Push/Message/AbstractTest.php @@ -35,6 +35,11 @@ */ class Zend_Mobile_Push_Message_AbstractTest extends TestCase { + /** + * @var \Zend_Mobile_Push_Message_AbstractProxy|mixed + */ + protected $msg; + protected function setUp(): void { $this->msg = new Zend_Mobile_Push_Message_AbstractProxy(); diff --git a/tests/Zend/Mobile/Push/Message/ApnsTest.php b/tests/Zend/Mobile/Push/Message/ApnsTest.php index 3bf1175b1a..1e1ce23323 100644 --- a/tests/Zend/Mobile/Push/Message/ApnsTest.php +++ b/tests/Zend/Mobile/Push/Message/ApnsTest.php @@ -37,6 +37,11 @@ */ class Zend_Mobile_Push_Message_ApnsTest extends TestCase { + /** + * @var \Zend_Mobile_Push_Message_Apns|mixed + */ + protected $message; + protected function setUp(): void { $this->message = new Zend_Mobile_Push_Message_Apns(); diff --git a/tests/Zend/Mobile/Push/MpnsTest.php b/tests/Zend/Mobile/Push/MpnsTest.php index 3c04791aa0..1d384af6d4 100644 --- a/tests/Zend/Mobile/Push/MpnsTest.php +++ b/tests/Zend/Mobile/Push/MpnsTest.php @@ -42,6 +42,21 @@ */ class Zend_Mobile_Push_MpnsTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + + /** + * @var \Zend_Http_Client|mixed + */ + protected $client; + + /** + * @var \Zend_Mobile_Push_Mpns|mixed + */ + protected $mpns; + protected function setUp(): void { $this->adapter = new Zend_Http_Client_Adapter_Test(); From 672731c9aaf194a4fefdd942fb6572b1fc8209df Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:43 +0700 Subject: [PATCH 22/36] Add missing properties to classes tests/Zend/Oauth/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Oauth/AllTests.php --- tests/Zend/Oauth/ClientTest.php | 5 +++++ tests/Zend/Oauth/ConfigTest.php | 5 +++++ tests/Zend/Oauth/Oauth/Http/AccessTokenTest.php | 5 +++++ tests/Zend/Oauth/Oauth/Http/RequestTokenTest.php | 10 ++++++++++ 4 files changed, 25 insertions(+) diff --git a/tests/Zend/Oauth/ClientTest.php b/tests/Zend/Oauth/ClientTest.php index d203a5d1e7..97b4c751b6 100644 --- a/tests/Zend/Oauth/ClientTest.php +++ b/tests/Zend/Oauth/ClientTest.php @@ -45,6 +45,11 @@ public function getSignableParametersAsQueryString() */ class Zend_Oauth_ClientTest extends TestCase { + /** + * @var \Zend_Oauth_Client|mixed + */ + protected $client; + protected function setUp(): void { $this->client = new Zend_Oauth_Client([]); diff --git a/tests/Zend/Oauth/ConfigTest.php b/tests/Zend/Oauth/ConfigTest.php index efc5ef64a1..2eec8a3b8f 100644 --- a/tests/Zend/Oauth/ConfigTest.php +++ b/tests/Zend/Oauth/ConfigTest.php @@ -36,6 +36,11 @@ */ class Zend_Oauth_ConfigTest extends TestCase { + /** + * @var \Zend_Oauth_Config|mixed + */ + protected $config; + protected function setUp(): void { $this->config = new Zend_Oauth_Config(); diff --git a/tests/Zend/Oauth/Oauth/Http/AccessTokenTest.php b/tests/Zend/Oauth/Oauth/Http/AccessTokenTest.php index 46489f48ce..a4e6f897b7 100644 --- a/tests/Zend/Oauth/Oauth/Http/AccessTokenTest.php +++ b/tests/Zend/Oauth/Oauth/Http/AccessTokenTest.php @@ -36,6 +36,11 @@ */ class Zend_Oauth_Http_AccessTokenTest extends TestCase { + /** + * @var \Test_Http_Utility_39745|mixed + */ + protected $stubHttpUtility; + protected $stubConsumer = null; protected function setUp(): void diff --git a/tests/Zend/Oauth/Oauth/Http/RequestTokenTest.php b/tests/Zend/Oauth/Oauth/Http/RequestTokenTest.php index 0932f9a438..1917a43334 100644 --- a/tests/Zend/Oauth/Oauth/Http/RequestTokenTest.php +++ b/tests/Zend/Oauth/Oauth/Http/RequestTokenTest.php @@ -36,6 +36,16 @@ */ class Zend_Oauth_Http_RequestTokenTest extends TestCase { + /** + * @var \Test_Consumer_32874b|mixed + */ + protected $stubConsumer2; + + /** + * @var \Test_Http_Utility_32874|mixed + */ + protected $stubHttpUtility; + protected $stubConsumer = null; protected function setUp(): void From e95455c426a3b6c7161380c2fad69c9673185e14 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:44 +0700 Subject: [PATCH 23/36] Add missing properties to classes tests/Zend/OpenId/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/OpenId/AllTests.php --- tests/Zend/OpenId/Provider/User/SessionTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Zend/OpenId/Provider/User/SessionTest.php b/tests/Zend/OpenId/Provider/User/SessionTest.php index 42bd4784cb..b80d5ec68b 100644 --- a/tests/Zend/OpenId/Provider/User/SessionTest.php +++ b/tests/Zend/OpenId/Provider/User/SessionTest.php @@ -39,6 +39,16 @@ */ class Zend_OpenId_Provider_User_SessionTest extends TestCase { + /** + * @var \Zend_OpenId_Provider_User_Session|mixed + */ + protected $_user1; + + /** + * @var \Zend_OpenId_Provider_User_Session|mixed + */ + protected $_user2; + public const USER1 = "test_user1"; public const USER2 = "test_user2"; From 29fc44b4c8650f3e0898ea0e0c5d1da113907fe2 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:44 +0700 Subject: [PATCH 24/36] Add missing properties to classes tests/Zend/Queue/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Queue/AllTests.php --- tests/Zend/Queue/Custom/DbForUpdate.php | 2 ++ tests/Zend/Queue/QueueTest.php | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/tests/Zend/Queue/Custom/DbForUpdate.php b/tests/Zend/Queue/Custom/DbForUpdate.php index 12d98a62a3..a7dbdd6716 100644 --- a/tests/Zend/Queue/Custom/DbForUpdate.php +++ b/tests/Zend/Queue/Custom/DbForUpdate.php @@ -40,6 +40,8 @@ */ class Custom_DbForUpdate extends Zend_Queue_Adapter_Db { + protected $_msg_table; + /** * Return the first element in the queue * diff --git a/tests/Zend/Queue/QueueTest.php b/tests/Zend/Queue/QueueTest.php index 6d9d9d4043..509565174a 100644 --- a/tests/Zend/Queue/QueueTest.php +++ b/tests/Zend/Queue/QueueTest.php @@ -50,6 +50,16 @@ */ class Zend_Queue_QueueTest extends TestCase { + /** + * @var array|array|mixed|array + */ + protected $config; + + /** + * @var \Zend_Queue|mixed + */ + protected $queue; + protected function setUp(): void { // Test Zend_Config From 4ff63b714e3a881ed5a5d997bf4f7426cb1c2de2 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:44 +0700 Subject: [PATCH 25/36] Add missing properties to classes tests/Zend/Stdlib/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Stdlib/AllTests.php --- tests/Zend/Stdlib/AllTests.php | 2 +- tests/Zend/Stdlib/CallbackHandlerTest.php | 10 ++++++++++ tests/Zend/Stdlib/PriorityQueueTest.php | 5 +++++ tests/Zend/Stdlib/SplPriorityQueueTest.php | 5 +++++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/tests/Zend/Stdlib/AllTests.php b/tests/Zend/Stdlib/AllTests.php index 486d556c1f..f06ea5c09d 100644 --- a/tests/Zend/Stdlib/AllTests.php +++ b/tests/Zend/Stdlib/AllTests.php @@ -40,7 +40,7 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Stdlib */ -class Zend_EventManager_AllTests +class Zend_Stdlib_AllTests { public static function main() { diff --git a/tests/Zend/Stdlib/CallbackHandlerTest.php b/tests/Zend/Stdlib/CallbackHandlerTest.php index 2dd597ab9f..e614c5da3c 100644 --- a/tests/Zend/Stdlib/CallbackHandlerTest.php +++ b/tests/Zend/Stdlib/CallbackHandlerTest.php @@ -44,6 +44,16 @@ */ class Zend_Stdlib_CallbackHandlerTest extends TestCase { + /** + * @var mixed|mixed[] + */ + protected $args; + + /** + * @var bool + */ + protected $error; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/Stdlib/PriorityQueueTest.php b/tests/Zend/Stdlib/PriorityQueueTest.php index 3a1fc8fbae..8cc174c23f 100644 --- a/tests/Zend/Stdlib/PriorityQueueTest.php +++ b/tests/Zend/Stdlib/PriorityQueueTest.php @@ -40,6 +40,11 @@ */ class Zend_Stdlib_PriorityQueueTest extends TestCase { + /** + * @var \Zend_Stdlib_PriorityQueue|mixed + */ + protected $queue; + public static function main() { $suite = new TestSuite(__CLASS__); diff --git a/tests/Zend/Stdlib/SplPriorityQueueTest.php b/tests/Zend/Stdlib/SplPriorityQueueTest.php index 1680ea1fe8..a8e090fffc 100644 --- a/tests/Zend/Stdlib/SplPriorityQueueTest.php +++ b/tests/Zend/Stdlib/SplPriorityQueueTest.php @@ -41,6 +41,11 @@ */ class Zend_Stdlib_SplPriorityQueueTest extends TestCase { + /** + * @var \Zend_Stdlib_SplPriorityQueue|mixed + */ + protected $queue; + public static function main() { $suite = new TestSuite(__CLASS__); From 294d67da6cbb291bc73846c67434a6e74d273ed7 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:44 +0700 Subject: [PATCH 26/36] Add missing properties to classes tests/Zend/Validate/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Validate/AllTests.php --- tests/Zend/Validate/EmailAddressTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Zend/Validate/EmailAddressTest.php b/tests/Zend/Validate/EmailAddressTest.php index 06cefbd131..241fb7a009 100644 --- a/tests/Zend/Validate/EmailAddressTest.php +++ b/tests/Zend/Validate/EmailAddressTest.php @@ -44,6 +44,11 @@ */ class Zend_Validate_EmailAddressTest extends TestCase { + /** + * @var bool + */ + protected $multipleOptionsDetected; + /** * Default instance created for all test methods * From 8ae25acf90e8a0140adca887258cca8c9a01b181 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:45 +0700 Subject: [PATCH 27/36] Add missing properties to classes tests/Zend/XmlRpc/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/XmlRpc/AllTests.php --- tests/Zend/XmlRpc/ClientTest.php | 10 ++++++++++ tests/Zend/XmlRpc/Request/HttpTest.php | 23 +++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/tests/Zend/XmlRpc/ClientTest.php b/tests/Zend/XmlRpc/ClientTest.php index f82dde9cc5..b2783c5a1f 100644 --- a/tests/Zend/XmlRpc/ClientTest.php +++ b/tests/Zend/XmlRpc/ClientTest.php @@ -47,6 +47,16 @@ */ class Zend_XmlRpc_ClientTest extends TestCase { + /** + * @var mixed|\PHPUnit\Framework\MockObject\MockObject&\Zend_XmlRpc_Client_ServerIntrospection + */ + protected $mockedIntrospector; + + /** + * @var mixed|\PHPUnit\Framework\MockObject\MockObject&\Zend_Http_Client + */ + protected $mockedHttpClient; + /** * @var Zend_Http_Client_Adapter_Abstract */ diff --git a/tests/Zend/XmlRpc/Request/HttpTest.php b/tests/Zend/XmlRpc/Request/HttpTest.php index 47a1fa4af5..ab97cc8edf 100644 --- a/tests/Zend/XmlRpc/Request/HttpTest.php +++ b/tests/Zend/XmlRpc/Request/HttpTest.php @@ -45,6 +45,21 @@ */ class Zend_XmlRpc_Request_HttpTest extends TestCase { + /** + * @var string|mixed + */ + protected $xml; + + /** + * @var \Zend_XmlRpc_Request_Http|mixed + */ + protected $request; + + /** + * @var array|mixed + */ + protected $server; + /** * Runs the test methods of this class. * @@ -189,6 +204,14 @@ public function testHttpRequestGeneratesFaultIfReadFromPhpInputFails() class Zend_XmlRpc_Request_HttpTest_Extension extends Zend_XmlRpc_Request_Http { + /** + * @var string|null + */ + protected $method; + /** + * @var mixed[] + */ + protected $params; public function __construct($method = null, $params = null) { $this->method = $method; From e7f32a54e13be00ea5ae3076067f9e65fbe5e5a4 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:45 +0700 Subject: [PATCH 28/36] Add missing properties to classes tests/Zend/View/Helper/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/View/Helper/AllTests.php --- tests/Zend/View/Helper/AttributeJsEscapingTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Zend/View/Helper/AttributeJsEscapingTest.php b/tests/Zend/View/Helper/AttributeJsEscapingTest.php index ce3bad1d14..d239f089d0 100644 --- a/tests/Zend/View/Helper/AttributeJsEscapingTest.php +++ b/tests/Zend/View/Helper/AttributeJsEscapingTest.php @@ -47,6 +47,16 @@ */ class Zend_View_Helper_AttributeJsEscapingTest extends TestCase { + /** + * @var \Zend_View|mixed + */ + protected $view; + + /** + * @var \Zend_View_Helper_FormSubmit|mixed + */ + protected $helper; + /** * Runs the test methods of this class. * From 645b0f5563e18b47e4aaadc1597a55581a69a106 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:45 +0700 Subject: [PATCH 29/36] Add missing properties to classes tests/Zend/CurrencyTest.php PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/CurrencyTest.php --- tests/Zend/CurrencyTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/Zend/CurrencyTest.php b/tests/Zend/CurrencyTest.php index c5ad7ca8d7..78f249896e 100644 --- a/tests/Zend/CurrencyTest.php +++ b/tests/Zend/CurrencyTest.php @@ -38,9 +38,13 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Currency */ -#[AllowDynamicProperties] class Zend_CurrencyTest extends TestCase { + /** + * @var \Zend_Cache_Core|mixed + */ + protected $_cache; + protected function setUp(): void { require_once 'Zend/Cache.php'; From dd450081d35faf0b912d9a100a6919c164d74fd3 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:45 +0700 Subject: [PATCH 30/36] Add missing properties to classes tests/Zend/DateTest.php PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/DateTest.php --- tests/Zend/DateTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/Zend/DateTest.php b/tests/Zend/DateTest.php index 8526f11b90..f6baf4a86c 100644 --- a/tests/Zend/DateTest.php +++ b/tests/Zend/DateTest.php @@ -56,9 +56,13 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Date */ -#[AllowDynamicProperties] class Zend_DateTest extends TestCase { + /** + * @var string|mixed + */ + protected $originalTimezone; + private $_cache = null; private $_orig = []; From d26f34a55a2a7e07ea7cc4e1a26a48fa2709ff90 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:46 +0700 Subject: [PATCH 31/36] Add missing properties to classes tests/Zend/FilterTest.php PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/FilterTest.php --- tests/Zend/FilterTest.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/Zend/FilterTest.php b/tests/Zend/FilterTest.php index acbefafbe3..2c5379c239 100644 --- a/tests/Zend/FilterTest.php +++ b/tests/Zend/FilterTest.php @@ -37,9 +37,18 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Filter */ -#[AllowDynamicProperties] class Zend_FilterTest extends TestCase { + /** + * @var null|bool + */ + protected $error; + + /** + * @var bool + */ + protected $_errorOccurred; + /** * Zend_Filter object * From fe4b1b6b15b2160449f7f0203256e9376b325a41 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:46 +0700 Subject: [PATCH 32/36] Add missing properties to classes tests/Zend/LoaderTest.php PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/LoaderTest.php --- tests/Zend/LoaderTest.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/tests/Zend/LoaderTest.php b/tests/Zend/LoaderTest.php index 5df66b6dd9..c5c89bbd5f 100644 --- a/tests/Zend/LoaderTest.php +++ b/tests/Zend/LoaderTest.php @@ -48,9 +48,28 @@ * @license http://framework.zend.com/license/new-bsd New BSD License * @group Zend_Loader */ -#[AllowDynamicProperties] class Zend_LoaderTest extends TestCase { + /** + * @var mixed[]|mixed + */ + protected $loaders; + + /** + * @var string|bool|mixed + */ + protected $includePath; + + /** + * @var null|mixed + */ + protected $error; + + /** + * @var null|mixed|bool + */ + protected $errorHandler; + /** * Runs the test methods of this class. * From 44df8d77dca292050fd8b79b2ac793f6cc9cce41 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:46 +0700 Subject: [PATCH 33/36] Add missing properties to classes tests/Zend/ValidateTest.php PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/ValidateTest.php --- tests/Zend/ValidateTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Zend/ValidateTest.php b/tests/Zend/ValidateTest.php index 6de648408e..d7cef6369d 100644 --- a/tests/Zend/ValidateTest.php +++ b/tests/Zend/ValidateTest.php @@ -48,6 +48,11 @@ */ class Zend_ValidateTest extends TestCase { + /** + * @var bool + */ + protected $error; + /** * @var bool */ From 0584ebcc7bc6c1065d21af78012537321fa62508 Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:47 +0700 Subject: [PATCH 34/36] Add missing properties to classes tests/Zend/Gdata/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Gdata/AllTests.php --- .../Zend/Gdata/Analytics/AccountQueryTest.php | 5 +++ tests/Zend/Gdata/App/AuthorTest.php | 10 +++++ .../App/CaptchaRequiredExceptionTest.php | 5 +++ tests/Zend/Gdata/App/CategoryTest.php | 10 +++++ tests/Zend/Gdata/App/ContentTest.php | 15 +++++++ tests/Zend/Gdata/App/ControlTest.php | 10 +++++ tests/Zend/Gdata/App/EntryTest.php | 24 ++++++++++ tests/Zend/Gdata/App/FeedTest.php | 10 +++++ tests/Zend/Gdata/App/GeneratorTest.php | 10 +++++ tests/Zend/Gdata/App/HttpExceptionTest.php | 15 +++++++ tests/Zend/Gdata/AppTest.php | 40 +++++++++++++++++ tests/Zend/Gdata/AttendeeStatusTest.php | 10 +++++ tests/Zend/Gdata/AttendeeTypeTest.php | 10 +++++ .../Zend/Gdata/Books/CollectionEntryTest.php | 5 +++ tests/Zend/Gdata/Books/CollectionFeedTest.php | 5 +++ tests/Zend/Gdata/Books/VolumeEntryTest.php | 10 +++++ tests/Zend/Gdata/Books/VolumeFeedTest.php | 10 +++++ tests/Zend/Gdata/BooksOnlineTest.php | 5 +++ tests/Zend/Gdata/BooksTest.php | 5 +++ tests/Zend/Gdata/Calendar/AccessLevelTest.php | 10 +++++ tests/Zend/Gdata/Calendar/ColorTest.php | 10 +++++ tests/Zend/Gdata/Calendar/EventEntryTest.php | 10 +++++ .../Calendar/EventQueryExceptionTest.php | 5 +++ tests/Zend/Gdata/Calendar/EventQueryTest.php | 4 ++ tests/Zend/Gdata/Calendar/HiddenTest.php | 10 +++++ tests/Zend/Gdata/Calendar/LinkTest.php | 10 +++++ tests/Zend/Gdata/Calendar/QuickAddTest.php | 10 +++++ tests/Zend/Gdata/Calendar/SelectedTest.php | 10 +++++ .../Calendar/SendEventNotificationsTest.php | 10 +++++ tests/Zend/Gdata/Calendar/TimezoneTest.php | 10 +++++ tests/Zend/Gdata/Calendar/WebContentTest.php | 10 +++++ tests/Zend/Gdata/CalendarOnlineTest.php | 5 +++ tests/Zend/Gdata/CalendarTest.php | 9 ++++ tests/Zend/Gdata/CommentsTest.php | 9 ++++ .../Zend/Gdata/Docs/DocumentListEntryTest.php | 10 +++++ .../Zend/Gdata/Docs/DocumentListFeedTest.php | 5 +++ tests/Zend/Gdata/Docs/QueryTest.php | 5 +++ tests/Zend/Gdata/DocsOnlineTest.php | 9 ++++ tests/Zend/Gdata/DocsTest.php | 13 ++++++ tests/Zend/Gdata/EntryLinkTest.php | 9 ++++ tests/Zend/Gdata/EntryTest.php | 40 +++++++++++++++++ tests/Zend/Gdata/EventStatusTest.php | 10 +++++ tests/Zend/Gdata/ExtendedPropertyTest.php | 10 +++++ tests/Zend/Gdata/FeedLinkTest.php | 9 ++++ tests/Zend/Gdata/FeedTest.php | 45 +++++++++++++++++++ tests/Zend/Gdata/Gapps/EmailListEntryTest.php | 10 +++++ tests/Zend/Gdata/Gapps/EmailListFeedTest.php | 5 +++ tests/Zend/Gdata/Gapps/EmailListQueryTest.php | 5 +++ .../Gapps/EmailListRecipientEntryTest.php | 10 +++++ .../Gapps/EmailListRecipientFeedTest.php | 5 +++ .../Gapps/EmailListRecipientQueryTest.php | 5 +++ tests/Zend/Gdata/Gapps/EmailListTest.php | 10 +++++ tests/Zend/Gdata/Gapps/ErrorTest.php | 5 +++ tests/Zend/Gdata/Gapps/GroupEntryTest.php | 10 +++++ tests/Zend/Gdata/Gapps/GroupFeedTest.php | 5 +++ tests/Zend/Gdata/Gapps/GroupQueryTest.php | 5 +++ tests/Zend/Gdata/Gapps/LoginTest.php | 10 +++++ tests/Zend/Gdata/Gapps/MemberEntryTest.php | 10 +++++ tests/Zend/Gdata/Gapps/MemberFeedTest.php | 5 +++ tests/Zend/Gdata/Gapps/MemberQueryTest.php | 5 +++ tests/Zend/Gdata/Gapps/NameTest.php | 10 +++++ tests/Zend/Gdata/Gapps/NicknameEntryTest.php | 10 +++++ tests/Zend/Gdata/Gapps/NicknameFeedTest.php | 5 +++ tests/Zend/Gdata/Gapps/NicknameQueryTest.php | 5 +++ tests/Zend/Gdata/Gapps/NicknameTest.php | 10 +++++ tests/Zend/Gdata/Gapps/OwnerEntryTest.php | 10 +++++ tests/Zend/Gdata/Gapps/OwnerFeedTest.php | 5 +++ tests/Zend/Gdata/Gapps/OwnerQueryTest.php | 5 +++ tests/Zend/Gdata/Gapps/PropertyTest.php | 10 +++++ tests/Zend/Gdata/Gapps/QuotaTest.php | 10 +++++ .../Zend/Gdata/Gapps/ServiceExceptionTest.php | 5 +++ tests/Zend/Gdata/Gapps/UserEntryTest.php | 10 +++++ tests/Zend/Gdata/Gapps/UserFeedTest.php | 5 +++ tests/Zend/Gdata/Gapps/UserQueryTest.php | 5 +++ tests/Zend/Gdata/GappsOnlineTest.php | 17 +++++++ tests/Zend/Gdata/GappsTest.php | 5 +++ tests/Zend/Gdata/GdataOnlineTest.php | 5 +++ tests/Zend/Gdata/MediaMimeStreamTest.php | 25 +++++++++++ .../Zend/Gdata/OpenSearchItemsPerPageTest.php | 10 +++++ tests/Zend/Gdata/OpenSearchStartIndexTest.php | 10 +++++ .../Zend/Gdata/OpenSearchTotalResultsTest.php | 10 +++++ tests/Zend/Gdata/OriginalEventTest.php | 10 +++++ tests/Zend/Gdata/RecurrenceExceptionTest.php | 10 +++++ tests/Zend/Gdata/RecurrenceTest.php | 10 +++++ tests/Zend/Gdata/ReminderTest.php | 10 +++++ .../Zend/Gdata/Spreadsheets/CellEntryTest.php | 5 +++ .../Zend/Gdata/Spreadsheets/CellFeedTest.php | 5 +++ .../Zend/Gdata/Spreadsheets/CellQueryTest.php | 5 +++ tests/Zend/Gdata/Spreadsheets/CellTest.php | 5 +++ .../Zend/Gdata/Spreadsheets/ColCountTest.php | 5 +++ tests/Zend/Gdata/Spreadsheets/CustomTest.php | 5 +++ .../Gdata/Spreadsheets/DocumentQueryTest.php | 5 +++ .../Zend/Gdata/Spreadsheets/ListEntryTest.php | 10 +++++ .../Zend/Gdata/Spreadsheets/ListFeedTest.php | 5 +++ .../Zend/Gdata/Spreadsheets/ListQueryTest.php | 5 +++ .../Zend/Gdata/Spreadsheets/RowCountTest.php | 5 +++ .../Spreadsheets/SpreadsheetFeedTest.php | 5 +++ .../Gdata/Spreadsheets/WorksheetEntryTest.php | 5 +++ .../Gdata/Spreadsheets/WorksheetFeedTest.php | 5 +++ tests/Zend/Gdata/SpreadsheetsOnlineTest.php | 15 +++++++ tests/Zend/Gdata/SpreadsheetsTest.php | 5 +++ .../Zend/Gdata/TestUtility/MockHttpClient.php | 2 +- tests/Zend/Gdata/TransparencyTest.php | 10 +++++ tests/Zend/Gdata/VisibilityTest.php | 10 +++++ tests/Zend/Gdata/WhenTest.php | 10 +++++ tests/Zend/Gdata/WhereTest.php | 10 +++++ tests/Zend/Gdata/WhoTest.php | 10 +++++ 107 files changed, 989 insertions(+), 1 deletion(-) diff --git a/tests/Zend/Gdata/Analytics/AccountQueryTest.php b/tests/Zend/Gdata/Analytics/AccountQueryTest.php index c7532f913e..f49671823b 100644 --- a/tests/Zend/Gdata/Analytics/AccountQueryTest.php +++ b/tests/Zend/Gdata/Analytics/AccountQueryTest.php @@ -36,6 +36,11 @@ */ class Zend_GData_Analytics_AccountQueryTest extends TestCase { + /** + * @var string|mixed + */ + protected $queryBase; + /** * @var Zend_GData_Analytics_AccountQuery */ diff --git a/tests/Zend/Gdata/App/AuthorTest.php b/tests/Zend/Gdata/App/AuthorTest.php index aacec2970e..01d6f91f1e 100644 --- a/tests/Zend/Gdata/App/AuthorTest.php +++ b/tests/Zend/Gdata/App/AuthorTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_App_AuthorTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $authorText; + + /** + * @var \Zend_Gdata_App_Extension_Author|mixed + */ + protected $author; + protected function setUp(): void { $this->authorText = file_get_contents( diff --git a/tests/Zend/Gdata/App/CaptchaRequiredExceptionTest.php b/tests/Zend/Gdata/App/CaptchaRequiredExceptionTest.php index c2ef27f17d..ac7727e43d 100644 --- a/tests/Zend/Gdata/App/CaptchaRequiredExceptionTest.php +++ b/tests/Zend/Gdata/App/CaptchaRequiredExceptionTest.php @@ -36,6 +36,11 @@ */ class Zend_Gdata_App_CaptchaRequiredExceptionTest extends TestCase { + /** + * @var \Zend_Gdata_App_CaptchaRequiredException|mixed + */ + protected $exampleException; + protected function setUp(): void { $this->exampleException = new Zend_Gdata_App_CaptchaRequiredException('testtoken', 'Captcha?ctoken=testtoken'); diff --git a/tests/Zend/Gdata/App/CategoryTest.php b/tests/Zend/Gdata/App/CategoryTest.php index ba5a96cd8d..98fd1bcef5 100644 --- a/tests/Zend/Gdata/App/CategoryTest.php +++ b/tests/Zend/Gdata/App/CategoryTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_App_CategoryTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $categoryText; + + /** + * @var \Zend_Gdata_App_Extension_Category|mixed + */ + protected $category; + protected function setUp(): void { $this->categoryText = file_get_contents( diff --git a/tests/Zend/Gdata/App/ContentTest.php b/tests/Zend/Gdata/App/ContentTest.php index 1d75efc6c9..aee8179162 100644 --- a/tests/Zend/Gdata/App/ContentTest.php +++ b/tests/Zend/Gdata/App/ContentTest.php @@ -37,6 +37,21 @@ */ class Zend_Gdata_App_ContentTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $contentText; + + /** + * @var string|bool|mixed + */ + protected $contentText2; + + /** + * @var \Zend_Gdata_App_Extension_Content|mixed + */ + protected $content; + protected function setUp(): void { $this->contentText = file_get_contents( diff --git a/tests/Zend/Gdata/App/ControlTest.php b/tests/Zend/Gdata/App/ControlTest.php index e22bc892b3..79925380b1 100644 --- a/tests/Zend/Gdata/App/ControlTest.php +++ b/tests/Zend/Gdata/App/ControlTest.php @@ -38,6 +38,16 @@ */ class Zend_Gdata_App_ControlTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $controlText; + + /** + * @var \Zend_Gdata_App_Extension_Control|mixed + */ + protected $control; + protected function setUp(): void { $this->controlText = file_get_contents( diff --git a/tests/Zend/Gdata/App/EntryTest.php b/tests/Zend/Gdata/App/EntryTest.php index e7430a0ad1..2aa5e4ed45 100644 --- a/tests/Zend/Gdata/App/EntryTest.php +++ b/tests/Zend/Gdata/App/EntryTest.php @@ -39,6 +39,30 @@ */ class Zend_Gdata_App_EntryTest extends TestCase { + protected $enryText; + + protected $httpEntrySample; + + /** + * @var \Zend_Gdata_App_Entry|mixed + */ + protected $enry; + + /** + * @var \Test_Zend_Gdata_MockHttpClient|mixed + */ + protected $adapter; + + /** + * @var \Zend_Gdata_HttpClient|mixed + */ + protected $client; + + /** + * @var \Zend_Gdata_App|mixed + */ + protected $service; + protected function setUp(): void { $this->enryText = $this->loadResponse( diff --git a/tests/Zend/Gdata/App/FeedTest.php b/tests/Zend/Gdata/App/FeedTest.php index be2f75f063..0342fe8eef 100644 --- a/tests/Zend/Gdata/App/FeedTest.php +++ b/tests/Zend/Gdata/App/FeedTest.php @@ -38,6 +38,16 @@ */ class Zend_Gdata_App_FeedTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $feedText; + + /** + * @var \Zend_Gdata_App_Feed|mixed + */ + protected $feed; + protected function setUp(): void { $this->feedText = file_get_contents( diff --git a/tests/Zend/Gdata/App/GeneratorTest.php b/tests/Zend/Gdata/App/GeneratorTest.php index a3969f633d..08cdceaf2c 100644 --- a/tests/Zend/Gdata/App/GeneratorTest.php +++ b/tests/Zend/Gdata/App/GeneratorTest.php @@ -38,6 +38,16 @@ */ class Zend_Gdata_App_GeneratorTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $generatorText; + + /** + * @var \Zend_Gdata_App_Extension_Generator|mixed + */ + protected $generator; + protected function setUp(): void { $this->generatorText = file_get_contents( diff --git a/tests/Zend/Gdata/App/HttpExceptionTest.php b/tests/Zend/Gdata/App/HttpExceptionTest.php index 43de055024..0a33a07654 100755 --- a/tests/Zend/Gdata/App/HttpExceptionTest.php +++ b/tests/Zend/Gdata/App/HttpExceptionTest.php @@ -39,6 +39,21 @@ */ class Zend_Gdata_App_HttpExceptionTest extends TestCase { + /** + * @var mixed + */ + protected $sprKey; + + /** + * @var mixed + */ + protected $wksId; + + /** + * @var \Zend_Gdata_Spreadsheets|mixed + */ + protected $gdata; + protected function setUp(): void { $user = constant('TESTS_ZEND_GDATA_CLIENTLOGIN_EMAIL'); diff --git a/tests/Zend/Gdata/AppTest.php b/tests/Zend/Gdata/AppTest.php index eaa54cc4ab..a0da9f3770 100644 --- a/tests/Zend/Gdata/AppTest.php +++ b/tests/Zend/Gdata/AppTest.php @@ -38,6 +38,46 @@ */ class Zend_Gdata_AppTest extends TestCase { + /** + * @var string + */ + protected $fileName; + + /** + * @var string|mixed + */ + protected $expectedEtag; + + /** + * @var int|mixed + */ + protected $expectedMajorProtocolVersion; + + /** + * @var int|mixed + */ + protected $expectedMinorProtocolVersion; + + protected $httpEntrySample; + protected $httpEntrySampleWithoutVersion; + protected $httpFeedSample; + protected $httpFeedSampleWithoutVersion; + + /** + * @var \Test_Zend_Gdata_MockHttpClient|mixed + */ + protected $adapter; + + /** + * @var \Zend_Gdata_HttpClient|mixed + */ + protected $client; + + /** + * @var \Zend_Gdata_App|mixed + */ + protected $service; + protected function setUp(): void { $this->fileName = 'Zend/Gdata/App/_files/FeedSample1.xml'; diff --git a/tests/Zend/Gdata/AttendeeStatusTest.php b/tests/Zend/Gdata/AttendeeStatusTest.php index 1af625ab52..ead2758450 100644 --- a/tests/Zend/Gdata/AttendeeStatusTest.php +++ b/tests/Zend/Gdata/AttendeeStatusTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_AttendeeStatusTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $attendeeStatusText; + + /** + * @var \Zend_Gdata_Extension_AttendeeStatus|mixed + */ + protected $attendeeStatus; + protected function setUp(): void { $this->attendeeStatusText = file_get_contents( diff --git a/tests/Zend/Gdata/AttendeeTypeTest.php b/tests/Zend/Gdata/AttendeeTypeTest.php index 53801bfdf5..d22cc93734 100644 --- a/tests/Zend/Gdata/AttendeeTypeTest.php +++ b/tests/Zend/Gdata/AttendeeTypeTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_AttendeeTypeTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $attendeeTypeText; + + /** + * @var \Zend_Gdata_Extension_AttendeeType|mixed + */ + protected $attendeeType; + protected function setUp(): void { $this->attendeeTypeText = file_get_contents( diff --git a/tests/Zend/Gdata/Books/CollectionEntryTest.php b/tests/Zend/Gdata/Books/CollectionEntryTest.php index 612d76238f..332d968f98 100644 --- a/tests/Zend/Gdata/Books/CollectionEntryTest.php +++ b/tests/Zend/Gdata/Books/CollectionEntryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Books_CollectionEntryTest extends TestCase { + /** + * @var \Zend_Gdata_Books_CollectionEntry + */ + protected $gdata; + protected function setUp(): void { $this->gdata = new Zend_Gdata_Books_CollectionEntry(); diff --git a/tests/Zend/Gdata/Books/CollectionFeedTest.php b/tests/Zend/Gdata/Books/CollectionFeedTest.php index 79db674d4c..76ba72498f 100644 --- a/tests/Zend/Gdata/Books/CollectionFeedTest.php +++ b/tests/Zend/Gdata/Books/CollectionFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Books_CollectionFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Books_CollectionFeed + */ + protected $gdata; + protected function setUp(): void { $this->gdata = new Zend_Gdata_Books_CollectionFeed(); diff --git a/tests/Zend/Gdata/Books/VolumeEntryTest.php b/tests/Zend/Gdata/Books/VolumeEntryTest.php index 9f97e880db..51e846b938 100644 --- a/tests/Zend/Gdata/Books/VolumeEntryTest.php +++ b/tests/Zend/Gdata/Books/VolumeEntryTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Books_VolumeEntryTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $entryText; + + /** + * @var \Zend_Gdata_Books_VolumeEntry|mixed + */ + protected $entry; + protected function setUp(): void { $this->entryText = file_get_contents( diff --git a/tests/Zend/Gdata/Books/VolumeFeedTest.php b/tests/Zend/Gdata/Books/VolumeFeedTest.php index d9603b81e9..fc5be6a771 100644 --- a/tests/Zend/Gdata/Books/VolumeFeedTest.php +++ b/tests/Zend/Gdata/Books/VolumeFeedTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Books_VolumeFeedTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $feedText; + + /** + * @var \Zend_Gdata_Books_VolumeFeed|mixed + */ + protected $feed; + protected function setUp(): void { $this->feedText = file_get_contents( diff --git a/tests/Zend/Gdata/BooksOnlineTest.php b/tests/Zend/Gdata/BooksOnlineTest.php index 2e098d5063..4786391839 100644 --- a/tests/Zend/Gdata/BooksOnlineTest.php +++ b/tests/Zend/Gdata/BooksOnlineTest.php @@ -38,6 +38,11 @@ */ class Zend_Gdata_BooksOnlineTest extends TestCase { + /** + * @var \Zend_Gdata_Books|mixed + */ + protected $gdata; + protected function setUp(): void { $user = constant('TESTS_ZEND_GDATA_CLIENTLOGIN_EMAIL'); diff --git a/tests/Zend/Gdata/BooksTest.php b/tests/Zend/Gdata/BooksTest.php index 164be34ab0..6a228d9ce5 100644 --- a/tests/Zend/Gdata/BooksTest.php +++ b/tests/Zend/Gdata/BooksTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_BooksTest extends TestCase { + /** + * @var \Zend_Gdata_Books + */ + protected $gdata; + protected function setUp(): void { $this->gdata = new Zend_Gdata_Books(new Zend_Http_Client()); diff --git a/tests/Zend/Gdata/Calendar/AccessLevelTest.php b/tests/Zend/Gdata/Calendar/AccessLevelTest.php index cece555e96..2dc32daee0 100644 --- a/tests/Zend/Gdata/Calendar/AccessLevelTest.php +++ b/tests/Zend/Gdata/Calendar/AccessLevelTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Calendar_AccessLevelTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $accessLevelText; + + /** + * @var \Zend_Gdata_Calendar_Extension_AccessLevel|mixed + */ + protected $accessLevel; + protected function setUp(): void { $this->accessLevelText = file_get_contents( diff --git a/tests/Zend/Gdata/Calendar/ColorTest.php b/tests/Zend/Gdata/Calendar/ColorTest.php index 449554d6ed..6842000b25 100644 --- a/tests/Zend/Gdata/Calendar/ColorTest.php +++ b/tests/Zend/Gdata/Calendar/ColorTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Calendar_ColorTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $colorText; + + /** + * @var \Zend_Gdata_Calendar_Extension_Color|mixed + */ + protected $color; + protected function setUp(): void { $this->colorText = file_get_contents( diff --git a/tests/Zend/Gdata/Calendar/EventEntryTest.php b/tests/Zend/Gdata/Calendar/EventEntryTest.php index 25180af20c..56330151dd 100644 --- a/tests/Zend/Gdata/Calendar/EventEntryTest.php +++ b/tests/Zend/Gdata/Calendar/EventEntryTest.php @@ -38,6 +38,16 @@ */ class Zend_Gdata_Calendar_EventEntryTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $entryText; + + /** + * @var \Zend_Gdata_Calendar_EventEntry|mixed + */ + protected $entry; + protected function setUp(): void { $this->entryText = file_get_contents( diff --git a/tests/Zend/Gdata/Calendar/EventQueryExceptionTest.php b/tests/Zend/Gdata/Calendar/EventQueryExceptionTest.php index d8974b8f22..ab1a6ecdab 100644 --- a/tests/Zend/Gdata/Calendar/EventQueryExceptionTest.php +++ b/tests/Zend/Gdata/Calendar/EventQueryExceptionTest.php @@ -38,6 +38,11 @@ */ class Zend_Gdata_Calendar_EventQueryExceptionTest extends TestCase { + /** + * @var \Zend_Gdata_Calendar_EventQuery|mixed + */ + protected $query; + public const GOOGLE_DEVELOPER_CALENDAR = 'developer-calendar@google.com'; protected function setUp(): void diff --git a/tests/Zend/Gdata/Calendar/EventQueryTest.php b/tests/Zend/Gdata/Calendar/EventQueryTest.php index d4f455fdca..28677996a5 100644 --- a/tests/Zend/Gdata/Calendar/EventQueryTest.php +++ b/tests/Zend/Gdata/Calendar/EventQueryTest.php @@ -38,6 +38,10 @@ */ class Zend_Gdata_Calendar_EventQueryTest extends TestCase { + /** + * @var \Zend_Gdata_Calendar_EventQuery|mixed + */ + protected $query; public const GOOGLE_DEVELOPER_CALENDAR = 'developer-calendar@google.com'; public const ZEND_CONFERENCE_EVENT = 'bn2h4o4mc3a03ci4t48j3m56pg'; public const ZEND_CONFERENCE_EVENT_COMMENT = 'i9q87onko1uphfs7i21elnnb4g'; diff --git a/tests/Zend/Gdata/Calendar/HiddenTest.php b/tests/Zend/Gdata/Calendar/HiddenTest.php index 003304e779..5d2adc6d83 100644 --- a/tests/Zend/Gdata/Calendar/HiddenTest.php +++ b/tests/Zend/Gdata/Calendar/HiddenTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Calendar_HiddenTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $hiddenText; + + /** + * @var \Zend_Gdata_Calendar_Extension_Hidden|mixed + */ + protected $hidden; + protected function setUp(): void { $this->hiddenText = file_get_contents( diff --git a/tests/Zend/Gdata/Calendar/LinkTest.php b/tests/Zend/Gdata/Calendar/LinkTest.php index d0423b6beb..660682d054 100644 --- a/tests/Zend/Gdata/Calendar/LinkTest.php +++ b/tests/Zend/Gdata/Calendar/LinkTest.php @@ -38,6 +38,16 @@ */ class Zend_Gdata_Calendar_LinkTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $linkText; + + /** + * @var \Zend_Gdata_Calendar_Extension_Link|mixed + */ + protected $link; + protected function setUp(): void { $this->linkText = file_get_contents( diff --git a/tests/Zend/Gdata/Calendar/QuickAddTest.php b/tests/Zend/Gdata/Calendar/QuickAddTest.php index 8c44fa816c..251bb714fd 100644 --- a/tests/Zend/Gdata/Calendar/QuickAddTest.php +++ b/tests/Zend/Gdata/Calendar/QuickAddTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Calendar_QuickAddTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $quickAddText; + + /** + * @var \Zend_Gdata_Calendar_Extension_QuickAdd|mixed + */ + protected $quickAdd; + protected function setUp(): void { $this->quickAddText = file_get_contents( diff --git a/tests/Zend/Gdata/Calendar/SelectedTest.php b/tests/Zend/Gdata/Calendar/SelectedTest.php index 9fac3c1eaa..f73f5c5391 100644 --- a/tests/Zend/Gdata/Calendar/SelectedTest.php +++ b/tests/Zend/Gdata/Calendar/SelectedTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Calendar_SelectedTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $selectedText; + + /** + * @var \Zend_Gdata_Calendar_Extension_Selected|mixed + */ + protected $selected; + protected function setUp(): void { $this->selectedText = file_get_contents( diff --git a/tests/Zend/Gdata/Calendar/SendEventNotificationsTest.php b/tests/Zend/Gdata/Calendar/SendEventNotificationsTest.php index 8dac732b56..c62e24aa9a 100644 --- a/tests/Zend/Gdata/Calendar/SendEventNotificationsTest.php +++ b/tests/Zend/Gdata/Calendar/SendEventNotificationsTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Calendar_SendEventNotificationsTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $sendEventNotificationsText; + + /** + * @var \Zend_Gdata_Calendar_Extension_SendEventNotifications|mixed + */ + protected $sendEventNotifications; + protected function setUp(): void { $this->sendEventNotificationsText = file_get_contents( diff --git a/tests/Zend/Gdata/Calendar/TimezoneTest.php b/tests/Zend/Gdata/Calendar/TimezoneTest.php index 31dc5a97b4..8a91623cc8 100644 --- a/tests/Zend/Gdata/Calendar/TimezoneTest.php +++ b/tests/Zend/Gdata/Calendar/TimezoneTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Calendar_TimezoneTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $timezoneText; + + /** + * @var \Zend_Gdata_Calendar_Extension_Timezone|mixed + */ + protected $timezone; + protected function setUp(): void { $this->timezoneText = file_get_contents( diff --git a/tests/Zend/Gdata/Calendar/WebContentTest.php b/tests/Zend/Gdata/Calendar/WebContentTest.php index 53908dcb95..403d7397bd 100644 --- a/tests/Zend/Gdata/Calendar/WebContentTest.php +++ b/tests/Zend/Gdata/Calendar/WebContentTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Calendar_WebContentTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $webContentText; + + /** + * @var \Zend_Gdata_Calendar_Extension_WebContent|mixed + */ + protected $webContent; + protected function setUp(): void { $this->webContentText = file_get_contents( diff --git a/tests/Zend/Gdata/CalendarOnlineTest.php b/tests/Zend/Gdata/CalendarOnlineTest.php index e160bbf210..2774b8ed79 100644 --- a/tests/Zend/Gdata/CalendarOnlineTest.php +++ b/tests/Zend/Gdata/CalendarOnlineTest.php @@ -39,6 +39,11 @@ */ class Zend_Gdata_CalendarOnlineTest extends TestCase { + /** + * @var \Zend_Gdata_Calendar|mixed + */ + protected $gdata; + public const GOOGLE_DEVELOPER_CALENDAR = 'developer-calendar@google.com'; public const ZEND_CONFERENCE_EVENT = 'bn2h4o4mc3a03ci4t48j3m56pg'; diff --git a/tests/Zend/Gdata/CalendarTest.php b/tests/Zend/Gdata/CalendarTest.php index dd68b012fe..9e96e487ec 100644 --- a/tests/Zend/Gdata/CalendarTest.php +++ b/tests/Zend/Gdata/CalendarTest.php @@ -39,6 +39,15 @@ */ class Zend_Gdata_CalendarTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $eventFeedText; + /** + * @var \Zend_Gdata_Calendar_EventFeed|mixed + */ + protected $eventFeed; + protected function setUp(): void { $this->eventFeedText = file_get_contents( diff --git a/tests/Zend/Gdata/CommentsTest.php b/tests/Zend/Gdata/CommentsTest.php index 2ef1ebe414..590c7d26ba 100644 --- a/tests/Zend/Gdata/CommentsTest.php +++ b/tests/Zend/Gdata/CommentsTest.php @@ -36,6 +36,15 @@ */ class Zend_Gdata_CommentsTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $commentsText; + /** + * @var \Zend_Gdata_Extension_Comments|mixed + */ + protected $comments; + protected function setUp(): void { $this->commentsText = file_get_contents( diff --git a/tests/Zend/Gdata/Docs/DocumentListEntryTest.php b/tests/Zend/Gdata/Docs/DocumentListEntryTest.php index 881821f9d0..68b1912f30 100755 --- a/tests/Zend/Gdata/Docs/DocumentListEntryTest.php +++ b/tests/Zend/Gdata/Docs/DocumentListEntryTest.php @@ -38,6 +38,16 @@ */ class Zend_Gdata_Docs_DocumentListEntryTest extends TestCase { + /** + * @var \Zend_Gdata_Docs_DocumentListEntry|mixed + */ + protected $doc; + + /** + * @var \Zend_Gdata_Docs|mixed + */ + protected $docsClient; + protected function setUp(): void { $this->doc = new Zend_Gdata_Docs_DocumentListEntry( diff --git a/tests/Zend/Gdata/Docs/DocumentListFeedTest.php b/tests/Zend/Gdata/Docs/DocumentListFeedTest.php index 02a6c3d9eb..a7615a2b0d 100755 --- a/tests/Zend/Gdata/Docs/DocumentListFeedTest.php +++ b/tests/Zend/Gdata/Docs/DocumentListFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Docs_DocumentListFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Docs_DocumentListFeed|mixed + */ + protected $docFeed; + protected function setUp(): void { $this->docFeed = new Zend_Gdata_Docs_DocumentListFeed( diff --git a/tests/Zend/Gdata/Docs/QueryTest.php b/tests/Zend/Gdata/Docs/QueryTest.php index e312c385c6..e40e25977d 100755 --- a/tests/Zend/Gdata/Docs/QueryTest.php +++ b/tests/Zend/Gdata/Docs/QueryTest.php @@ -38,6 +38,11 @@ */ class Zend_Gdata_Docs_QueryTest extends TestCase { + /** + * @var \Zend_Gdata_Docs_Query|mixed + */ + protected $docQuery; + protected function setUp(): void { $this->docQuery = new Zend_Gdata_Docs_Query(); diff --git a/tests/Zend/Gdata/DocsOnlineTest.php b/tests/Zend/Gdata/DocsOnlineTest.php index 223c891d20..2247547313 100755 --- a/tests/Zend/Gdata/DocsOnlineTest.php +++ b/tests/Zend/Gdata/DocsOnlineTest.php @@ -38,6 +38,15 @@ */ class Zend_Gdata_DocsOnlineTest extends TestCase { + /** + * @var mixed + */ + protected $docTitle; + /** + * @var \Zend_Gdata_Docs|mixed + */ + protected $gdata; + protected function setUp(): void { $user = constant('TESTS_ZEND_GDATA_CLIENTLOGIN_EMAIL'); diff --git a/tests/Zend/Gdata/DocsTest.php b/tests/Zend/Gdata/DocsTest.php index 41d7470e87..b5347c41ba 100755 --- a/tests/Zend/Gdata/DocsTest.php +++ b/tests/Zend/Gdata/DocsTest.php @@ -38,6 +38,19 @@ */ class Zend_Gdata_DocsTest extends TestCase { + /** + * @var \Test_Zend_Gdata_MockHttpClient|mixed + */ + protected $adapter; + /** + * @var \Zend_Gdata_HttpClient|mixed + */ + protected $client; + /** + * @var \Zend_Gdata_Docs|mixed + */ + protected $gdata; + protected function setUp(): void { $this->adapter = new Test_Zend_Gdata_MockHttpClient(); diff --git a/tests/Zend/Gdata/EntryLinkTest.php b/tests/Zend/Gdata/EntryLinkTest.php index f4736ca5f8..52f7925bb3 100644 --- a/tests/Zend/Gdata/EntryLinkTest.php +++ b/tests/Zend/Gdata/EntryLinkTest.php @@ -36,6 +36,15 @@ */ class Zend_Gdata_EntryLinkTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $entryLinkText; + /** + * @var \Zend_Gdata_Extension_EntryLink|mixed + */ + protected $entryLink; + protected function setUp(): void { $this->entryLinkText = file_get_contents( diff --git a/tests/Zend/Gdata/EntryTest.php b/tests/Zend/Gdata/EntryTest.php index 4b30089225..d51a5d952e 100644 --- a/tests/Zend/Gdata/EntryTest.php +++ b/tests/Zend/Gdata/EntryTest.php @@ -35,6 +35,46 @@ */ class Zend_Gdata_EntryTest extends TestCase { + /** + * @var \Zend_Gdata_Entry|mixed + */ + protected $entry; + + /** + * @var string|bool|mixed + */ + protected $entryText; + + /** + * @var string|mixed + */ + protected $etagLocalName; + + /** + * @var string|mixed + */ + protected $expectedEtag; + + /** + * @var string|mixed + */ + protected $expectedMismatchExceptionMessage; + + /** + * @var string|mixed + */ + protected $gdNamespace; + + /** + * @var string|mixed + */ + protected $openSearchNamespacev1; + + /** + * @var string|mixed + */ + protected $openSearchNamespacev2; + protected function setUp(): void { $this->entry = new Zend_Gdata_Entry(); diff --git a/tests/Zend/Gdata/EventStatusTest.php b/tests/Zend/Gdata/EventStatusTest.php index 337b0c535f..c3e9e51feb 100644 --- a/tests/Zend/Gdata/EventStatusTest.php +++ b/tests/Zend/Gdata/EventStatusTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_EventStatusTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $eventStatusText; + + /** + * @var \Zend_Gdata_Extension_EventStatus|mixed + */ + protected $eventStatus; + protected function setUp(): void { $this->eventStatusText = file_get_contents( diff --git a/tests/Zend/Gdata/ExtendedPropertyTest.php b/tests/Zend/Gdata/ExtendedPropertyTest.php index 04cf7e212a..56806a9ada 100644 --- a/tests/Zend/Gdata/ExtendedPropertyTest.php +++ b/tests/Zend/Gdata/ExtendedPropertyTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_ExtendedPropertyTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $extendedPropertyText; + + /** + * @var \Zend_Gdata_Extension_ExtendedProperty|mixed + */ + protected $extendedProperty; + protected function setUp(): void { $this->extendedPropertyText = file_get_contents( diff --git a/tests/Zend/Gdata/FeedLinkTest.php b/tests/Zend/Gdata/FeedLinkTest.php index 87f1c6134e..4a85444bd7 100644 --- a/tests/Zend/Gdata/FeedLinkTest.php +++ b/tests/Zend/Gdata/FeedLinkTest.php @@ -36,6 +36,15 @@ */ class Zend_Gdata_FeedLinkTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $feedLinkText; + + /** + * @var \Zend_Gdata_Extension_FeedLink|mixed + */ + protected $feedLink; protected function setUp(): void { $this->feedLinkText = file_get_contents( diff --git a/tests/Zend/Gdata/FeedTest.php b/tests/Zend/Gdata/FeedTest.php index 1be165c983..497cce8522 100644 --- a/tests/Zend/Gdata/FeedTest.php +++ b/tests/Zend/Gdata/FeedTest.php @@ -37,6 +37,51 @@ */ class Zend_Gdata_FeedTest extends TestCase { + /** + * @var string|mixed + */ + protected $etagLocalName; + + /** + * @var string|mixed + */ + protected $expectedEtag; + + /** + * @var string|mixed + */ + protected $expectedMismatchExceptionMessage; + + /** + * @var \Zend_Gdata_Feed|mixed + */ + protected $feed; + + /** + * @var string|bool|mixed + */ + protected $feedTextV1; + + /** + * @var string|bool|mixed + */ + protected $feedTextV2; + + /** + * @var string|mixed + */ + protected $gdNamespace; + + /** + * @var string|mixed + */ + protected $openSearchNamespacev1; + + /** + * @var string|mixed + */ + protected $openSearchNamespacev2; + protected function setUp(): void { $this->etagLocalName = 'etag'; diff --git a/tests/Zend/Gdata/Gapps/EmailListEntryTest.php b/tests/Zend/Gdata/Gapps/EmailListEntryTest.php index 3f2dfba493..a4afd590f6 100644 --- a/tests/Zend/Gdata/Gapps/EmailListEntryTest.php +++ b/tests/Zend/Gdata/Gapps/EmailListEntryTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_EmailListEntryTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $entryText; + + /** + * @var \Zend_Gdata_Gapps_EmailListEntry|mixed + */ + protected $entry; + protected function setUp(): void { $this->entryText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/EmailListFeedTest.php b/tests/Zend/Gdata/Gapps/EmailListFeedTest.php index 39b8751bec..7e3c4af973 100644 --- a/tests/Zend/Gdata/Gapps/EmailListFeedTest.php +++ b/tests/Zend/Gdata/Gapps/EmailListFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_EmailListFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_EmailListFeed|mixed + */ + protected $emptyEmailListFeed; + protected $emailListFeed = null; /** diff --git a/tests/Zend/Gdata/Gapps/EmailListQueryTest.php b/tests/Zend/Gdata/Gapps/EmailListQueryTest.php index a965106878..ad891e6d05 100644 --- a/tests/Zend/Gdata/Gapps/EmailListQueryTest.php +++ b/tests/Zend/Gdata/Gapps/EmailListQueryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_EmailListQueryTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_EmailListQuery|mixed + */ + protected $query; + protected function setUp(): void { $this->query = new Zend_Gdata_Gapps_EmailListQuery(); diff --git a/tests/Zend/Gdata/Gapps/EmailListRecipientEntryTest.php b/tests/Zend/Gdata/Gapps/EmailListRecipientEntryTest.php index 17b79af95c..f48ae2503c 100644 --- a/tests/Zend/Gdata/Gapps/EmailListRecipientEntryTest.php +++ b/tests/Zend/Gdata/Gapps/EmailListRecipientEntryTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_EmailListRecipientEntryTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $entryText; + + /** + * @var \Zend_Gdata_Gapps_EmailListRecipientEntry|mixed + */ + protected $entry; + protected function setUp(): void { $this->entryText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/EmailListRecipientFeedTest.php b/tests/Zend/Gdata/Gapps/EmailListRecipientFeedTest.php index 74956c0e78..8957db95b1 100644 --- a/tests/Zend/Gdata/Gapps/EmailListRecipientFeedTest.php +++ b/tests/Zend/Gdata/Gapps/EmailListRecipientFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_EmailListRecipientFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_EmailListRecipientFeed|mixed + */ + protected $emptyEmailListRecipientFeed; + protected $emailListRecipientFeed = null; /** diff --git a/tests/Zend/Gdata/Gapps/EmailListRecipientQueryTest.php b/tests/Zend/Gdata/Gapps/EmailListRecipientQueryTest.php index 0139c67769..efe245dcdc 100644 --- a/tests/Zend/Gdata/Gapps/EmailListRecipientQueryTest.php +++ b/tests/Zend/Gdata/Gapps/EmailListRecipientQueryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_EmailListRecipientQueryTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_EmailListRecipientQuery|mixed + */ + protected $query; + protected function setUp(): void { $this->query = new Zend_Gdata_Gapps_EmailListRecipientQuery(); diff --git a/tests/Zend/Gdata/Gapps/EmailListTest.php b/tests/Zend/Gdata/Gapps/EmailListTest.php index c4b7a8bb6b..2581dea368 100644 --- a/tests/Zend/Gdata/Gapps/EmailListTest.php +++ b/tests/Zend/Gdata/Gapps/EmailListTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_EmailListTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $emailListText; + + /** + * @var \Zend_Gdata_Gapps_Extension_EmailList|mixed + */ + protected $emailList; + protected function setUp(): void { $this->emailListText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/ErrorTest.php b/tests/Zend/Gdata/Gapps/ErrorTest.php index 5f54f007ad..0022d2d1ba 100644 --- a/tests/Zend/Gdata/Gapps/ErrorTest.php +++ b/tests/Zend/Gdata/Gapps/ErrorTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_ErrorTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_Error|mixed + */ + protected $error; + protected function setUp(): void { $this->error = new Zend_Gdata_Gapps_Error(); diff --git a/tests/Zend/Gdata/Gapps/GroupEntryTest.php b/tests/Zend/Gdata/Gapps/GroupEntryTest.php index fff371283f..ed3364376c 100644 --- a/tests/Zend/Gdata/Gapps/GroupEntryTest.php +++ b/tests/Zend/Gdata/Gapps/GroupEntryTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_GroupEntryTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $entryText; + + /** + * @var \Zend_Gdata_Gapps_GroupEntry|mixed + */ + protected $entry; + protected function setUp(): void { $this->entryText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/GroupFeedTest.php b/tests/Zend/Gdata/Gapps/GroupFeedTest.php index df7b5bf5fd..7f17444399 100644 --- a/tests/Zend/Gdata/Gapps/GroupFeedTest.php +++ b/tests/Zend/Gdata/Gapps/GroupFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_GroupFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_GroupFeed|mixed + */ + protected $emptyGroupFeed; + protected $groupFeed = null; /** diff --git a/tests/Zend/Gdata/Gapps/GroupQueryTest.php b/tests/Zend/Gdata/Gapps/GroupQueryTest.php index 325847b010..b6a323e43b 100644 --- a/tests/Zend/Gdata/Gapps/GroupQueryTest.php +++ b/tests/Zend/Gdata/Gapps/GroupQueryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_GroupQueryTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_GroupQuery|mixed + */ + protected $query; + protected function setUp(): void { $this->query = new Zend_Gdata_Gapps_GroupQuery(); diff --git a/tests/Zend/Gdata/Gapps/LoginTest.php b/tests/Zend/Gdata/Gapps/LoginTest.php index abb40539fa..f3146e8f69 100644 --- a/tests/Zend/Gdata/Gapps/LoginTest.php +++ b/tests/Zend/Gdata/Gapps/LoginTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_LoginTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $loginText; + + /** + * @var \Zend_Gdata_Gapps_Extension_Login|mixed + */ + protected $login; + protected function setUp(): void { $this->loginText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/MemberEntryTest.php b/tests/Zend/Gdata/Gapps/MemberEntryTest.php index 06e4037be3..caccba5184 100644 --- a/tests/Zend/Gdata/Gapps/MemberEntryTest.php +++ b/tests/Zend/Gdata/Gapps/MemberEntryTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_MemberEntryTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $entryText; + + /** + * @var \Zend_Gdata_Gapps_MemberEntry|mixed + */ + protected $entry; + protected function setUp(): void { $this->entryText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/MemberFeedTest.php b/tests/Zend/Gdata/Gapps/MemberFeedTest.php index 6ba607c033..15cfafe154 100644 --- a/tests/Zend/Gdata/Gapps/MemberFeedTest.php +++ b/tests/Zend/Gdata/Gapps/MemberFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_MemberFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_MemberFeed|mixed + */ + protected $emptyMemberFeed; + protected $memberFeed = null; /** diff --git a/tests/Zend/Gdata/Gapps/MemberQueryTest.php b/tests/Zend/Gdata/Gapps/MemberQueryTest.php index 3592c90a7f..7301e8a9cc 100644 --- a/tests/Zend/Gdata/Gapps/MemberQueryTest.php +++ b/tests/Zend/Gdata/Gapps/MemberQueryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_MemberQueryTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_MemberQuery|mixed + */ + protected $query; + protected function setUp(): void { $this->query = new Zend_Gdata_Gapps_MemberQuery(); diff --git a/tests/Zend/Gdata/Gapps/NameTest.php b/tests/Zend/Gdata/Gapps/NameTest.php index 8afdefb0f8..fa562fe918 100644 --- a/tests/Zend/Gdata/Gapps/NameTest.php +++ b/tests/Zend/Gdata/Gapps/NameTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_NameTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $theNameText; + + /** + * @var \Zend_Gdata_Gapps_Extension_Name|mixed + */ + protected $theName; + protected function setUp(): void { $this->theNameText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/NicknameEntryTest.php b/tests/Zend/Gdata/Gapps/NicknameEntryTest.php index da1bde5188..35c4a063fb 100644 --- a/tests/Zend/Gdata/Gapps/NicknameEntryTest.php +++ b/tests/Zend/Gdata/Gapps/NicknameEntryTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_NicknameEntryTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $entryText; + + /** + * @var \Zend_Gdata_Gapps_NicknameEntry|mixed + */ + protected $entry; + protected function setUp(): void { $this->entryText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/NicknameFeedTest.php b/tests/Zend/Gdata/Gapps/NicknameFeedTest.php index c3709a8734..6127f3f23c 100644 --- a/tests/Zend/Gdata/Gapps/NicknameFeedTest.php +++ b/tests/Zend/Gdata/Gapps/NicknameFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_NicknameFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_NicknameFeed|mixed + */ + protected $emptyNicknameFeed; + protected $nicknameFeed = null; /** diff --git a/tests/Zend/Gdata/Gapps/NicknameQueryTest.php b/tests/Zend/Gdata/Gapps/NicknameQueryTest.php index 3d28be0086..32a22e25eb 100644 --- a/tests/Zend/Gdata/Gapps/NicknameQueryTest.php +++ b/tests/Zend/Gdata/Gapps/NicknameQueryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_NicknameQueryTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_NicknameQuery|mixed + */ + protected $query; + protected function setUp(): void { $this->query = new Zend_Gdata_Gapps_NicknameQuery(); diff --git a/tests/Zend/Gdata/Gapps/NicknameTest.php b/tests/Zend/Gdata/Gapps/NicknameTest.php index 2ad05034b7..06e7c3a879 100644 --- a/tests/Zend/Gdata/Gapps/NicknameTest.php +++ b/tests/Zend/Gdata/Gapps/NicknameTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_NicknameTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $nicknameText; + + /** + * @var \Zend_Gdata_Gapps_Extension_Nickname|mixed + */ + protected $nickname; + protected function setUp(): void { $this->nicknameText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/OwnerEntryTest.php b/tests/Zend/Gdata/Gapps/OwnerEntryTest.php index b5a38840d5..a6b5fef487 100644 --- a/tests/Zend/Gdata/Gapps/OwnerEntryTest.php +++ b/tests/Zend/Gdata/Gapps/OwnerEntryTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_OwnerEntryTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $entryText; + + /** + * @var \Zend_Gdata_Gapps_OwnerEntry|mixed + */ + protected $entry; + protected function setUp(): void { $this->entryText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/OwnerFeedTest.php b/tests/Zend/Gdata/Gapps/OwnerFeedTest.php index 3128d05293..30ecc1d68d 100644 --- a/tests/Zend/Gdata/Gapps/OwnerFeedTest.php +++ b/tests/Zend/Gdata/Gapps/OwnerFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_OwnerFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_OwnerFeed|mixed + */ + protected $emptyOwnerFeed; + protected $ownerFeed = null; /** diff --git a/tests/Zend/Gdata/Gapps/OwnerQueryTest.php b/tests/Zend/Gdata/Gapps/OwnerQueryTest.php index 118d255fc6..53aec13d2d 100644 --- a/tests/Zend/Gdata/Gapps/OwnerQueryTest.php +++ b/tests/Zend/Gdata/Gapps/OwnerQueryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_OwnerQueryTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_OwnerQuery|mixed + */ + protected $query; + protected function setUp(): void { $this->query = new Zend_Gdata_Gapps_OwnerQuery(); diff --git a/tests/Zend/Gdata/Gapps/PropertyTest.php b/tests/Zend/Gdata/Gapps/PropertyTest.php index 87d1f2a3f5..c87b78174b 100644 --- a/tests/Zend/Gdata/Gapps/PropertyTest.php +++ b/tests/Zend/Gdata/Gapps/PropertyTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_PropertyTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $thePropertyText; + + /** + * @var \Zend_Gdata_Gapps_Extension_Property|mixed + */ + protected $theProperty; + protected function setUp(): void { $this->thePropertyText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/QuotaTest.php b/tests/Zend/Gdata/Gapps/QuotaTest.php index d9f0434feb..7ae8cd4c61 100644 --- a/tests/Zend/Gdata/Gapps/QuotaTest.php +++ b/tests/Zend/Gdata/Gapps/QuotaTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_QuotaTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $quotaText; + + /** + * @var \Zend_Gdata_Gapps_Extension_Quota|mixed + */ + protected $quota; + protected function setUp(): void { $this->quotaText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/ServiceExceptionTest.php b/tests/Zend/Gdata/Gapps/ServiceExceptionTest.php index ca942f28f2..59d6c8f636 100644 --- a/tests/Zend/Gdata/Gapps/ServiceExceptionTest.php +++ b/tests/Zend/Gdata/Gapps/ServiceExceptionTest.php @@ -38,6 +38,11 @@ */ class Zend_Gdata_Gapps_ServiceExceptionTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $xmlSample; + protected $fixture; protected $data; diff --git a/tests/Zend/Gdata/Gapps/UserEntryTest.php b/tests/Zend/Gdata/Gapps/UserEntryTest.php index 7b692fd826..8506f5c369 100644 --- a/tests/Zend/Gdata/Gapps/UserEntryTest.php +++ b/tests/Zend/Gdata/Gapps/UserEntryTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Gapps_UserEntryTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $entryText; + + /** + * @var \Zend_Gdata_Gapps_UserEntry|mixed + */ + protected $entry; + protected function setUp(): void { $this->entryText = file_get_contents( diff --git a/tests/Zend/Gdata/Gapps/UserFeedTest.php b/tests/Zend/Gdata/Gapps/UserFeedTest.php index 9343de58ec..5536d489b7 100644 --- a/tests/Zend/Gdata/Gapps/UserFeedTest.php +++ b/tests/Zend/Gdata/Gapps/UserFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_UserFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_UserFeed|mixed + */ + protected $emptyUserFeed; + protected $userFeed = null; /** diff --git a/tests/Zend/Gdata/Gapps/UserQueryTest.php b/tests/Zend/Gdata/Gapps/UserQueryTest.php index 6cf20be47a..6c4c0003a3 100644 --- a/tests/Zend/Gdata/Gapps/UserQueryTest.php +++ b/tests/Zend/Gdata/Gapps/UserQueryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Gapps_UserQueryTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps_UserQuery|mixed + */ + protected $query; + protected function setUp(): void { $this->query = new Zend_Gdata_Gapps_UserQuery(); diff --git a/tests/Zend/Gdata/GappsOnlineTest.php b/tests/Zend/Gdata/GappsOnlineTest.php index b572aebdfe..6f08fed49d 100644 --- a/tests/Zend/Gdata/GappsOnlineTest.php +++ b/tests/Zend/Gdata/GappsOnlineTest.php @@ -40,6 +40,23 @@ */ class Zend_Gdata_GappsOnlineTest extends TestCase { + /** + * @var string|mixed + */ + protected $id; + /** + * @var mixed + */ + protected $domain; + /** + * @var \Zend_Gdata_Gapps|mixed + */ + protected $gdata; + /** + * @var mixed[]|mixed + */ + protected $autoDeletePool; + public const GIVEN_NAME = 'Zend_Gdata'; public const FAMILY_NAME = 'Automated Test Account'; public const PASSWORD = '4ohtladfl;'; diff --git a/tests/Zend/Gdata/GappsTest.php b/tests/Zend/Gdata/GappsTest.php index 81fd5a27c2..61edc7ce3a 100644 --- a/tests/Zend/Gdata/GappsTest.php +++ b/tests/Zend/Gdata/GappsTest.php @@ -39,6 +39,11 @@ */ class Zend_Gdata_GappsTest extends TestCase { + /** + * @var \Zend_Gdata_Gapps|mixed + */ + protected $gdata; + public const TEST_DOMAIN = 'nowhere.invalid'; protected function setUp(): void diff --git a/tests/Zend/Gdata/GdataOnlineTest.php b/tests/Zend/Gdata/GdataOnlineTest.php index 556e683772..91d4455c32 100644 --- a/tests/Zend/Gdata/GdataOnlineTest.php +++ b/tests/Zend/Gdata/GdataOnlineTest.php @@ -40,6 +40,11 @@ */ class Zend_Gdata_GdataOnlineTest extends TestCase { + /** + * @var \Zend_Gdata|mixed + */ + protected $gdata; + private $blog = null; // blog ID from config protected function setUp(): void diff --git a/tests/Zend/Gdata/MediaMimeStreamTest.php b/tests/Zend/Gdata/MediaMimeStreamTest.php index 3de4ebcc88..114a3f780f 100644 --- a/tests/Zend/Gdata/MediaMimeStreamTest.php +++ b/tests/Zend/Gdata/MediaMimeStreamTest.php @@ -35,6 +35,31 @@ */ class Zend_Gdata_MediaMimeStreamTest extends TestCase { + /** + * @var string|mixed + */ + protected $locationOfFakeBinary; + + /** + * @var string|mixed + */ + protected $smallXMLString; + + /** + * @var string|mixed + */ + protected $testMediaType; + + /** + * @var \Zend_Gdata_MediaMimeStream|mixed + */ + protected $mediaMimeStream; + + /** + * @var int|mixed + */ + protected $exceptedLenOfMimeMessage; + protected function setUp(): void { $this->locationOfFakeBinary = diff --git a/tests/Zend/Gdata/OpenSearchItemsPerPageTest.php b/tests/Zend/Gdata/OpenSearchItemsPerPageTest.php index ddd37fa781..ed6a447328 100644 --- a/tests/Zend/Gdata/OpenSearchItemsPerPageTest.php +++ b/tests/Zend/Gdata/OpenSearchItemsPerPageTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_OpenSearchItemsPerPageTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $openSearchItemsPerPageText; + + /** + * @var \Zend_Gdata_Extension_OpenSearchItemsPerPage|mixed + */ + protected $openSearchItemsPerPage; + protected function setUp(): void { $this->openSearchItemsPerPageText = file_get_contents( diff --git a/tests/Zend/Gdata/OpenSearchStartIndexTest.php b/tests/Zend/Gdata/OpenSearchStartIndexTest.php index 41f69cf303..730d7b01df 100644 --- a/tests/Zend/Gdata/OpenSearchStartIndexTest.php +++ b/tests/Zend/Gdata/OpenSearchStartIndexTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_OpenSearchStartIndexTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $openSearchStartIndexText; + + /** + * @var \Zend_Gdata_Extension_OpenSearchStartIndex|mixed + */ + protected $openSearchStartIndex; + protected function setUp(): void { $this->openSearchStartIndexText = file_get_contents( diff --git a/tests/Zend/Gdata/OpenSearchTotalResultsTest.php b/tests/Zend/Gdata/OpenSearchTotalResultsTest.php index 13a69fe65b..f349edc954 100644 --- a/tests/Zend/Gdata/OpenSearchTotalResultsTest.php +++ b/tests/Zend/Gdata/OpenSearchTotalResultsTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_OpenSearchTotalResultsTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $openSearchTotalResultsText; + + /** + * @var \Zend_Gdata_Extension_OpenSearchTotalResults|mixed + */ + + protected $openSearchTotalResults; protected function setUp(): void { $this->openSearchTotalResultsText = file_get_contents( diff --git a/tests/Zend/Gdata/OriginalEventTest.php b/tests/Zend/Gdata/OriginalEventTest.php index e40b1ba855..5a1400a013 100644 --- a/tests/Zend/Gdata/OriginalEventTest.php +++ b/tests/Zend/Gdata/OriginalEventTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_OriginalEventTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $originalEventText; + + /** + * @var \Zend_Gdata_Extension_OriginalEvent|mixed + */ + protected $originalEvent; + protected function setUp(): void { $this->originalEventText = file_get_contents( diff --git a/tests/Zend/Gdata/RecurrenceExceptionTest.php b/tests/Zend/Gdata/RecurrenceExceptionTest.php index 57fd455020..aef87afd76 100644 --- a/tests/Zend/Gdata/RecurrenceExceptionTest.php +++ b/tests/Zend/Gdata/RecurrenceExceptionTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_RecurrenceExceptionTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $recurrenceExceptionText; + + /** + * @var \Zend_Gdata_Extension_RecurrenceException|mixed + */ + protected $recurrenceException; + protected function setUp(): void { $this->recurrenceExceptionText = file_get_contents( diff --git a/tests/Zend/Gdata/RecurrenceTest.php b/tests/Zend/Gdata/RecurrenceTest.php index 156a8af691..d81a5257ef 100644 --- a/tests/Zend/Gdata/RecurrenceTest.php +++ b/tests/Zend/Gdata/RecurrenceTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_RecurrenceTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $recurrenceText; + + /** + * @var \Zend_Gdata_Extension_Recurrence|mixed + */ + protected $recurrence; + protected function setUp(): void { $this->recurrenceText = file_get_contents( diff --git a/tests/Zend/Gdata/ReminderTest.php b/tests/Zend/Gdata/ReminderTest.php index 71a8545078..cd3ffb7c8a 100644 --- a/tests/Zend/Gdata/ReminderTest.php +++ b/tests/Zend/Gdata/ReminderTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_ReminderTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $reminderText; + + /** + * @var \Zend_Gdata_Extension_Reminder|mixed + */ + protected $reminder; + protected function setUp(): void { $this->reminderText = file_get_contents( diff --git a/tests/Zend/Gdata/Spreadsheets/CellEntryTest.php b/tests/Zend/Gdata/Spreadsheets/CellEntryTest.php index f6f947e4db..bcc524e445 100644 --- a/tests/Zend/Gdata/Spreadsheets/CellEntryTest.php +++ b/tests/Zend/Gdata/Spreadsheets/CellEntryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_CellEntryTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_CellEntry|mixed + */ + protected $cellEntry; + protected function setUp(): void { $this->cellEntry = new Zend_Gdata_Spreadsheets_CellEntry(); diff --git a/tests/Zend/Gdata/Spreadsheets/CellFeedTest.php b/tests/Zend/Gdata/Spreadsheets/CellFeedTest.php index d15f450414..250e96dc57 100644 --- a/tests/Zend/Gdata/Spreadsheets/CellFeedTest.php +++ b/tests/Zend/Gdata/Spreadsheets/CellFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_CellFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_CellFeed|mixed + */ + protected $cellFeed; + protected function setUp(): void { $this->cellFeed = new Zend_Gdata_Spreadsheets_CellFeed( diff --git a/tests/Zend/Gdata/Spreadsheets/CellQueryTest.php b/tests/Zend/Gdata/Spreadsheets/CellQueryTest.php index 9b6680cc93..0e35eb2b5e 100644 --- a/tests/Zend/Gdata/Spreadsheets/CellQueryTest.php +++ b/tests/Zend/Gdata/Spreadsheets/CellQueryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_CellQueryTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_CellQuery|mixed + */ + protected $docQuery; + protected function setUp(): void { $this->docQuery = new Zend_Gdata_Spreadsheets_CellQuery(); diff --git a/tests/Zend/Gdata/Spreadsheets/CellTest.php b/tests/Zend/Gdata/Spreadsheets/CellTest.php index 1ce52ea049..f8d514d2be 100644 --- a/tests/Zend/Gdata/Spreadsheets/CellTest.php +++ b/tests/Zend/Gdata/Spreadsheets/CellTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_CellTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_Extension_Cell|mixed + */ + protected $cell; + protected function setUp(): void { $this->cell = new Zend_Gdata_Spreadsheets_Extension_Cell(); diff --git a/tests/Zend/Gdata/Spreadsheets/ColCountTest.php b/tests/Zend/Gdata/Spreadsheets/ColCountTest.php index 256ae3d529..11ea3222d5 100644 --- a/tests/Zend/Gdata/Spreadsheets/ColCountTest.php +++ b/tests/Zend/Gdata/Spreadsheets/ColCountTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_ColCountTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_Extension_ColCount|mixed + */ + protected $colCount; + protected function setUp(): void { $this->colCount = new Zend_Gdata_Spreadsheets_Extension_ColCount(); diff --git a/tests/Zend/Gdata/Spreadsheets/CustomTest.php b/tests/Zend/Gdata/Spreadsheets/CustomTest.php index f2f1c28d96..9b2a27fc20 100644 --- a/tests/Zend/Gdata/Spreadsheets/CustomTest.php +++ b/tests/Zend/Gdata/Spreadsheets/CustomTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_CustomTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_Extension_Custom|mixed + */ + protected $custom; + protected function setUp(): void { $this->custom = new Zend_Gdata_Spreadsheets_Extension_Custom(); diff --git a/tests/Zend/Gdata/Spreadsheets/DocumentQueryTest.php b/tests/Zend/Gdata/Spreadsheets/DocumentQueryTest.php index 9849e19c62..c9e6c66887 100644 --- a/tests/Zend/Gdata/Spreadsheets/DocumentQueryTest.php +++ b/tests/Zend/Gdata/Spreadsheets/DocumentQueryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_DocumentQueryTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_DocumentQuery|mixed + */ + protected $docQuery; + protected function setUp(): void { $this->docQuery = new Zend_Gdata_Spreadsheets_DocumentQuery(); diff --git a/tests/Zend/Gdata/Spreadsheets/ListEntryTest.php b/tests/Zend/Gdata/Spreadsheets/ListEntryTest.php index a3d81331ca..6e5a7864af 100644 --- a/tests/Zend/Gdata/Spreadsheets/ListEntryTest.php +++ b/tests/Zend/Gdata/Spreadsheets/ListEntryTest.php @@ -37,6 +37,16 @@ */ class Zend_Gdata_Spreadsheets_ListEntryTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_ListEntry|mixed + */ + protected $listEntry; + + /** + * @var mixed[]|\Zend_Gdata_Spreadsheets_Extension_Custom[]|mixed + */ + protected $rowData; + protected function setUp(): void { $this->listEntry = new Zend_Gdata_Spreadsheets_ListEntry(); diff --git a/tests/Zend/Gdata/Spreadsheets/ListFeedTest.php b/tests/Zend/Gdata/Spreadsheets/ListFeedTest.php index f2526b6e17..7466a6d801 100644 --- a/tests/Zend/Gdata/Spreadsheets/ListFeedTest.php +++ b/tests/Zend/Gdata/Spreadsheets/ListFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_ListFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_ListFeed|mixed + */ + protected $listFeed; + protected function setUp(): void { $this->listFeed = new Zend_Gdata_Spreadsheets_ListFeed( diff --git a/tests/Zend/Gdata/Spreadsheets/ListQueryTest.php b/tests/Zend/Gdata/Spreadsheets/ListQueryTest.php index 583ca75c73..ed12e536a6 100644 --- a/tests/Zend/Gdata/Spreadsheets/ListQueryTest.php +++ b/tests/Zend/Gdata/Spreadsheets/ListQueryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_ListQueryTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_ListQuery|mixed + */ + protected $docQuery; + protected function setUp(): void { $this->docQuery = new Zend_Gdata_Spreadsheets_ListQuery(); diff --git a/tests/Zend/Gdata/Spreadsheets/RowCountTest.php b/tests/Zend/Gdata/Spreadsheets/RowCountTest.php index 9e5e62576f..89ee780b32 100644 --- a/tests/Zend/Gdata/Spreadsheets/RowCountTest.php +++ b/tests/Zend/Gdata/Spreadsheets/RowCountTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_RowCountTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_Extension_RowCount|mixed + */ + protected $rowCount; + protected function setUp(): void { $this->rowCount = new Zend_Gdata_Spreadsheets_Extension_RowCount(); diff --git a/tests/Zend/Gdata/Spreadsheets/SpreadsheetFeedTest.php b/tests/Zend/Gdata/Spreadsheets/SpreadsheetFeedTest.php index 9230c37545..63814185d9 100644 --- a/tests/Zend/Gdata/Spreadsheets/SpreadsheetFeedTest.php +++ b/tests/Zend/Gdata/Spreadsheets/SpreadsheetFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_SpreadsheetFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_SpreadsheetFeed|mixed + */ + protected $sprFeed; + protected function setUp(): void { $this->sprFeed = new Zend_Gdata_Spreadsheets_SpreadsheetFeed( diff --git a/tests/Zend/Gdata/Spreadsheets/WorksheetEntryTest.php b/tests/Zend/Gdata/Spreadsheets/WorksheetEntryTest.php index 09dba28397..888a0f7c66 100644 --- a/tests/Zend/Gdata/Spreadsheets/WorksheetEntryTest.php +++ b/tests/Zend/Gdata/Spreadsheets/WorksheetEntryTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_WorksheetEntryTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_WorksheetEntry|mixed + */ + protected $wksEntry; + protected function setUp(): void { $this->wksEntry = new Zend_Gdata_Spreadsheets_WorksheetEntry(); diff --git a/tests/Zend/Gdata/Spreadsheets/WorksheetFeedTest.php b/tests/Zend/Gdata/Spreadsheets/WorksheetFeedTest.php index 4ba85b048f..6c32f6e4aa 100644 --- a/tests/Zend/Gdata/Spreadsheets/WorksheetFeedTest.php +++ b/tests/Zend/Gdata/Spreadsheets/WorksheetFeedTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_Spreadsheets_WorksheetFeedTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets_WorksheetFeed|mixed + */ + protected $wksFeed; + protected function setUp(): void { $this->wksFeed = new Zend_Gdata_Spreadsheets_WorksheetFeed( diff --git a/tests/Zend/Gdata/SpreadsheetsOnlineTest.php b/tests/Zend/Gdata/SpreadsheetsOnlineTest.php index e9fc8c9a9e..df7fe085ba 100644 --- a/tests/Zend/Gdata/SpreadsheetsOnlineTest.php +++ b/tests/Zend/Gdata/SpreadsheetsOnlineTest.php @@ -38,6 +38,21 @@ */ class Zend_Gdata_SpreadsheetsOnlineTest extends TestCase { + /** + * @var mixed + */ + protected $sprKey; + + /** + * @var mixed + */ + protected $wksId; + + /** + * @var \Zend_Gdata_Spreadsheets|mixed + */ + protected $gdata; + protected function setUp(): void { $user = constant('TESTS_ZEND_GDATA_CLIENTLOGIN_EMAIL'); diff --git a/tests/Zend/Gdata/SpreadsheetsTest.php b/tests/Zend/Gdata/SpreadsheetsTest.php index 94fffdf3ad..af49708435 100644 --- a/tests/Zend/Gdata/SpreadsheetsTest.php +++ b/tests/Zend/Gdata/SpreadsheetsTest.php @@ -37,6 +37,11 @@ */ class Zend_Gdata_SpreadsheetsTest extends TestCase { + /** + * @var \Zend_Gdata_Spreadsheets + */ + protected $gdata; + protected function setUp(): void { $this->gdata = new Zend_Gdata_Spreadsheets(new Zend_Http_Client()); diff --git a/tests/Zend/Gdata/TestUtility/MockHttpClient.php b/tests/Zend/Gdata/TestUtility/MockHttpClient.php index b252fc2d74..d2ed111276 100644 --- a/tests/Zend/Gdata/TestUtility/MockHttpClient.php +++ b/tests/Zend/Gdata/TestUtility/MockHttpClient.php @@ -31,7 +31,7 @@ */ class Test_Zend_Gdata_MockHttpClient_Request { - public $methd; + public $method; public $uri; public $http_ver; public $headers; diff --git a/tests/Zend/Gdata/TransparencyTest.php b/tests/Zend/Gdata/TransparencyTest.php index d5d982a7d8..09151b6c76 100644 --- a/tests/Zend/Gdata/TransparencyTest.php +++ b/tests/Zend/Gdata/TransparencyTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_TransparencyTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $transparencyText; + + /** + * @var \Zend_Gdata_Extension_Transparency|mixed + */ + protected $transparency; + protected function setUp(): void { $this->transparencyText = file_get_contents( diff --git a/tests/Zend/Gdata/VisibilityTest.php b/tests/Zend/Gdata/VisibilityTest.php index 9bc432cc56..4ab6ad14ba 100644 --- a/tests/Zend/Gdata/VisibilityTest.php +++ b/tests/Zend/Gdata/VisibilityTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_VisibilityTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $visibilityText; + + /** + * @var \Zend_Gdata_Extension_Visibility|mixed + */ + protected $visibility; + protected function setUp(): void { $this->visibilityText = file_get_contents( diff --git a/tests/Zend/Gdata/WhenTest.php b/tests/Zend/Gdata/WhenTest.php index fa4982802e..48301cfdfc 100644 --- a/tests/Zend/Gdata/WhenTest.php +++ b/tests/Zend/Gdata/WhenTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_WhenTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $whenText; + + /** + * @var \Zend_Gdata_Extension_When|mixed + */ + protected $when; + protected function setUp(): void { $this->whenText = file_get_contents( diff --git a/tests/Zend/Gdata/WhereTest.php b/tests/Zend/Gdata/WhereTest.php index 882b9ae9e0..351745c5c4 100644 --- a/tests/Zend/Gdata/WhereTest.php +++ b/tests/Zend/Gdata/WhereTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_WhereTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $whereText; + + /** + * @var \Zend_Gdata_Extension_Where|mixed + */ + protected $where; + protected function setUp(): void { $this->whereText = file_get_contents( diff --git a/tests/Zend/Gdata/WhoTest.php b/tests/Zend/Gdata/WhoTest.php index 881859b6d2..f92b3b4b88 100644 --- a/tests/Zend/Gdata/WhoTest.php +++ b/tests/Zend/Gdata/WhoTest.php @@ -36,6 +36,16 @@ */ class Zend_Gdata_WhoTest extends TestCase { + /** + * @var string|bool|mixed + */ + protected $whoText; + + /** + * @var \Zend_Gdata_Extension_Who|mixed + */ + protected $who; + protected function setUp(): void { $this->whoText = file_get_contents( From 3f7742a0d20a595d6d7a31748dcec2076da58d0f Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:47 +0700 Subject: [PATCH 35/36] Add missing properties to classes tests/Zend/Service/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Service/AllTests.php --- tests/Zend/Service/AkismetTest.php | 15 ++++++++++ .../Service/Amazon/Authentication/V1Test.php | 5 ++++ .../Amazon/Ec2/AvailabilityzonesTest.php | 5 ++++ .../Service/Amazon/Ec2/CloudWatchTest.php | 5 ++++ tests/Zend/Service/Amazon/Ec2/EbsTest.php | 5 ++++ .../Zend/Service/Amazon/Ec2/ElasticipTest.php | 5 ++++ tests/Zend/Service/Amazon/Ec2/ImageTest.php | 5 ++++ .../Amazon/Ec2/InstanceReservedTest.php | 5 ++++ .../Zend/Service/Amazon/Ec2/InstanceTest.php | 5 ++++ .../Amazon/Ec2/InstanceWindowsTest.php | 5 ++++ tests/Zend/Service/Amazon/Ec2/KeypairTest.php | 5 ++++ tests/Zend/Service/Amazon/Ec2/RegionTest.php | 10 +++++++ .../Service/Amazon/Ec2/SecuritygroupsTest.php | 5 ++++ tests/Zend/Service/Amazon/S3/OnlineTest.php | 15 ++++++++++ tests/Zend/Service/Amazon/S3/StreamTest.php | 30 +++++++++++++++++++ tests/Zend/Service/Amazon/Sqs/OnlineTest.php | 5 ++++ .../Service/Rackspace/Servers/OnlineTest.php | 5 ++++ tests/Zend/Service/StrikeIron/BaseTest.php | 10 +++++++ tests/Zend/Service/StrikeIron/NoSoapTest.php | 5 ++++ .../StrikeIron/SalesUseTaxBasicTest.php | 10 +++++++ .../Service/StrikeIron/StrikeIronTest.php | 16 ++++++++++ .../StrikeIron/USAddressVerificationTest.php | 10 +++++++ .../Service/StrikeIron/ZipCodeInfoTest.php | 10 +++++++ .../WindowsAzure/SessionHandlerTest.php | 2 ++ 24 files changed, 198 insertions(+) diff --git a/tests/Zend/Service/AkismetTest.php b/tests/Zend/Service/AkismetTest.php index b43752eaaa..6a0ce3e5bd 100644 --- a/tests/Zend/Service/AkismetTest.php +++ b/tests/Zend/Service/AkismetTest.php @@ -44,6 +44,21 @@ */ class Zend_Service_AkismetTest extends TestCase { + /** + * @var \Zend_Service_Akismet|mixed + */ + protected $akismet; + + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + + /** + * @var array|mixed + */ + protected $comment; + protected function setUp(): void { $this->akismet = new Zend_Service_Akismet('somebogusapikey', 'http://framework.zend.com/wiki/'); diff --git a/tests/Zend/Service/Amazon/Authentication/V1Test.php b/tests/Zend/Service/Amazon/Authentication/V1Test.php index 0f5e7bf69f..9db04c223c 100644 --- a/tests/Zend/Service/Amazon/Authentication/V1Test.php +++ b/tests/Zend/Service/Amazon/Authentication/V1Test.php @@ -36,6 +36,11 @@ */ class Zend_Service_Amazon_Authentication_V1Test extends TestCase { + /** + * @var \Zend_Service_Amazon_Authentication_V1|null|mixed + */ + protected $Zend_Service_Amazon_Authentication_V1; + /** * @var Zend_Service_Amazon_Authentication_V2 */ diff --git a/tests/Zend/Service/Amazon/Ec2/AvailabilityzonesTest.php b/tests/Zend/Service/Amazon/Ec2/AvailabilityzonesTest.php index f7d1be8bfc..2209eb97bc 100644 --- a/tests/Zend/Service/Amazon/Ec2/AvailabilityzonesTest.php +++ b/tests/Zend/Service/Amazon/Ec2/AvailabilityzonesTest.php @@ -41,6 +41,11 @@ */ class Zend_Service_Amazon_Ec2_AvailabilityzonesTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + /** * @var Zend_Service_Amazon_Ec2_Availabilityzones */ diff --git a/tests/Zend/Service/Amazon/Ec2/CloudWatchTest.php b/tests/Zend/Service/Amazon/Ec2/CloudWatchTest.php index 5670f57d43..c84f9fb325 100644 --- a/tests/Zend/Service/Amazon/Ec2/CloudWatchTest.php +++ b/tests/Zend/Service/Amazon/Ec2/CloudWatchTest.php @@ -41,6 +41,11 @@ */ class Zend_Service_Amazon_Ec2_CloudWatchTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + /** * @var Zend_Service_Amazon_Ec2_CloudWatch */ diff --git a/tests/Zend/Service/Amazon/Ec2/EbsTest.php b/tests/Zend/Service/Amazon/Ec2/EbsTest.php index 101f72d7ee..f758c38a1a 100644 --- a/tests/Zend/Service/Amazon/Ec2/EbsTest.php +++ b/tests/Zend/Service/Amazon/Ec2/EbsTest.php @@ -41,6 +41,11 @@ */ class Zend_Service_Amazon_Ec2_EbsTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + /** * @var Zend_Service_Amazon_Ec2_Ebs */ diff --git a/tests/Zend/Service/Amazon/Ec2/ElasticipTest.php b/tests/Zend/Service/Amazon/Ec2/ElasticipTest.php index 38a8084d20..ebd6c1169a 100644 --- a/tests/Zend/Service/Amazon/Ec2/ElasticipTest.php +++ b/tests/Zend/Service/Amazon/Ec2/ElasticipTest.php @@ -41,6 +41,11 @@ */ class Zend_Service_Amazon_Ec2_ElasticipTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + /** * @var Zend_Service_Amazon_Ec2_Elasticip */ diff --git a/tests/Zend/Service/Amazon/Ec2/ImageTest.php b/tests/Zend/Service/Amazon/Ec2/ImageTest.php index 5521c45751..06a595df47 100644 --- a/tests/Zend/Service/Amazon/Ec2/ImageTest.php +++ b/tests/Zend/Service/Amazon/Ec2/ImageTest.php @@ -42,6 +42,11 @@ */ class Zend_Service_Amazon_Ec2_ImageTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + /** * @var Zend_Service_Amazon_Ec2_Image */ diff --git a/tests/Zend/Service/Amazon/Ec2/InstanceReservedTest.php b/tests/Zend/Service/Amazon/Ec2/InstanceReservedTest.php index 4129c10a6e..ac9c30b82b 100644 --- a/tests/Zend/Service/Amazon/Ec2/InstanceReservedTest.php +++ b/tests/Zend/Service/Amazon/Ec2/InstanceReservedTest.php @@ -43,6 +43,11 @@ */ class InstanceReservedTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + /** * @var Zend_Service_Amazon_Ec2_Instance_Reserved */ diff --git a/tests/Zend/Service/Amazon/Ec2/InstanceTest.php b/tests/Zend/Service/Amazon/Ec2/InstanceTest.php index 2d5b154af0..e5f89557b2 100644 --- a/tests/Zend/Service/Amazon/Ec2/InstanceTest.php +++ b/tests/Zend/Service/Amazon/Ec2/InstanceTest.php @@ -42,6 +42,11 @@ */ class Zend_Service_Amazon_Ec2_InstanceTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + /** * @var Zend_Service_Amazon_Ec2_Instance */ diff --git a/tests/Zend/Service/Amazon/Ec2/InstanceWindowsTest.php b/tests/Zend/Service/Amazon/Ec2/InstanceWindowsTest.php index 6dc0e08c46..d382862d59 100644 --- a/tests/Zend/Service/Amazon/Ec2/InstanceWindowsTest.php +++ b/tests/Zend/Service/Amazon/Ec2/InstanceWindowsTest.php @@ -43,6 +43,11 @@ */ class InstanceWindowsTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + /** * @var Zend_Service_Amazon_Ec2_Instance_Windows */ diff --git a/tests/Zend/Service/Amazon/Ec2/KeypairTest.php b/tests/Zend/Service/Amazon/Ec2/KeypairTest.php index 41c01bdb37..7d63fd5cf2 100644 --- a/tests/Zend/Service/Amazon/Ec2/KeypairTest.php +++ b/tests/Zend/Service/Amazon/Ec2/KeypairTest.php @@ -41,6 +41,11 @@ */ class Zend_Service_Amazon_Ec2_KeypairTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + /** * @var Zend_Service_Amazon_Ec2_Keypair */ diff --git a/tests/Zend/Service/Amazon/Ec2/RegionTest.php b/tests/Zend/Service/Amazon/Ec2/RegionTest.php index af2bdf15ab..e89c306ae4 100644 --- a/tests/Zend/Service/Amazon/Ec2/RegionTest.php +++ b/tests/Zend/Service/Amazon/Ec2/RegionTest.php @@ -41,6 +41,16 @@ */ class Zend_Service_Amazon_Ec2_RegionTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + + /** + * @var null + */ + protected $Zend_Service_Amazon_Ec2_Availabilityzones; + /** * @var Zend_Service_Amazon_Ec2_Availabilityzones */ diff --git a/tests/Zend/Service/Amazon/Ec2/SecuritygroupsTest.php b/tests/Zend/Service/Amazon/Ec2/SecuritygroupsTest.php index 1d02be825b..41ada8e9f9 100644 --- a/tests/Zend/Service/Amazon/Ec2/SecuritygroupsTest.php +++ b/tests/Zend/Service/Amazon/Ec2/SecuritygroupsTest.php @@ -41,6 +41,11 @@ */ class Zend_Service_Amazon_Ec2_SecuritygroupsTest extends TestCase { + /** + * @var \Zend_Http_Client_Adapter_Test|mixed + */ + protected $adapter; + /** * @var Zend_Service_Amazon_Ec2_Securitygroups */ diff --git a/tests/Zend/Service/Amazon/S3/OnlineTest.php b/tests/Zend/Service/Amazon/S3/OnlineTest.php index 4a23382d48..aa1922b214 100755 --- a/tests/Zend/Service/Amazon/S3/OnlineTest.php +++ b/tests/Zend/Service/Amazon/S3/OnlineTest.php @@ -46,6 +46,21 @@ */ class Zend_Service_Amazon_S3_OnlineTest extends TestCase { + /** + * @var string|mixed + */ + protected $_nosuchbucket; + + /** + * @var mixed + */ + protected $_bucket; + + /** + * @var string|mixed + */ + protected $_bucketEu; + /** * Reference to Amazon service consumer object * diff --git a/tests/Zend/Service/Amazon/S3/StreamTest.php b/tests/Zend/Service/Amazon/S3/StreamTest.php index 570f041eca..7102d7c96e 100755 --- a/tests/Zend/Service/Amazon/S3/StreamTest.php +++ b/tests/Zend/Service/Amazon/S3/StreamTest.php @@ -45,6 +45,36 @@ */ class Zend_Service_Amazon_S3_StreamTest extends TestCase { + /** + * @var \Zend_Service_Amazon_S3|mixed + */ + protected $_amazon; + + /** + * @var string + */ + protected $_nosuchbucket; + + /** + * @var \Zend_Http_Client_Adapter_Socket|mixed + */ + protected $_httpClientAdapterSocket; + + /** + * @var mixed + */ + protected $_bucket; + + /** + * @var string|mixed + */ + protected $_bucketName; + + /** + * @var string|mixed + */ + protected $_fileName; + /** * Sets up this test case * diff --git a/tests/Zend/Service/Amazon/Sqs/OnlineTest.php b/tests/Zend/Service/Amazon/Sqs/OnlineTest.php index a24abeaa5a..1217568d22 100644 --- a/tests/Zend/Service/Amazon/Sqs/OnlineTest.php +++ b/tests/Zend/Service/Amazon/Sqs/OnlineTest.php @@ -38,6 +38,11 @@ */ class Zend_Service_Amazon_Sqs_OnlineTest extends TestCase { + /** + * @var mixed + */ + protected $_queue_name; + /** * Reference to Amazon service consumer object * diff --git a/tests/Zend/Service/Rackspace/Servers/OnlineTest.php b/tests/Zend/Service/Rackspace/Servers/OnlineTest.php index 0880ebf26f..2cbaaa8634 100644 --- a/tests/Zend/Service/Rackspace/Servers/OnlineTest.php +++ b/tests/Zend/Service/Rackspace/Servers/OnlineTest.php @@ -35,6 +35,11 @@ */ class Zend_Service_Rackspace_Servers_OnlineTest extends TestCase { + /** + * @var string + */ + protected $filename; + /** * Reference to Rackspace Servers object * diff --git a/tests/Zend/Service/StrikeIron/BaseTest.php b/tests/Zend/Service/StrikeIron/BaseTest.php index e7087e6f89..7cbb175209 100644 --- a/tests/Zend/Service/StrikeIron/BaseTest.php +++ b/tests/Zend/Service/StrikeIron/BaseTest.php @@ -39,6 +39,16 @@ */ class Zend_Service_StrikeIron_BaseTest extends TestCase { + /** + * @var \Zend_Service_StrikeIron_BaseTest_MockSoapClient|mixed + */ + protected $soapClient; + + /** + * @var \Zend_Service_StrikeIron_Base|mixed + */ + protected $base; + protected function setUp(): void { $this->soapClient = new Zend_Service_StrikeIron_BaseTest_MockSoapClient(); diff --git a/tests/Zend/Service/StrikeIron/NoSoapTest.php b/tests/Zend/Service/StrikeIron/NoSoapTest.php index 59841ffd66..63d94dd49a 100644 --- a/tests/Zend/Service/StrikeIron/NoSoapTest.php +++ b/tests/Zend/Service/StrikeIron/NoSoapTest.php @@ -41,6 +41,11 @@ */ class Zend_Service_StrikeIron_NoSoapTest extends TestCase { + /** + * @var \Zend_Service_StrikeIron_BaseTest_MockSoapClient|mixed + */ + protected $soapClient; + protected function setUp(): void { $this->soapClient = new Zend_Service_StrikeIron_BaseTest_MockSoapClient(); diff --git a/tests/Zend/Service/StrikeIron/SalesUseTaxBasicTest.php b/tests/Zend/Service/StrikeIron/SalesUseTaxBasicTest.php index 9f62b8b4a8..eb92ce0e8c 100644 --- a/tests/Zend/Service/StrikeIron/SalesUseTaxBasicTest.php +++ b/tests/Zend/Service/StrikeIron/SalesUseTaxBasicTest.php @@ -45,6 +45,16 @@ */ class Zend_Service_StrikeIron_SalesUseTaxBasicTest extends TestCase { + /** + * @var \stdclass|mixed + */ + protected $soapClient; + + /** + * @var \Zend_Service_StrikeIron_SalesUseTaxBasic|mixed + */ + protected $service; + protected function setUp(): void { $this->soapClient = new stdclass(); diff --git a/tests/Zend/Service/StrikeIron/StrikeIronTest.php b/tests/Zend/Service/StrikeIron/StrikeIronTest.php index 281f7e191f..88ad638478 100644 --- a/tests/Zend/Service/StrikeIron/StrikeIronTest.php +++ b/tests/Zend/Service/StrikeIron/StrikeIronTest.php @@ -39,6 +39,21 @@ */ class Zend_Service_StrikeIron_StrikeIronTest extends TestCase { + /** + * @var \stdclass|mixed + */ + protected $soapClient; + + /** + * @var array|mixed + */ + protected $options; + + /** + * @var \Zend_Service_StrikeIron|mixed + */ + protected $strikeIron; + protected function setUp(): void { // stub out SOAPClient instance @@ -111,6 +126,7 @@ public function testFactoryMergesItsOptionsWithConstructorOptions() */ class Zend_Service_StrikeIron_StrikeIronTest_StubbedBase { + protected $options; public function __construct($options) { $this->options = $options; diff --git a/tests/Zend/Service/StrikeIron/USAddressVerificationTest.php b/tests/Zend/Service/StrikeIron/USAddressVerificationTest.php index 4610b32ad2..140cc9181e 100644 --- a/tests/Zend/Service/StrikeIron/USAddressVerificationTest.php +++ b/tests/Zend/Service/StrikeIron/USAddressVerificationTest.php @@ -45,6 +45,16 @@ */ class Zend_Service_StrikeIron_USAddressVerificationTest extends TestCase { + /** + * @var \stdclass|mixed + */ + protected $soapClient; + + /** + * @var \Zend_Service_StrikeIron_USAddressVerification|mixed + */ + protected $service; + protected function setUp(): void { $this->soapClient = new stdclass(); diff --git a/tests/Zend/Service/StrikeIron/ZipCodeInfoTest.php b/tests/Zend/Service/StrikeIron/ZipCodeInfoTest.php index e1fb2fbd09..41f5fe2a1f 100644 --- a/tests/Zend/Service/StrikeIron/ZipCodeInfoTest.php +++ b/tests/Zend/Service/StrikeIron/ZipCodeInfoTest.php @@ -45,6 +45,16 @@ */ class Zend_Service_StrikeIron_ZipCodeInfoTest extends TestCase { + /** + * @var \stdclass|mixed + */ + protected $soapClient; + + /** + * @var \Zend_Service_StrikeIron_ZipCodeInfo|mixed + */ + protected $service; + protected function setUp(): void { $this->soapClient = new stdclass(); diff --git a/tests/Zend/Service/WindowsAzure/SessionHandlerTest.php b/tests/Zend/Service/WindowsAzure/SessionHandlerTest.php index 49bc710077..9a0ca234c1 100644 --- a/tests/Zend/Service/WindowsAzure/SessionHandlerTest.php +++ b/tests/Zend/Service/WindowsAzure/SessionHandlerTest.php @@ -40,6 +40,8 @@ */ class Zend_Service_WindowsAzure_SessionHandlerTest extends TestCase { + protected $status; + protected static $uniqId = 0; public function __construct() From e352dd192bbf43eaa913c01abc9decc20fedb4df Mon Sep 17 00:00:00 2001 From: hungtd Date: Wed, 23 Nov 2022 11:15:47 +0700 Subject: [PATCH 36/36] Add missing properties to classes tests/Zend/Test/PHPUnit/* PHP 8.2: Dynamic Properties are deprecated fix Reference: https://php.watch/versions/8.2/dynamic-properties-deprecated Verified by: (not working right now, need migrate code Zend_Test_PHPUnit_ControllerTestCase support phpunit 9) docker run -u "$(id -u):$(id -g)" -v $(pwd):$(pwd) -w $(pwd) -t --rm php:8.2-rc-cli-alpine -d memory_limit=-1 ./bin/phpunit -v --bootstrap tests/TestHelper.php tests/Zend/Test/PHPUnit/AllTests.php --- tests/Zend/Test/PHPUnit/ControllerTestCaseTest.php | 5 +++++ tests/Zend/Test/PHPUnit/Db/TestCaseTest.php | 2 ++ 2 files changed, 7 insertions(+) diff --git a/tests/Zend/Test/PHPUnit/ControllerTestCaseTest.php b/tests/Zend/Test/PHPUnit/ControllerTestCaseTest.php index 68dfbf1969..0d9999c30d 100644 --- a/tests/Zend/Test/PHPUnit/ControllerTestCaseTest.php +++ b/tests/Zend/Test/PHPUnit/ControllerTestCaseTest.php @@ -55,6 +55,11 @@ */ class Zend_Test_PHPUnit_ControllerTestCaseTest extends TestCase { + /** + * @var \Zend_Test_PHPUnit_ControllerTestCaseTest_Concrete|mixed + */ + protected $testCase; + /** * Runs the test methods of this class. * diff --git a/tests/Zend/Test/PHPUnit/Db/TestCaseTest.php b/tests/Zend/Test/PHPUnit/Db/TestCaseTest.php index 2443f123b9..19d95af697 100644 --- a/tests/Zend/Test/PHPUnit/Db/TestCaseTest.php +++ b/tests/Zend/Test/PHPUnit/Db/TestCaseTest.php @@ -43,6 +43,8 @@ */ class Zend_Test_PHPUnit_Db_TestCaseTest extends Zend_Test_PHPUnit_DatabaseTestCase { + protected $databaseTester; + /** * Contains a Database Connection *