public function __construct($arguments, $stream) { $this->arguments = $arguments; $this->options = []; $this->paths = []; $this->stream = fopen($stream, 'w'); $this->formatter = new ConsoleFormatter(); $this->optionParser = new ConsoleOptionParser(); // The default folders to look in are ./test and ./spec foreach ($this->defaultDirs as $dir) { if (file_exists($dir) && is_dir($dir)) { $this->paths[] = $dir; } } }