public function setUp() { parent::setUp(); $this->command = m::mock('Console\\GenerateCommand'); $this->config = m::mock('Configuration\\ConfigReader'); $this->generator = m::mock('Generators\\Generator'); $this->genFactory = m::mock('Factories\\GeneratorFactory'); $this->filesystem = m::mock('Illuminate\\Filesystem\\Filesystem'); $this->filesystem->shouldDeferMissing(); $this->optionReader = m::mock('Console\\OptionReader'); $this->args = ['command' => 'generate', 'entity' => 'Order', 'what' => 'model', 'config-file' => null]; $this->genFactory->shouldReceive('make')->with($this->args['what'], $this->optionReader)->andReturn($this->generator); }
public function setUp() { parent::setUp(); $this->optionReader = m::mock('Console\\OptionReader'); }
public function setUp() { parent::setUp(); $this->parser = new FieldParser(); }