Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete dynamic properties for tests/Zend/** #289

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
50db2d3
Add missing properties to classes tests/Zend/Amf/*
hungtrinh Nov 23, 2022
43a90e1
Add missing properties to classes tests/Zend/Application/Bootstrap/*
hungtrinh Nov 23, 2022
9f6bc7b
Add missing properties to classes tests/Zend/Cache/*
hungtrinh Nov 23, 2022
4d2e4fb
Add missing properties to classes tests/Zend/Captcha/*
hungtrinh Nov 23, 2022
2f13694
Add missing properties to classes tests/Zend/Config/*
hungtrinh Nov 23, 2022
6ee2bc3
Add missing properties to classes tests/Zend/Controller/*
hungtrinh Nov 23, 2022
dafccd0
Add missing properties to classes tests/Zend/Crypt/Rsa/RsaTest.php
hungtrinh Nov 23, 2022
9d7f4ad
Add missing properties to classes tests/Zend/Date/*
hungtrinh Nov 23, 2022
cedeeea
Add missing properties to classes tests/Zend/Dojo/*
hungtrinh Nov 23, 2022
ee0b205
Add missing properties to classes tests/Zend/Dom/*
hungtrinh Nov 23, 2022
33c457b
Add missing properties to classes tests/Zend/EventManager/*
hungtrinh Nov 23, 2022
c549747
Add missing properties to classes tests/Zend/Feed/*
hungtrinh Nov 23, 2022
658d3d3
Add missing properties to classes tests/Zend/Filter/*
hungtrinh Nov 23, 2022
5d1ff9a
Add missing properties to classes tests/Zend/Form/*
hungtrinh Nov 23, 2022
76ffa63
Add missing properties to classes tests/Zend/Http/*
hungtrinh Nov 23, 2022
6c432ab
Add missing properties to classes tests/Zend/Json/*
hungtrinh Nov 23, 2022
7a3813a
Add missing properties to classes tests/Zend/Loader/*
hungtrinh Nov 23, 2022
321e26d
Add missing properties to classes tests/Zend/Log/*
hungtrinh Nov 23, 2022
a1c160f
Add missing properties to classes tests/Zend/Mail/*
hungtrinh Nov 23, 2022
aa321dd
Add missing properties to classes tests/Zend/Measure/*
hungtrinh Nov 23, 2022
a7e83c5
Add missing properties to classes tests/Zend/Mobile/Push/*
hungtrinh Nov 23, 2022
672731c
Add missing properties to classes tests/Zend/Oauth/*
hungtrinh Nov 23, 2022
e95455c
Add missing properties to classes tests/Zend/OpenId/*
hungtrinh Nov 23, 2022
29fc44b
Add missing properties to classes tests/Zend/Queue/*
hungtrinh Nov 23, 2022
4ff63b7
Add missing properties to classes tests/Zend/Stdlib/*
hungtrinh Nov 23, 2022
294d67d
Add missing properties to classes tests/Zend/Validate/*
hungtrinh Nov 23, 2022
8ae25ac
Add missing properties to classes tests/Zend/XmlRpc/*
hungtrinh Nov 23, 2022
e7f32a5
Add missing properties to classes tests/Zend/View/Helper/*
hungtrinh Nov 23, 2022
645b0f5
Add missing properties to classes tests/Zend/CurrencyTest.php
hungtrinh Nov 23, 2022
dd45008
Add missing properties to classes tests/Zend/DateTest.php
hungtrinh Nov 23, 2022
d26f34a
Add missing properties to classes tests/Zend/FilterTest.php
hungtrinh Nov 23, 2022
fe4b1b6
Add missing properties to classes tests/Zend/LoaderTest.php
hungtrinh Nov 23, 2022
44df8d7
Add missing properties to classes tests/Zend/ValidateTest.php
hungtrinh Nov 23, 2022
0584ebc
Add missing properties to classes tests/Zend/Gdata/*
hungtrinh Nov 23, 2022
3f7742a
Add missing properties to classes tests/Zend/Service/*
hungtrinh Nov 23, 2022
e352dd1
Add missing properties to classes tests/Zend/Test/PHPUnit/*
hungtrinh Nov 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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