Просмотр исходного кода

Remove call to deprecated getMock method

Andreas Braun 9 лет назад
Родитель
Сommit
ea653df13b
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      composer.json
  2. 1 1
      tests/Alcaeus/MongoDbAdapter/Mongo/MongoCursorTest.php

+ 1 - 1
composer.json

@@ -15,7 +15,7 @@
         "mongodb/mongodb": "^1.0.1"
     },
     "require-dev": {
-        "phpunit/phpunit": "^4.8 || ^5.0"
+        "phpunit/phpunit": "^5.4"
     },
     "provide": {
         "ext-mongo": "1.6.13"

+ 1 - 1
tests/Alcaeus/MongoDbAdapter/Mongo/MongoCursorTest.php

@@ -365,6 +365,6 @@ class MongoCursorTest extends TestCase
      */
     protected function getCollectionMock()
     {
-        return $this->getMock('MongoDB\Collection', [], [], '', false);
+        return $this->createMock('MongoDB\Collection', [], [], '', false);
     }
 }