Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e151754

Browse filesBrowse files
Charcosset Johnnyweaverryan
Charcosset Johnny
authored andcommitted
Method "$this->getMock()" is depreciated
1 parent 5e3b315 commit e151754
Copy full SHA for e151754

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎form/unit_testing.rst

Copy file name to clipboardExpand all lines: form/unit_testing.rst
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.