public function getPhantomJsBinary($binDir)
    {
        $os = $this->getOS();

        $binary = $binDir . '/phantomjs';

        if ($os === 'windows') {
            // the suffix for binaries on windows is ".exe"
            $binary .= '.exe';
        }

        return realpath($binary);
    }
public function getPhantomJsBinary($binDir)
    {
        $os = $this->getOS();

        $binary = $binDir . '/phantomjs';

        if ($os === 'windows') {
            // the suffix for binaries on windows is ".exe"
            $binary .= '.exe';
        }

        return realpath($binary);
    }
public function getPhantomJsBinary ( $ binDir ) { $ os = $ this -> getOS ( ) ; $ binary = $ binDir . '/phantomjs' ; if ( $ os === 'windows' ) { // the suffix for binaries on windows is ".exe" $ binary .= '.exe' ; } return realpath ( $ binary ) ; }
Get path to PhantomJS binary.

@param string $binDir
@return string|bool Returns false, if file not found, else filepath.
Get path to PhantomJS binary .