/** * */ 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); }
/** * Execute replacement. * */ public function execute() { $helper = new ComposerConfig($this->context); $helper->setVersion($this->context->getNewVersion()); $this->confirmSuccess(); }