// *** Everything below this should be moved to parent class ****
/**
- * @var array(DAO_Name => array(int)) List of items to garbage-collect during tearDown
+ * @var array
+ * (DAO_Name => array(int)) List of items to garbage-collect during tearDown
*/
private $_testObjects;
}
/**
- * @var array(DAO_Name => array(int)) List of items to garbage-collect during tearDown
+ * @var array
+ * (DAO_Name => array(int)) List of items to garbage-collect during tearDown
*/
private $_testObjects;
protected $cache;
/**
- * @var array list of possible web responses
+ * @var array
+ * list of possible web responses
*/
protected static $webResponses = NULL;
class CRM_Core_Config_MailerTest extends CiviUnitTestCase {
/**
- * @var array (string=>int) Keep count of the #times different functions are called
+ * Keep count of the #times different functions are called
+ * @var array
+ * (string=>int)
*/
public $calls;
protected $adhocProvider;
/**
- * @var array(string
+ * @var String[]
*/
protected $modules;
protected $mapper;
/**
- * @var string for testing cache buster generation
+ * @var string
+ * For testing cache buster generation
*/
protected $cacheBusterString = 'xBkdk3';
private $callbackLog;
/**
- * @var array (int $idx => int $contactId) list of contact IDs that have been created (in order of creation)
+ * @var array
+ * (int $idx => int $contactId) list of contact IDs that have been created (in order of creation)
*
* Note that ID this is all IDs created by the test-case -- even if the creation was subsequently rolled back
*/
const SELF_SIGNED_HTTPS_REGEX = '/This is httpclienttest-selfsign\./';
/**
- * @var string path to which we can store temp file
+ * @var string
+ * Path to which we can store temp file
*/
protected $tmpFile;
const MOCK_VERSION = 3;
/**
- * @var array(int => array('name' => string $eventName, 'type' => string $className))
+ * @var array
+ * (int => array('name' => string $eventName, 'type' => string $className))
*/
public $actualEventSequence;
/**
* When comparing timestamps, treat them as the same if they
- * occur within a certain distance of each other.
+ * occur within a certain distance (seconds) of each other.
*
- * @var int seconds
+ * @var int
*/
public $dateTolerance = 120;
class CiviCaseTestCase extends CiviUnitTestCase {
/**
- * @var string symbolic-name
+ * @var string
+ * Symbolic-name
*/
protected $caseType;
class CiviMailUtils extends PHPUnit\Framework\TestCase {
/**
- * @var mixed current outbound email option
+ * Current outbound email option
+ * @var mixed
*/
protected $_outBound_option = NULL;
/**
- * @var bool is this a webtest
+ * Is this a webtest
+ * @var bool
*/
protected $_webtest = FALSE;
protected $_tablesToTruncate = [];
/**
- * @var array of temporary directory names
+ * @var array
+ * Array of temporary directory names
*/
protected $tempDirs;
/**
- * @var bool populateOnce allows to skip db resets in setUp
+ * @var bool
+ * populateOnce allows to skip db resets in setUp
*
* WARNING! USE WITH CAUTION - IT'LL RENDER DATA DEPENDENCIES
* BETWEEN TESTS WHEN RUN IN SUITE. SUITABLE FOR LOCAL, LIMITED
*
* IF POSSIBLE, USE $this->DBResetRequired = FALSE IN YOUR TEST CASE!
*
- * see also: http://forum.civicrm.org/index.php/topic,18065.0.html
+ * @see http://forum.civicrm.org/index.php/topic,18065.0.html
*/
public static $populateOnce = FALSE;
/**
- * @var bool DBResetRequired allows skipping DB reset
- * in specific test case. If you still need
- * to reset single test (method) of such case, call
- * $this->cleanDB() in the first line of this
- * test (method).
+ * DBResetRequired allows skipping DB reset
+ * in specific test case. If you still need
+ * to reset single test (method) of such case, call
+ * $this->cleanDB() in the first line of this
+ * test (method).
+ * @var bool
*/
public $DBResetRequired = TRUE;
/**
- * @var CRM_Core_Transaction|NULL
+ * @var CRM_Core_Transaction|null
*/
private $tx = NULL;
*
* $this->hookClass->setHook('civicrm_aclWhereClause', array($this, 'aclWhereHookAllResults'));
*
- * @var CRM_Utils_Hook_UnitTests hookClass
+ * @var \CRM_Utils_Hook_UnitTests
*/
public $hookClass = NULL;
/**
- * @var array common values to be re-used multiple times within a class - usually to create the relevant entity
+ * @var array
+ * Common values to be re-used multiple times within a class - usually to create the relevant entity
*/
protected $_params = [];
class E2E_Cache_TwoInstancesTest extends CiviEndToEndTestCase {
/**
- * @var Psr\SimpleCache\CacheInterface;
+ * @var Psr\SimpleCache\CacheInterface
*/
protected $a;
/**
- * @var Psr\SimpleCache\CacheInterface;
+ * @var Psr\SimpleCache\CacheInterface
*/
protected $b;
protected $_apiversion = 3;
/**
- * @var array e.g. $this->deletes['CRM_Contact_DAO_Contact'][] = $contactID;
+ * @var array
+ * e.g. $this->deletes['CRM_Contact_DAO_Contact'][] = $contactID;
*/
protected $deletableTestObjects;