diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2015-03-26 13:47:28 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-03-26 13:47:28 +0100 |
commit | dcb1880d23868a6f9934a87bb6766d4002b484a3 (patch) | |
tree | dc59dc73d516d4e6fb0f50936275e4a667a520ce /Core/Tests/Authentication/AuthenticationProviderManagerTest.php | |
parent | 48526dc543e7776f2f4ac3f22d65a27cc3b7d911 (diff) | |
parent | a6bb27a476fd41db01c9db5a076afdcbe416e893 (diff) | |
download | symfony-security-dcb1880d23868a6f9934a87bb6766d4002b484a3.zip symfony-security-dcb1880d23868a6f9934a87bb6766d4002b484a3.tar.gz symfony-security-dcb1880d23868a6f9934a87bb6766d4002b484a3.tar.bz2 |
minor #13482 Implemented check on interface implementation (jaytaph)
This PR was squashed before being merged into the 2.7 branch (closes #13482).
Discussion
----------
Implemented check on interface implementation
| Q | A
| ------------- | ---
| Bug fix? | Yes
| New feature? | No
| BC breaks? | No
| Deprecations? | No
| Tests pass? | Yes
| Fixed tickets | #13480
| License | MIT
| Doc PR |
Commits
-------
2a79ace 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( |