getDefaultDriver() public method

Get the default captcha driver name.
public getDefaultDriver ( ) : string
return string
コード例 #1
0
 public function testGetAndSetDefaultDriver()
 {
     list($app, $config) = $this->getMocks();
     $instance = new CaptchaManager($app);
     $app->shouldReceive('offsetGet')->with('config')->andReturn($config);
     //        $app->shouldReceive('offsetSet');
     $this->assertEquals('google', $instance->getDefaultDriver());
     $instance->setDefaultDriver('another');
     $this->assertEquals('another', $instance->getDefaultDriver());
 }
コード例 #2
0
 /**
  * Rendered current object
  *
  * @return string
  */
 public function render()
 {
     $driver = isset($this->arguments['driver']) ? $this->arguments['driver'] : static::$manager->getDefaultDriver();
     $this->template = static::$manager->driver($driver)->render();
     return parent::render();
 }