public function initBehat()
    {
        $root_path = ProjectX::projectRoot();

        if ($this->hasBehat()
            && !file_exists("$root_path/tests/Behat/features")) {
            $this->taskBehat()
                ->option('init')
                ->option('config', "{$root_path}/tests/Behat/behat.yml")
                ->run();
        }

        return $this;
    }
public function initBehat()
    {
        $root_path = ProjectX::projectRoot();

        if ($this->hasBehat()
            && !file_exists("$root_path/tests/Behat/features")) {
            $this->taskBehat()
                ->option('init')
                ->option('config', "{$root_path}/tests/Behat/behat.yml")
                ->run();
        }

        return $this;
    }
public function initBehat ( ) { $ root_path = ProjectX :: projectRoot ( ) ; if ( $ this -> hasBehat ( ) && ! file_exists ( "$root_path/tests/Behat/features" ) ) { $ this -> taskBehat ( ) -> option ( 'init' ) -> option ( 'config' , "{$root_path}/tests/Behat/behat.yml" ) -> run ( ) ; } return $ this ; }
Initialize Behat for the project.

@return self
Initialize Behat for the project .