diff options
author | Joshua Thijssen <jthijssen@noxlogic.nl> | 2015-01-21 14:17:42 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-03-26 13:47:14 +0100 |
commit | a6bb27a476fd41db01c9db5a076afdcbe416e893 (patch) | |
tree | f347fe1975cc6c97a8ca5fc23fb41b8183fb0013 /Core/Tests/Authentication/AuthenticationProviderManagerTest.php | |
parent | 8508d163454c5ed699f01f1ef20f7e2038c0d0a8 (diff) | |
download | symfony-security-a6bb27a476fd41db01c9db5a076afdcbe416e893.zip symfony-security-a6bb27a476fd41db01c9db5a076afdcbe416e893.tar.gz symfony-security-a6bb27a476fd41db01c9db5a076afdcbe416e893.tar.bz2 |
Implemented check on interface implementation
Diffstat (limited to 'Core/Tests/Authentication/AuthenticationProviderManagerTest.php')
-rw-r--r-- | Core/Tests/Authentication/AuthenticationProviderManagerTest.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Core/Tests/Authentication/AuthenticationProviderManagerTest.php b/Core/Tests/Authentication/AuthenticationProviderManagerTest.php index df25874..cc8b7c0 100644 --- a/Core/Tests/Authentication/AuthenticationProviderManagerTest.php +++ b/Core/Tests/Authentication/AuthenticationProviderManagerTest.php @@ -27,6 +27,16 @@ class AuthenticationProviderManagerTest extends \PHPUnit_Framework_TestCase new AuthenticationProviderManager(array()); } + /** + * @expectedException \InvalidArgumentException + */ + public function testAuthenticateWithProvidersWithIncorrectInterface() + { + new AuthenticationProviderManager(array( + new \stdClass(), + )); + } + public function testAuthenticateWhenNoProviderSupportsToken() { $manager = new AuthenticationProviderManager(array( |