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