Beispiel #1
0
 public function testProfileCanSaveStorageDataToFile()
 {
     $this->_standardProfileFromData->loadFromData();
     $this->_standardProfileFromData->setAttribute('projectProfileFile', $this->_projectDirectory . 'my-xml-file.xml');
     $this->_standardProfileFromData->storeToFile();
     $this->assertTrue(file_exists($this->_projectDirectory . 'my-xml-file.xml'));
 }
Beispiel #2
0
 /**
  *
  * @expectedException Zend_Tool_Project_Exception
  */
 public function testProfileThrowsExceptionOnStoreToFile()
 {
     $profile = new Zend_Tool_Project_Profile();
     // missing file path or project path
     $profile->storeToFile();
 }