Browse Source

Fixed return value type in some methods

sohelrana820 7 years ago
parent
commit
d3c5de1a26

+ 1 - 1
tests/TestCase/Controller/ControllerTest.php

@@ -474,7 +474,7 @@ class ControllerTest extends TestCase
     /**
      * Generates status codes for redirect test.
      *
-     * @return void
+     * @return array
      */
     public static function statusCodeProvider()
     {

+ 1 - 1
tests/TestCase/Database/TypeTest.php

@@ -74,7 +74,7 @@ class TypeTest extends TestCase
     /**
      * provides a basics type list to be used as data provided for a test
      *
-     * @return void
+     * @return array
      */
     public function basicTypesProvider()
     {

+ 2 - 2
tests/TestCase/Error/ExceptionRendererTest.php

@@ -102,7 +102,7 @@ class TestErrorController extends Controller
     /**
      * index method
      *
-     * @return void
+     * @return array
      */
     public function index()
     {
@@ -121,7 +121,7 @@ class MyCustomExceptionRenderer extends ExceptionRenderer
     /**
      * custom error message type.
      *
-     * @return void
+     * @return string
      */
     public function missingWidgetThing()
     {

+ 2 - 2
tests/TestCase/Filesystem/FileTest.php

@@ -503,7 +503,7 @@ class FileTest extends TestCase
     /**
      * testWrite method
      *
-     * @return void
+     * @return bool|void
      */
     public function testWrite()
     {
@@ -533,7 +533,7 @@ class FileTest extends TestCase
     /**
      * testAppend method
      *
-     * @return void
+     * @return boolean|void
      */
     public function testAppend()
     {

+ 2 - 2
tests/TestCase/I18n/DateTest.php

@@ -58,7 +58,7 @@ class DateTest extends TestCase
     /**
      * Provider for ensuring that Date and FrozenDate work the same way.
      *
-     * @return void
+     * @return array
      */
     public static function classNameProvider()
     {
@@ -268,7 +268,7 @@ class DateTest extends TestCase
     /**
      * provider for timeAgo with an end date.
      *
-     * @return void
+     * @return array
      */
     public function timeAgoEndProvider()
     {

+ 2 - 2
tests/TestCase/I18n/TimeTest.php

@@ -72,7 +72,7 @@ class TimeTest extends TestCase
     /**
      * Provider for ensuring that Time and FrozenTime work the same way.
      *
-     * @return void
+     * @return array
      */
     public static function classNameProvider()
     {
@@ -150,7 +150,7 @@ class TimeTest extends TestCase
     /**
      * provider for timeAgo with an end date.
      *
-     * @return void
+     * @return array
      */
     public function timeAgoEndProvider()
     {

+ 1 - 1
tests/TestCase/Log/Engine/FileLogTest.php

@@ -46,7 +46,7 @@ class JsonObject implements JsonSerializable
     /**
      * String representation of the object
      *
-     * @return string
+     * @return array
      */
     public function jsonSerialize()
     {

+ 1 - 1
tests/TestCase/ORM/EntityTest.php

@@ -1560,7 +1560,7 @@ class EntityTest extends TestCase
     /**
      * Provides empty values
      *
-     * @return void
+     * @return array
      */
     public function emptyNamesProvider()
     {

+ 3 - 3
tests/TestCase/ORM/QueryTest.php

@@ -111,7 +111,7 @@ class QueryTest extends TestCase
     /**
      * Data provider for the two types of strategies HasMany implements
      *
-     * @return void
+     * @return array
      */
     public function strategiesProviderHasMany()
     {
@@ -121,7 +121,7 @@ class QueryTest extends TestCase
     /**
      * Data provider for the two types of strategies BelongsTo implements
      *
-     * @return void
+     * @return array
      */
     public function strategiesProviderBelongsTo()
     {
@@ -131,7 +131,7 @@ class QueryTest extends TestCase
     /**
      * Data provider for the two types of strategies BelongsToMany implements
      *
-     * @return void
+     * @return array
      */
     public function strategiesProviderBelongsToMany()
     {

+ 1 - 1
tests/TestCase/Validation/ValidationTest.php

@@ -2733,7 +2733,7 @@ class ValidationTest extends TestCase
     /**
      * Provider for uploaded file tests.
      *
-     * @return void
+     * @return array
      */
     public function uploadedFileProvider()
     {