コード例 #1
0
 /**
  * 
  */
 public function testSavePreventsReplacementOfEmptyProperties()
 {
     $tmpFile = tempnam(sys_get_temp_dir(), '');
     copy(__DIR__ . '/testdata/empty.json', $tmpFile);
     $this->helper->setComposerFile($tmpFile);
     $this->helper->setVersion(new \Liip\RMT\Version('1.2.3'));
     $contents = file_get_contents($tmpFile);
     $this->assertNotContains('_empty_', $contents);
 }
コード例 #2
0
 /**
  * Execute replacement.
  * 
  */
 public function execute()
 {
     $helper = new ComposerConfig($this->context);
     $helper->setVersion($this->context->getNewVersion());
     $this->confirmSuccess();
 }