src/Console/ChromeDriverCommand.php
protected function rename($binary, $os)
    {
        $newName = str_replace('chromedriver', 'chromedriver-'.$os, $binary);

        rename($this->directory.$binary, $this->directory.$newName);

        chmod($this->directory.$newName, 0755);
    }
protected function rename($binary, $os)
    {
        $newName = str_replace('chromedriver', 'chromedriver-'.$os, $binary);

        rename($this->directory.$binary, $this->directory.$newName);

        chmod($this->directory.$newName, 0755);
    }
protected function rename ( $ binary , $ os ) { $ newName = str_replace ( 'chromedriver' , 'chromedriver-' . $ os , $ binary ) ; rename ( $ this -> directory . $ binary , $ this -> directory . $ newName ) ; chmod ( $ this -> directory . $ newName , 0755 ) ; }
Rename the ChromeDriver binary and make it executable.

@param  string  $binary
@param  string  $os
@return void
Rename the ChromeDriver binary and make it executable .