summaryrefslogtreecommitdiffstats
path: root/Guard/Tests/GuardAuthenticatorHandlerTest.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2016-12-19 16:48:05 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2016-12-19 16:48:05 +0100
commit674b38ff1ae98e993fd18e599120ead43705c4bc (patch)
treed8f85a9b814a61b5cece305138b25e02e04abcbc /Guard/Tests/GuardAuthenticatorHandlerTest.php
parentb61218eac019add58b6eaf5bd0bdf331fb375ffb (diff)
downloadsymfony-security-674b38ff1ae98e993fd18e599120ead43705c4bc.zip
symfony-security-674b38ff1ae98e993fd18e599120ead43705c4bc.tar.gz
symfony-security-674b38ff1ae98e993fd18e599120ead43705c4bc.tar.bz2
fixed obsolete getMock() usage
Diffstat (limited to 'Guard/Tests/GuardAuthenticatorHandlerTest.php')
-rw-r--r--Guard/Tests/GuardAuthenticatorHandlerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Guard/Tests/GuardAuthenticatorHandlerTest.php b/Guard/Tests/GuardAuthenticatorHandlerTest.php
index 6f36702..58a3e17 100644
--- a/Guard/Tests/GuardAuthenticatorHandlerTest.php
+++ b/Guard/Tests/GuardAuthenticatorHandlerTest.php
@@ -123,11 +123,11 @@ class GuardAuthenticatorHandlerTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
- $this->tokenStorage = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface');
- $this->dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
- $this->token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface');
+ $this->tokenStorage = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface')->getMock();
+ $this->dispatcher = $this->getMockBuilder('Symfony\Component\EventDispatcher\EventDispatcherInterface')->getMock();
+ $this->token = $this->getMockBuilder('Symfony\Component\Security\Core\Authentication\Token\TokenInterface')->getMock();
$this->request = new Request(array(), array(), array(), array(), array(), array());
- $this->guardAuthenticator = $this->getMock('Symfony\Component\Security\Guard\GuardAuthenticatorInterface');
+ $this->guardAuthenticator = $this->getMockBuilder('Symfony\Component\Security\Guard\GuardAuthenticatorInterface')->getMock();
}
protected function tearDown()