public function testCreate_hasNoData() { $commandLineCreator = new GenericCommandLineCreator('test', []); $this->assertFalse($commandLineCreator->hasData()); $this->assertNull($commandLineCreator->getData()); $this->assertEquals('test', $commandLineCreator->getCommandLine()); }
/** * @inheritDoc */ public function __construct($commandName, array $arguments, array $argumentDefaults = []) { $this->setData(array_shift($arguments)); parent::__construct($commandName, $arguments, $argumentDefaults); array_push($this->arguments, strlen($this->getData())); }