JonathanTorres\Construct\Construct::phpunit PHP Method

phpunit() protected method

Generate phpunit test/file/settings and add package to the development requirements.
protected phpunit ( ) : void
return void
    protected function phpunit()
    {
        $this->phpunitTest();
        $this->developmentRequirements[] = 'phpunit/phpunit';
        $file = $this->file->get(__DIR__ . '/stubs/phpunit.stub');
        $content = str_replace('{project_upper}', $this->projectUpper, $file);
        $this->file->put($this->projectLower . '/' . 'phpunit.xml.dist', $content);
        $this->exportIgnores[] = 'phpunit.xml.dist';
        $this->gitIgnores[] = 'phpunit.xml';
    }