Ejemplo n.º 1
0
 function tearDown()
 {
     Piece_Unity_Plugin_Renderer_HTML_CompatibilityTests::removeDirectoryRecursively("{$this->_cacheDirectory}/compiled-templates");
     Piece_Unity_Plugin_Factory::clearInstances();
     Piece_Unity_Context::clear();
 }
Ejemplo n.º 2
0
 /**
  * Removed a single instance safely.
  *
  * @static
  */
 function clear()
 {
     Piece_Unity_Plugin_Factory::clearInstances();
     unset($GLOBALS['PIECE_UNITY_Context_Instance']);
     $GLOBALS['PIECE_UNITY_Context_Instance'] = null;
 }