Commit 4bae5c85 authored by Fabien Potencier's avatar Fabien Potencier

removed usage of obsolete PHPUnit method

parent 40577f93
...@@ -27,7 +27,7 @@ class LazyRequestMatcherTest extends \PHPUnit_Framework_TestCase ...@@ -27,7 +27,7 @@ class LazyRequestMatcherTest extends \PHPUnit_Framework_TestCase
public function testUserMatcherIsCreatedLazily() public function testUserMatcherIsCreatedLazily()
{ {
$callCounter = 0; $callCounter = 0;
$requestMatcher = $this->getMock('Symfony\Component\Routing\Matcher\RequestMatcherInterface'); $requestMatcher = $this->getMockBuilder('Symfony\Component\Routing\Matcher\RequestMatcherInterface')->getMock();
$matcher = new LazyRequestMatcher(function () use ($requestMatcher, &$callCounter) { $matcher = new LazyRequestMatcher(function () use ($requestMatcher, &$callCounter) {
++$callCounter; ++$callCounter;
...@@ -61,7 +61,7 @@ class LazyRequestMatcherTest extends \PHPUnit_Framework_TestCase ...@@ -61,7 +61,7 @@ class LazyRequestMatcherTest extends \PHPUnit_Framework_TestCase
public function testMatchIsProxy() public function testMatchIsProxy()
{ {
$request = Request::create('path'); $request = Request::create('path');
$matcher = $this->getMock('Symfony\Component\Routing\Matcher\RequestMatcherInterface'); $matcher = $this->getMockBuilder('Symfony\Component\Routing\Matcher\RequestMatcherInterface')->getMock();
$matcher->expects($this->once()) $matcher->expects($this->once())
->method('matchRequest') ->method('matchRequest')
->with($request) ->with($request)
......
...@@ -230,7 +230,7 @@ class FormServiceProviderTest extends \PHPUnit_Framework_TestCase ...@@ -230,7 +230,7 @@ class FormServiceProviderTest extends \PHPUnit_Framework_TestCase
$app['locale'] = 'de'; $app['locale'] = 'de';
$app['csrf.token_manager'] = function () { $app['csrf.token_manager'] = function () {
return $this->getMock('Symfony\Component\Security\Csrf\CsrfTokenManagerInterface'); return $this->getMockBuilder('Symfony\Component\Security\Csrf\CsrfTokenManagerInterface')->getMock();
}; };
$form = $app['form.factory']->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType', array()) $form = $app['form.factory']->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType', array())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment