/** * Generate phpspec file/settings. * * @return void */ protected function phpspec() { $this->testingVersion = '~2.0'; $file = $this->file->get(__DIR__ . '/stubs/phpspec.stub'); $content = str_replace('{namespace}', $this->createNamespace(), $file); $this->file->put($this->projectLower . '/' . 'phpspec.yml', $content); $this->exportIgnores[] = 'phpspec.yml'; }
/** * Generate phpspec config file, create a specs directory and * add package to development requirements. * * @return void */ protected function phpspec() { $this->developmentRequirements[] = 'phpspec/phpspec'; $file = $this->file->get(__DIR__ . '/stubs/phpspec.stub'); $content = str_replace('{namespace}', $this->createNamespace(), $file); $this->file->makeDirectory($this->projectLower . '/specs'); $this->exportIgnores[] = 'specs/'; $this->file->put($this->projectLower . '/' . 'phpspec.yml.dist', $content); $this->exportIgnores[] = 'phpspec.yml.dist'; $this->gitIgnores[] = 'phpspec.yml'; }