<?php
/*
+--------------------------------------------------------------------+
-| CiviCRM version 4.3 |
+| CiviCRM version 4.5 |
+--------------------------------------------------------------------+
-| Copyright CiviCRM LLC (c) 2004-2013 |
+| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class CRM_Extension_Container_CollectionTest
+ */
class CRM_Extension_Container_CollectionTest extends CiviUnitTestCase {
+ //@todo make BAO enotice compliant & remove the line below
+ // WARNING - NEVER COPY & PASTE $_eNoticeCompliant = FALSE
+ // new test classes should be compliant.
+ public $_eNoticeCompliant = FALSE;
function setUp() {
parent::setUp();
}
$this->assertEquals('b', $cacheData['test.whiz']); // 'test.whiz' was defined in the 'b' container
}
+ /**
+ * @param CRM_Utils_Cache_Interface $cache
+ * @param null $cacheKey
+ *
+ * @return CRM_Extension_Container_Collection
+ */
function _createContainer(CRM_Utils_Cache_Interface $cache = NULL, $cacheKey = NULL) {
$containers = array();
$containers['a'] = new CRM_Extension_Container_Static(array(