public function testCSPRNG() { $helper = new FacebookRedirectLoginHelper(self::REDIRECT_URL, FacebookTestCredentials::$appId, FacebookTestCredentials::$appSecret); $this->assertEquals(1, preg_match('/^([0-9a-f]+)$/', $helper->random(32))); }