Skip to content

Commit ee588d0

Browse files
tvbeekm1guelpf
authored andcommitted
Upgrade the BuilderTest to use createMock and not the deprecated getMock function
1 parent 69bdabe commit ee588d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/Gitlab/Tests/HttpClient/BuilderTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,24 @@ class BuilderTest extends \PHPUnit_Framework_TestCase
2222
public function setUp()
2323
{
2424
$this->subject = new Builder(
25-
$this->getMock(HttpClient::class),
26-
$this->getMock(RequestFactory::class),
27-
$this->getMock(StreamFactory::class)
25+
$this->createMock(HttpClient::class),
26+
$this->createMock(RequestFactory::class),
27+
$this->createMock(StreamFactory::class)
2828
);
2929
}
3030

3131
public function testAddPluginShouldInvalidateHttpClient()
3232
{
3333
$client = $this->subject->getHttpClient();
3434

35-
$this->subject->addPlugin($this->getMock(Plugin::class));
35+
$this->subject->addPlugin($this->createMock(Plugin::class));
3636

3737
$this->assertNotSame($client, $this->subject->getHttpClient());
3838
}
3939

4040
public function testRemovePluginShouldInvalidateHttpClient()
4141
{
42-
$this->subject->addPlugin($this->getMock(Plugin::class));
42+
$this->subject->addPlugin($this->createMock(Plugin::class));
4343

4444
$client = $this->subject->getHttpClient();
4545

0 commit comments

Comments
 (0)