Fix getMock usage

This commit is contained in:
Nicolas Grekas 2017-01-12 20:23:39 +01:00
parent 49fb0c033c
commit 52eeddc24e
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ class LazyLoadingMetadataFactoryTest extends \PHPUnit_Framework_TestCase
public function testMetadataCacheWithRuntimeConstraint()
{
$cache = $this->getMock('Symfony\Component\Validator\Mapping\Cache\CacheInterface');
$cache = $this->getMockBuilder('Symfony\Component\Validator\Mapping\Cache\CacheInterface')->getMock();
$factory = new LazyLoadingMetadataFactory(new TestLoader(), $cache);
$cache