Exemplo n.º 1
0
 protected function setUp()
 {
     $this->userProvider = $this->getMock('Symfony\\Component\\Security\\Core\\User\\UserProviderInterface');
     $this->encoder = new MessageDigestPasswordEncoder('sha1', true, 1);
     $cache = new ArrayCache();
     $this->provider = new WsseAuthProvider($this->userProvider, $this->encoder, $cache);
     $this->provider->setTokenFactory(new WsseTokenFactory());
 }