From 60276c6740a28d313d56f231de169cccde615846 Mon Sep 17 00:00:00 2001 From: Charcosset Johnny Date: Mon, 29 Aug 2016 10:58:17 +0200 Subject: [PATCH] Method "$this->getMock()" is depreciated --- form/unit_testing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/form/unit_testing.rst b/form/unit_testing.rst index dca8f7d643c..32cb9b472bf 100644 --- a/form/unit_testing.rst +++ b/form/unit_testing.rst @@ -127,7 +127,7 @@ make sure the ``FormRegistry`` uses the created instance:: protected function setUp() { // mock any dependencies - $this->entityManager = $this->getMock('Doctrine\Common\Persistence\ObjectManager'); + $this->entityManager = $this->getMockBuilder('Doctrine\Common\Persistence\ObjectManager')->getMock(); parent::setUp(); }