original_string: public function setDriver($driver_name)
  	{
  		if ( !is_string($driver_name) ) {
  			throw new \InvalidArgumentException('The Mink driver name must be a string');
  		}
  
  		$this->_driverFactory = $this->_driverFactoryRegistry->get($driver_name);
  		$this->_mergedDefaults = self::arrayMergeRecursive($this->defaults, $this->_driverFactory->getDriverDefaults());
  
  		return $this->setParameter('driver', $driver_name);
  	}
code: public function setDriver($driver_name)
  	{
  		if ( !is_string($driver_name) ) {
  			throw new \InvalidArgumentException('The Mink driver name must be a string');
  		}
  
  		$this->_driverFactory = $this->_driverFactoryRegistry->get($driver_name);
  		$this->_mergedDefaults = self::arrayMergeRecursive($this->defaults, $this->_driverFactory->getDriverDefaults());
  
  		return $this->setParameter('driver', $driver_name);
  	}
code_tokens: public function setDriver ( $ driver_name ) { if ( ! is_string ( $ driver_name ) ) { throw new \ InvalidArgumentException ( 'The Mink driver name must be a string' ) ; } $ this -> _driverFactory = $ this -> _driverFactoryRegistry -> get ( $ driver_name ) ; $ this -> _mergedDefaults = self :: arrayMergeRecursive ( $ this -> defaults , $ this -> _driverFactory -> getDriverDefaults ( ) ) ; return $ this -> setParameter ( 'driver' , $ driver_name ) ; }
docstring: Sets Mink driver to browser configuration.
  
  @param string $driver_name Mink driver name.
  
  @return self
  @throws \InvalidArgumentException When Mink driver name is not a string.
docstring_tokens: Sets Mink driver to browser configuration .