Aacotroneo\Saml2\Saml2AuthTest::testAcsError PHP 메소드

testAcsError() 공개 메소드

public testAcsError ( )
    public function testAcsError()
    {
        $auth = m::mock('OneLogin_Saml2_Auth');
        $saml2 = new Saml2Auth($auth);
        $auth->shouldReceive('processResponse')->once();
        $auth->shouldReceive('getErrors')->once()->andReturn(array('errors'));
        $error = $saml2->acs();
        $this->assertNotEmpty($error);
    }