public function testIsAuthenticated() { $auth = m::mock('OneLogin_Saml2_Auth'); $saml2 = new Saml2Auth($auth); $auth->shouldReceive('isAuthenticated')->andReturn('return'); $this->assertEquals('return', $saml2->isAuthenticated()); }
/** * * * @return bool if a valid user was fetched from the saml assertion this request. * @static */ public static function isAuthenticated() { return \Aacotroneo\Saml2\Saml2Auth::isAuthenticated(); }