JonathanTorres\Construct\Construct::phpunitTest PHP Method

phpunitTest() protected method

Generate phpunit test file.
protected phpunitTest ( ) : void
return void
    protected function phpunitTest()
    {
        $file = $this->file->get(__DIR__ . '/stubs/ProjectTest.stub');
        $stubs = ['{project_upper}', '{project_camel_case}', '{vendor_upper}', '{namespace}'];
        $values = [$this->projectUpper, $this->str->toCamelCase($this->projectLower), $this->vendorUpper, $this->createNamespace()];
        $content = str_replace($stubs, $values, $file);
        $this->file->makeDirectory($this->projectLower . '/tests');
        $this->file->put($this->projectLower . '/tests/' . $this->projectUpper . 'Test.php', $content);
        $this->exportIgnores[] = 'tests/';
    }