JonathanTorres\Construct\Helpers\Script::bootstrapCodeception PHP Method

bootstrapCodeception() public method

Generate default codeception suites.
public bootstrapCodeception ( string $folder ) : void
$folder string
return void
    public function bootstrapCodeception($folder)
    {
        $command = 'cd ' . $folder . ' && vendor/bin/codecept bootstrap';
        exec($command);
    }

Usage Example

Beispiel #1
0
 /**
  * Run any extra scripts.
  *
  * @param JonathanTorres\Construct\Helpers\Script $script
  *
  * @return void
  */
 protected function scripts(Script $script)
 {
     $testingFramework = $this->settings->getTestingFramework();
     if ($this->file->isDirectory($this->projectLower)) {
         if ($testingFramework === 'behat') {
             $script->initBehat($this->projectLower);
         }
         if ($testingFramework === 'codeception') {
             $script->bootstrapCodeception($this->projectLower);
         }
     }
 }