Skip to content

Commit

Permalink
Merge pull request #289 from hungtrinh/php82-complete-dynamic-propert…
Browse files Browse the repository at this point in the history
…ies-for-tests
  • Loading branch information
glensc authored Nov 23, 2022
2 parents 29a05ff + e352dd1 commit 713e3f4
Show file tree
Hide file tree
Showing 291 changed files with 2,906 additions and 66 deletions.
5 changes: 5 additions & 0 deletions tests/Zend/Amf/Adobe/IntrospectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand Down
13 changes: 13 additions & 0 deletions tests/Zend/Amf/AuthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
*/
class Zend_Amf_AuthTest extends TestCase
{
/**
* @var \Zend_Acl|mixed
*/
protected $_acl;

/**
* Enter description here...
*
Expand Down Expand Up @@ -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;
Expand Down
10 changes: 10 additions & 0 deletions tests/Zend/Amf/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
5 changes: 5 additions & 0 deletions tests/Zend/Amf/Value/MessageBodyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
21 changes: 20 additions & 1 deletion tests/Zend/Application/Bootstrap/BootstrapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand Down
11 changes: 10 additions & 1 deletion tests/Zend/Cache/ClassFrontendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 5 additions & 1 deletion tests/Zend/Cache/CoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion tests/Zend/Cache/FileFrontendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 5 additions & 1 deletion tests/Zend/Cache/FunctionFrontendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion tests/Zend/Cache/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 5 additions & 1 deletion tests/Zend/Cache/OutputFrontendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion tests/Zend/Cache/PageFrontendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 10 additions & 1 deletion tests/Zend/Captcha/DumbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
21 changes: 20 additions & 1 deletion tests/Zend/Captcha/FigletTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
27 changes: 26 additions & 1 deletion tests/Zend/Captcha/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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());
}
Expand Down
13 changes: 12 additions & 1 deletion tests/Zend/Captcha/ReCaptchaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
26 changes: 25 additions & 1 deletion tests/Zend/Config/IniTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
21 changes: 20 additions & 1 deletion tests/Zend/Config/JsonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 713e3f4

Please sign in to comment.