Exemplo n.º 1
0
 public function setup()
 {
     $this->_projectDirectory = dirname(__FILE__) . '/_files/project1/';
     $this->_projectProfileFile = dirname(__FILE__) . '/_files/.zfproject.xml.orig';
     $this->_removeProjectFiles();
     Zend_Tool_Project_Context_Repository::resetInstance();
     $contextRegistry = Zend_Tool_Project_Context_Repository::getInstance();
     $contextRegistry->addContextsFromDirectory(dirname(__FILE__) . '/../../../../library/Zend/Tool/Project/Context/Zf/', 'Zend_Tool_Project_Context_Zf_');
     $this->_standardProfileFromData = new Zend_Tool_Project_Profile();
     $this->_standardProfileFromData->setAttribute('profileData', file_get_contents($this->_projectProfileFile));
     $this->_standardProfileFromData->setAttribute('projectDirectory', $this->_projectDirectory);
 }
Exemplo n.º 2
0
 public function setUp()
 {
     Zend_Tool_Project_Context_Repository::resetInstance();
 }