Skip to content

Commit fb03a98

Browse files
committed
Merge branch '3.1' into 3.2
* 3.1: fixed obsolete getMock() usage fixed obsolete getMock() usage fixed obsolete getMock() usage [WebProfilerBundle] Display multiple HTTP headers in WDT do not remove the Twig ExceptionController service removed obsolete condition do not try to register incomplete definitions
2 parents d68dede + dc83c3c commit fb03a98

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Tests/LdapClientTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class LdapClientTest extends LdapTestCase
2929

3030
protected function setUp()
3131
{
32-
$this->ldap = $this->getMock(LdapInterface::class);
32+
$this->ldap = $this->getMockBuilder(LdapInterface::class)->getMock();
3333

3434
$this->client = new LdapClient(null, 389, 3, false, false, false, $this->ldap);
3535
}
@@ -66,7 +66,7 @@ public function testLdapQuery()
6666

6767
public function testLdapFind()
6868
{
69-
$collection = $this->getMock(CollectionInterface::class);
69+
$collection = $this->getMockBuilder(CollectionInterface::class)->getMock();
7070
$collection
7171
->expects($this->once())
7272
->method('getIterator')
@@ -83,7 +83,7 @@ public function testLdapFind()
8383
)),
8484
))))
8585
;
86-
$query = $this->getMock(QueryInterface::class);
86+
$query = $this->getMockBuilder(QueryInterface::class)->getMock();
8787
$query
8888
->expects($this->once())
8989
->method('execute')

Tests/LdapTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ class LdapTest extends \PHPUnit_Framework_TestCase
2626

2727
protected function setUp()
2828
{
29-
$this->adapter = $this->getMock(AdapterInterface::class);
29+
$this->adapter = $this->getMockBuilder(AdapterInterface::class)->getMock();
3030
$this->ldap = new Ldap($this->adapter);
3131
}
3232

3333
public function testLdapBind()
3434
{
35-
$connection = $this->getMock(ConnectionInterface::class);
35+
$connection = $this->getMockBuilder(ConnectionInterface::class)->getMock();
3636
$connection
3737
->expects($this->once())
3838
->method('bind')

0 commit comments

Comments
 (0)