Failed Conditions
Pull Request — master (#569)
by Max
08:35
created
tests/Server/StandardServerTest.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@  discard block
 block discarded – undo
38 38
         self::assertEquals($expected, $result->toArray(true));
39 39
     }
40 40
 
41
+    /**
42
+     * @param string $contentType
43
+     */
41 44
     private function parseRawRequest($contentType, $content, $method = 'POST')
42 45
     {
43 46
         $_SERVER['CONTENT_TYPE']   = $contentType;
@@ -62,6 +65,9 @@  discard block
 block discarded – undo
62 65
         $this->assertPsrRequestEquals($expected, $request);
63 66
     }
64 67
 
68
+    /**
69
+     * @param string $contentType
70
+     */
65 71
     private function preparePsrRequest($contentType, $parsedBody)
66 72
     {
67 73
         $psrRequest                          = new PsrRequestStub();
@@ -72,6 +78,9 @@  discard block
 block discarded – undo
72 78
         return $psrRequest;
73 79
     }
74 80
 
81
+    /**
82
+     * @param PsrRequestStub $request
83
+     */
75 84
     private function assertPsrRequestEquals($expected, $request)
76 85
     {
77 86
         $result = $this->executePsrRequest($request);
Please login to merge, or discard this patch.
tests/Type/EnumTypeTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -237,6 +237,9 @@
 block discarded – undo
237 237
         );
238 238
     }
239 239
 
240
+    /**
241
+     * @param string $query
242
+     */
240 243
     private function expectFailure($query, $vars, $err)
241 244
     {
242 245
         $result = GraphQL::executeQuery($this->schema, $query, null, null, $vars);
Please login to merge, or discard this patch.
tests/Type/ValidationTest.php 1 patch
Doc Comments   +20 added lines patch added patch discarded remove patch
@@ -138,24 +138,39 @@  discard block
 block discarded – undo
138 138
         Warning::suppress(Warning::WARNING_NOT_A_TYPE);
139 139
     }
140 140
 
141
+    /**
142
+     * @param InputObjectType[] $types
143
+     */
141 144
     private function withModifiers($types)
142 145
     {
143 146
         return array_merge(
144 147
             $types,
145 148
             Utils::map(
146 149
                 $types,
150
+
151
+                /**
152
+                 * @param InputObjectType[] $type
153
+                 */
147 154
                 static function ($type) {
148 155
                     return Type::listOf($type);
149 156
                 }
150 157
             ),
151 158
             Utils::map(
152 159
                 $types,
160
+
161
+                /**
162
+                 * @param InputObjectType[] $type
163
+                 */
153 164
                 static function ($type) {
154 165
                     return Type::nonNull($type);
155 166
                 }
156 167
             ),
157 168
             Utils::map(
158 169
                 $types,
170
+
171
+                /**
172
+                 * @param InputObjectType[] $type
173
+                 */
159 174
                 static function ($type) {
160 175
                     return Type::nonNull(Type::listOf($type));
161 176
                 }
@@ -195,6 +210,8 @@  discard block
 block discarded – undo
195 210
 
196 211
     /**
197 212
      * DESCRIBE: Type System: A Schema must have Object root types
213
+     * @param \Closure[] $closures
214
+     * @param string $expectedError
198 215
      */
199 216
     private function assertEachCallableThrows($closures, $expectedError)
200 217
     {
@@ -360,6 +377,9 @@  discard block
 block discarded – undo
360 377
         });
361 378
     }
362 379
 
380
+    /**
381
+     * @param InvariantViolation[] $errors
382
+     */
363 383
     private function assertMatchesValidationMessage($errors, $expected)
364 384
     {
365 385
         $expectedWithLocations = [];
Please login to merge, or discard this patch.
tests/Utils/BuildSchemaTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -86,6 +86,9 @@
 block discarded – undo
86 86
         self::assertEquals($output, $body);
87 87
     }
88 88
 
89
+    /**
90
+     * @param string $body
91
+     */
89 92
     private function cycleOutput($body, $options = [])
90 93
     {
91 94
         $ast    = Parser::parse($body);
Please login to merge, or discard this patch.
tests/Utils/CoerceValueTest.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -85,6 +85,7 @@
 block discarded – undo
85 85
 
86 86
     /**
87 87
      * Describe: for GraphQLInt
88
+     * @param string $expected
88 89
      */
89 90
     private function expectError($result, $expected)
90 91
     {
Please login to merge, or discard this patch.
tests/Validator/DisableIntrospectionTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -31,6 +31,10 @@
 block discarded – undo
31 31
         );
32 32
     }
33 33
 
34
+    /**
35
+     * @param integer $line
36
+     * @param integer $column
37
+     */
34 38
     private function error($line, $column)
35 39
     {
36 40
         return FormattedError::create(
Please login to merge, or discard this patch.
tests/Validator/ExecutableDefinitionsTest.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -79,6 +79,11 @@
 block discarded – undo
79 79
         );
80 80
     }
81 81
 
82
+    /**
83
+     * @param string $defName
84
+     * @param integer $line
85
+     * @param integer $column
86
+     */
82 87
     private function nonExecutableDefinition($defName, $line, $column)
83 88
     {
84 89
         return FormattedError::create(
Please login to merge, or discard this patch.
tests/Validator/FieldsOnCorrectTypeTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -126,6 +126,12 @@
 block discarded – undo
126 126
         );
127 127
     }
128 128
 
129
+    /**
130
+     * @param string $field
131
+     * @param string $type
132
+     * @param integer $line
133
+     * @param integer $column
134
+     */
129 135
     private function undefinedField($field, $type, $suggestedTypes, $suggestedFields, $line, $column)
130 136
     {
131 137
         return FormattedError::create(
Please login to merge, or discard this patch.
tests/Validator/FragmentsOnCompositeTypesTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -106,6 +106,12 @@
 block discarded – undo
106 106
         );
107 107
     }
108 108
 
109
+    /**
110
+     * @param string $fragName
111
+     * @param string $typeName
112
+     * @param integer $line
113
+     * @param integer $column
114
+     */
109 115
     private function error($fragName, $typeName, $line, $column)
110 116
     {
111 117
         return FormattedError::create(
Please login to merge, or discard this patch.