Skip to content

Commit b4e6630

Browse files
committed
PHPUnit: Replaced deprecated method getMock() with getMockBuilder()
1 parent fa96117 commit b4e6630

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/ServerTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,11 @@ public function testDebugExceptions()
509509

510510
public function testHandleRequest()
511511
{
512-
$mock = $this->getMock('GraphQL\Server', ['readInput', 'produceOutput']);
512+
$mock = $this->getMockBuilder('GraphQL\Server')
513+
->setMethods(['readInput', 'produceOutput'])
514+
->getMock()
515+
;
516+
513517
$mock->method('readInput')
514518
->will($this->returnValue(json_encode(['query' => '{err}'])));
515519

0 commit comments

Comments
 (0)