public function testGetTemplateFilename()
 {
     $config = new SkelCommandConfig($this->cliOptionsProphecy->reveal(), '/tmp/');
     $expected = realpath(__DIR__ . '/../../../../conf/phive.skeleton.xml');
     $actual = realpath($config->getTemplateFilename());
     $this->assertEquals($expected, $actual);
 }
Exemplo n.º 2
0
 /**
  * @return bool
  */
 public function allowOverwrite()
 {
     return $this->cliOptions->isSwitch('force');
 }
Exemplo n.º 3
0
 /**
  * @return string
  * @throws CLI\CommandOptionsException
  */
 public function getPharName()
 {
     return $this->cliOptions->getArgument(0);
 }
Exemplo n.º 4
0
 /**
  * @return bool
  */
 public function doNotAddToPhiveXml()
 {
     return $this->cliOptions->isSwitch('temporary');
 }