Skip to content

Commit e151754

Browse files
Charcosset Johnnyweaverryan
authored andcommitted
Method "$this->getMock()" is depreciated
1 parent 5e3b315 commit e151754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form/unit_testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ make sure the ``FormRegistry`` uses the created instance::
132132
protected function setUp()
133133
{
134134
// mock any dependencies
135-
$this->entityManager = $this->getMock('Doctrine\Common\Persistence\ObjectManager');
135+
$this->entityManager = $this->getMockBuilder('Doctrine\Common\Persistence\ObjectManager')->getMock();
136136

137137
parent::setUp();
138138
}

0 commit comments

Comments
 (0)