]> git.mxchange.org Git - friendica.git/blobdiff - tests/Util/DBStructureMockTrait.php
Merge pull request #10748 from MrPetovan/task/10740-json-ld-debug
[friendica.git] / tests / Util / DBStructureMockTrait.php
index 2d47cc85ef5619f89181bd73dd863529944e4768..02f508fe6be25178aea64f4abce66dab9431ba43 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -42,7 +42,7 @@ trait DBStructureMockTrait
         * @param bool $return True, if the connect was successful, otherwise false
         * @param null|int $times How often the method will get used
         */
-       public function mockUpdate($args = [], $return = true, $times = null)
+       public function mockUpdate(array $args = [], bool $return = true, int $times = null)
        {
                if (!isset($this->dbStructure)) {
                        $this->dbStructure = \Mockery::mock('alias:' . DBStructure::class);
@@ -58,11 +58,11 @@ trait DBStructureMockTrait
        /**
         * Mocking DBStructure::existsTable()
         *
-        * @param string $tableName The name of the table to check
-        * @param bool $return True, if the connect was successful, otherwise false
-        * @param null|int $times How often the method will get used
+        * @param string   $tableName The name of the table to check
+        * @param bool     $return    True, if the connect was successful, otherwise false
+        * @param null|int $times     How often the method will get used
         */
-       public function mockExistsTable($tableName, $return = true, $times = null)
+       public function mockExistsTable(string $tableName, bool $return = true, int $times = null)
        {
                if (!isset($this->dbStructure)) {
                        $this->dbStructure = \Mockery::mock('alias:' . DBStructure::class);