/** * 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); }
public function testGetProvider() { $strong = Strong::factory(array('provider' => 'mock')); $this->assertInstanceOf('\\Strong\\Provider\\Mock', $strong->getProvider()); }