示例#1
0
 /**
  * Constructor
  *
  * @param   array  $config   Configuration for Strong and Login Details
  * @param   \Strong\Strong $strong
  * @return  void
  */
 public function __construct(array $config = array(), \Strong\Strong $strong = null)
 {
     $this->config = array_merge($this->settings, $config);
     $this->auth = !empty($strong) ? $strong : \Strong\Strong::factory($this->config);
 }
示例#2
0
 public function testGetProvider()
 {
     $strong = Strong::factory(array('provider' => 'mock'));
     $this->assertInstanceOf('\\Strong\\Provider\\Mock', $strong->getProvider());
 }