/**
  * @test
  */
 public function shouldUpdateVersionInEmConf()
 {
     $service = new EmConfService($this->root->url(), 'extension_manager');
     $service->updateVersion('47.11.4711');
     $service->write();
     $this->assertRegExp('~\'version\' => \'47\\.11\\.4711\'~', $this->emConf->getContent());
 }
 /**
  * @test
  */
 public function shouldUpdateVersionNumber()
 {
     /** @var EmConfCommand $gitCommand */
     $application = new Application();
     $application->add(new EmConfCommand());
     $command = $application->find('emconf');
     $commandTester = new CommandTester($command);
     $commandTester->execute(array('command' => $command->getName(), 'path' => $this->root->url(), 'extension' => 'extension_manager', '--version-number' => '0.0.1'));
     $this->assertRegExp('~\'version\' => \'0\\.0\\.1\'~', $this->emConf->getContent());
 }
 /**
  * visit a file and process it
  *
  * @param   vfsStreamFile  $file
  * @return  vfsStreamStructureVisitor
  */
 public function visitFile(vfsStreamFile $file)
 {
     $this->current[$file->getName()] = $file->getContent();
     return $this;
 }