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(); } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy