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);
 }
예제 #2
0
 /**
  * @return bool
  */
 public function allowOverwrite()
 {
     return $this->cliOptions->isSwitch('force');
 }
예제 #3
0
 /**
  * @return string
  * @throws CLI\CommandOptionsException
  */
 public function getPharName()
 {
     return $this->cliOptions->getArgument(0);
 }
예제 #4
0
 /**
  * @return bool
  */
 public function doNotAddToPhiveXml()
 {
     return $this->cliOptions->isSwitch('temporary');
 }