public function __construct($files = null) { parent::__construct(); if (is_null($files)) { $files = new Filesystem(); } $this->files = $files; }
public function __construct(CommandGenerator $generator = null) { parent::__construct(); $this->generator = $generator ?: new CommandGenerator($this); }
/** * @dataProvider classNameProvider */ public function testCamelToCommand($class, $expected) { $cmd = new Command('test'); $this->assertSame($expected, $cmd->camelToCommand($class)); }