diff options
author | LEDfan <tobia@ledfan.be> | 2016-01-17 13:53:54 +0300 |
---|---|---|
committer | LEDfan <tobia@ledfan.be> | 2016-01-17 13:53:54 +0300 |
commit | 82350784ccf3a1bbe31be8d2679835399af30e56 (patch) | |
tree | 45634a5e1c5e4324ef678787a84101e35db77252 | |
parent | 6e1379bfe7ac643432c76a6a541af87d9c5b8906 (diff) |
Try to solve PHP 7
-rw-r--r-- | tests/unit/controller/HttpBindControllerTest.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/unit/controller/HttpBindControllerTest.php b/tests/unit/controller/HttpBindControllerTest.php index f6b3dc2..ab99fac 100644 --- a/tests/unit/controller/HttpBindControllerTest.php +++ b/tests/unit/controller/HttpBindControllerTest.php @@ -43,12 +43,12 @@ class HttpBindControllerTest extends PHPUnit_Framework_TestCase { * @param $requestBody */ private function setUpController($requestBody) { - $request = $this->getMockBuilder('OCP\IRequest')->getMock(); - $session = $this->getMockBuilder('OCP\ISession')->getMock(); - $this->stanzaMapper = $this->getMockBuilder('OCA\OJSXC\Db\StanzaMapper')->getMock(); + $request = $this->getMockBuilder('OCP\IRequest')->disableOriginalConstructor()->getMock(); + $session = $this->getMockBuilder('OCP\ISession')->disableOriginalConstructor()->getMock(); + $this->stanzaMapper = $this->getMockBuilder('OCA\OJSXC\Db\StanzaMapper')->disableOriginalConstructor()->getMock(); - $this->iqHandler = $this->getMockBuilder('OCA\OJSXC\StanzaHandlers\IQ')->getMock(); - $this->messageHandler = $this->getMockBuilder('OCA\OJSXC\StanzaHandlers\Message')->getMock(); + $this->iqHandler = $this->getMockBuilder('OCA\OJSXC\StanzaHandlers\IQ')->disableOriginalConstructor()->getMock(); + $this->messageHandler = $this->getMockBuilder('OCA\OJSXC\StanzaHandlers\Message')->disableOriginalConstructor()->getMock(); $this->controller = new HttpBindController( 'ojsxc', @@ -136,7 +136,7 @@ class HttpBindControllerTest extends PHPUnit_Framework_TestCase { ->method('handle') ->will($this->returnValue($result)); - $r1 = $this->getMockBuilder('Sabre\XML\XmlSerializable')->getMock(); + $r1 = $this->getMockBuilder('Sabre\XML\XmlSerializable')->disableOriginalConstructor()->getMock(); $r1->expects($this->once()) ->method('xmlSerialize') ->will($this->returnCallback(function(Writer $writer){ @@ -184,7 +184,7 @@ class HttpBindControllerTest extends PHPUnit_Framework_TestCase { $this->messageHandler->expects($this->any()) // FIXME ->method('handle'); - $r1 = $this->getMockBuilder('Sabre\XML\XmlSerializable')->getMock(); + $r1 = $this->getMockBuilder('Sabre\XML\XmlSerializable')->disableOriginalConstructor()->getMock(); $r1->expects($this->once()) ->method('xmlSerialize') ->will($this->returnCallback(function(Writer $writer){ |