public function getCode() { return $this->googleAuthenticator->getCode($this->secret); }
public function testGetCode() { $code = $this->helper->getCode('3DHTQX4GCRKHGS55CJ', strtotime('17/03/2012 22:17')); $this->assertTrue($this->helper->checkCode('3DHTQX4GCRKHGS55CJ', $code)); }