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
public function testUserMatcherIsCreatedLazily()
{
$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) {
++$callCounter;
......@@ -61,7 +61,7 @@ class LazyRequestMatcherTest extends \PHPUnit_Framework_TestCase
public function testMatchIsProxy()
{
$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())
->method('matchRequest')
->with($request)
......
......@@ -230,7 +230,7 @@ class FormServiceProviderTest extends \PHPUnit_Framework_TestCase
$app['locale'] = 'de';
$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())
......
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