public function setup() { $this->_projectDirectory = __DIR__ . '/_files/project1/'; if (!file_exists($this->_projectDirectory)) { mkdir($this->_projectDirectory); } $this->_projectProfileFile = __DIR__ . '/_files/.zfproject.xml.orig'; $this->_removeProjectFiles(); Context\Repository::resetInstance(); $contextRegistry = Context\Repository::getInstance(); $contextRegistry->addContextsFromDirectory(__DIR__ . '/../../../../library/Zend/Tool/Project/Context/Zf/', 'Zend\\Tool\\Project\\Context\\Zf\\'); $this->_standardProfileFromData = new Profile(); $this->_standardProfileFromData->setAttribute('profileData', file_get_contents($this->_projectProfileFile)); $this->_standardProfileFromData->setAttribute('projectDirectory', $this->_projectDirectory); }
public function setUp() { Context\Repository::resetInstance(); }