diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-07-10 14:17:26 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-07-11 08:50:07 +0200 |
commit | 2fa9e672940012bfff5c3763d573158960416372 (patch) | |
tree | 558f3acefa54f5fc5303e3320795ac6855e2c0a7 /tests/lib/AppFramework/Http/StreamResponseTest.php | |
parent | 67278d12e1f572d390722935f0eeb9aed34b708c (diff) | |
download | nextcloud-server-2fa9e672940012bfff5c3763d573158960416372.tar.gz nextcloud-server-2fa9e672940012bfff5c3763d573158960416372.zip |
Fix phpunit-5.4 wargning
* getMock is deprecated.
* \PDOStatement mocking fails hard on phpunit 4.8
Diffstat (limited to 'tests/lib/AppFramework/Http/StreamResponseTest.php')
-rw-r--r-- | tests/lib/AppFramework/Http/StreamResponseTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/AppFramework/Http/StreamResponseTest.php b/tests/lib/AppFramework/Http/StreamResponseTest.php index 1f761d6b89c..c082b36e0ac 100644 --- a/tests/lib/AppFramework/Http/StreamResponseTest.php +++ b/tests/lib/AppFramework/Http/StreamResponseTest.php @@ -37,7 +37,9 @@ class StreamResponseTest extends \Test\TestCase { protected function setUp() { parent::setUp(); - $this->output = $this->getMock('OCP\\AppFramework\\Http\\IOutput'); + $this->output = $this->getMockBuilder('OCP\\AppFramework\\Http\\IOutput') + ->disableOriginalConstructor() + ->getMock(); } public function testOutputNotModified(){ |