public function setUp() { $this->root = vfsStream::setup(); $this->cache_dir = $this->root->url() . DIRECTORY_SEPARATOR . '.smartrunner'; $this->fs = new FileSystem($this->root->url()); $this->config_generator = $this->prophesize('iakio\\phpunit\\smartrunner\\commands\\initcommand\\ConfigGenerator'); $this->config_generator->generate()->willReturn(new Config([])); $this->phpunit_config_generator = $this->prophesize('iakio\\phpunit\\smartrunner\\commands\\initcommand\\PhpunitConfigGenerator'); $this->command = new InitCommand($this->fs, $this->config_generator->reveal(), $this->phpunit_config_generator->reveal()); }