Completed
Push — master ( cec574...5a6ae5 )
by Peter
03:38
created

UnitTesterActions::assertLessOrEquals()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
nc 1
cc 1
eloc 2
nop 3
1
<?php  //[STAMP] 9ad924d28182d5b9b12e8a90964178dd
2
namespace _generated;
3
4
// This class was automatically generated by build task
5
// You should not change it manually as it will be overwritten on next build
6
// @codingStandardsIgnoreFile
7
8
use Codeception\Module\Asserts;
9
use Codeception\Module\UnitHelper;
10
11
trait UnitTesterActions
12
{
13
    /**
14
     * @return \Codeception\Scenario
15
     */
16
    abstract protected function getScenario();
17
18
    
19
    /**
20
     * [!] Method is generated. Documentation taken from corresponding module.
21
     *
22
     * Checks that two variables are equal.
23
     *
24
     * @param        $expected
25
     * @param        $actual
26
     * @param string $message
27
     * @see \Codeception\Module\Asserts::assertEquals()
28
     */
29
    public function assertEquals($expected, $actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
30
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args()));
31
    }
32
33
 
34
    /**
35
     * [!] Method is generated. Documentation taken from corresponding module.
36
     *
37
     * Checks that two variables are not equal
38
     *
39
     * @param        $expected
40
     * @param        $actual
41
     * @param string $message
42
     * @see \Codeception\Module\Asserts::assertNotEquals()
43
     */
44
    public function assertNotEquals($expected, $actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
45
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args()));
46
    }
47
48
 
49
    /**
50
     * [!] Method is generated. Documentation taken from corresponding module.
51
     *
52
     * Checks that two variables are same
53
     *
54
     * @param        $expected
55
     * @param        $actual
56
     * @param string $message
57
     * @return mixed|void
58
     * @see \Codeception\Module\Asserts::assertSame()
59
     */
60
    public function assertSame($expected, $actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
61
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args()));
62
    }
63
64
 
65
    /**
66
     * [!] Method is generated. Documentation taken from corresponding module.
67
     *
68
     * Checks that two variables are not same
69
     *
70
     * @param        $expected
71
     * @param        $actual
72
     * @param string $message
73
     * @see \Codeception\Module\Asserts::assertNotSame()
74
     */
75
    public function assertNotSame($expected, $actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
76
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args()));
77
    }
78
79
 
80
    /**
81
     * [!] Method is generated. Documentation taken from corresponding module.
82
     *
83
     * Checks that actual is greater than expected
84
     *
85
     * @param        $expected
86
     * @param        $actual
87
     * @param string $message
88
     * @see \Codeception\Module\Asserts::assertGreaterThan()
89
     */
90
    public function assertGreaterThan($expected, $actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
91
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThan', func_get_args()));
92
    }
93
94
 
95
    /**
96
     * [!] Method is generated. Documentation taken from corresponding module.
97
     *
98
     * @deprecated
99
     * @see \Codeception\Module\Asserts::assertGreaterThen()
100
     */
101
    public function assertGreaterThen($expected, $actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
102
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThen', func_get_args()));
103
    }
104
105
 
106
    /**
107
     * [!] Method is generated. Documentation taken from corresponding module.
108
     *
109
     * Checks that actual is greater or equal than expected
110
     *
111
     * @param        $expected
112
     * @param        $actual
113
     * @param string $message
114
     * @see \Codeception\Module\Asserts::assertGreaterThanOrEqual()
115
     */
116
    public function assertGreaterThanOrEqual($expected, $actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
117
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args()));
118
    }
119
120
 
121
    /**
122
     * [!] Method is generated. Documentation taken from corresponding module.
123
     *
124
     * @deprecated
125
     * @see \Codeception\Module\Asserts::assertGreaterThenOrEqual()
126
     */
127
    public function assertGreaterThenOrEqual($expected, $actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
128
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThenOrEqual', func_get_args()));
129
    }
130
131
 
132
    /**
133
     * [!] Method is generated. Documentation taken from corresponding module.
134
     *
135
     * Checks that actual is less than expected
136
     *
137
     * @param        $expected
138
     * @param        $actual
139
     * @param string $message
140
     * @see \Codeception\Module\Asserts::assertLessThan()
141
     */
142
    public function assertLessThan($expected, $actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
143
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args()));
144
    }
145
146
 
147
    /**
148
     * [!] Method is generated. Documentation taken from corresponding module.
149
     *
150
     * Checks that actual is less or equal than expected
151
     *
152
     * @param        $expected
153
     * @param        $actual
154
     * @param string $message
155
     * @see \Codeception\Module\Asserts::assertLessThanOrEqual()
156
     */
157
    public function assertLessThanOrEqual($expected, $actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
158
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args()));
159
    }
160
161
 
162
    /**
163
     * [!] Method is generated. Documentation taken from corresponding module.
164
     *
165
     * Checks that haystack contains needle
166
     *
167
     * @param        $needle
168
     * @param        $haystack
169
     * @param string $message
170
     * @see \Codeception\Module\Asserts::assertContains()
171
     */
172
    public function assertContains($needle, $haystack, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $needle is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $haystack is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
173
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContains', func_get_args()));
174
    }
175
176
 
177
    /**
178
     * [!] Method is generated. Documentation taken from corresponding module.
179
     *
180
     * Checks that haystack doesn't contain needle.
181
     *
182
     * @param        $needle
183
     * @param        $haystack
184
     * @param string $message
185
     * @see \Codeception\Module\Asserts::assertNotContains()
186
     */
187
    public function assertNotContains($needle, $haystack, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $needle is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $haystack is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
188
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args()));
189
    }
190
191
 
192
    /**
193
     * [!] Method is generated. Documentation taken from corresponding module.
194
     *
195
     * Checks that string match with pattern
196
     *
197
     * @param string $pattern
198
     * @param string $string
199
     * @param string $message
200
     * @see \Codeception\Module\Asserts::assertRegExp()
201
     */
202
    public function assertRegExp($pattern, $string, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $pattern is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $string is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
203
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args()));
204
    }
205
206
 
207
    /**
208
     * [!] Method is generated. Documentation taken from corresponding module.
209
     *
210
     * Checks that string not match with pattern
211
     *
212
     * @param string $pattern
213
     * @param string $string
214
     * @param string $message
215
     * @see \Codeception\Module\Asserts::assertNotRegExp()
216
     */
217
    public function assertNotRegExp($pattern, $string, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $pattern is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $string is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
218
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args()));
219
    }
220
221
 
222
    /**
223
     * [!] Method is generated. Documentation taken from corresponding module.
224
     *
225
     * Checks that variable is empty.
226
     *
227
     * @param        $actual
228
     * @param string $message
229
     * @see \Codeception\Module\Asserts::assertEmpty()
230
     */
231
    public function assertEmpty($actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
232
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEmpty', func_get_args()));
233
    }
234
235
 
236
    /**
237
     * [!] Method is generated. Documentation taken from corresponding module.
238
     *
239
     * Checks that variable is not empty.
240
     *
241
     * @param        $actual
242
     * @param string $message
243
     * @see \Codeception\Module\Asserts::assertNotEmpty()
244
     */
245
    public function assertNotEmpty($actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
246
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args()));
247
    }
248
249
 
250
    /**
251
     * [!] Method is generated. Documentation taken from corresponding module.
252
     *
253
     * Checks that variable is NULL
254
     *
255
     * @param        $actual
256
     * @param string $message
257
     * @see \Codeception\Module\Asserts::assertNull()
258
     */
259
    public function assertNull($actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
260
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args()));
261
    }
262
263
 
264
    /**
265
     * [!] Method is generated. Documentation taken from corresponding module.
266
     *
267
     * Checks that variable is not NULL
268
     *
269
     * @param        $actual
270
     * @param string $message
271
     * @see \Codeception\Module\Asserts::assertNotNull()
272
     */
273
    public function assertNotNull($actual, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
274
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args()));
275
    }
276
277
 
278
    /**
279
     * [!] Method is generated. Documentation taken from corresponding module.
280
     *
281
     * Checks that condition is positive.
282
     *
283
     * @param        $condition
284
     * @param string $message
285
     * @see \Codeception\Module\Asserts::assertTrue()
286
     */
287
    public function assertTrue($condition, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $condition is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
288
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args()));
289
    }
290
291
 
292
    /**
293
     * [!] Method is generated. Documentation taken from corresponding module.
294
     *
295
     * Checks that condition is negative.
296
     *
297
     * @param        $condition
298
     * @param string $message
299
     * @see \Codeception\Module\Asserts::assertFalse()
300
     */
301
    public function assertFalse($condition, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $condition is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
302
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args()));
303
    }
304
305
 
306
    /**
307
     * [!] Method is generated. Documentation taken from corresponding module.
308
     *
309
     * Checks if file exists
310
     *
311
     * @param string $filename
312
     * @param string $message
313
     * @see \Codeception\Module\Asserts::assertFileExists()
314
     */
315
    public function assertFileExists($filename, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $filename is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
316
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileExists', func_get_args()));
317
    }
318
319
 
320
    /**
321
     * [!] Method is generated. Documentation taken from corresponding module.
322
     *
323
     * Checks if file doesn't exist
324
     *
325
     * @param string $filename
326
     * @param string $message
327
     * @see \Codeception\Module\Asserts::assertFileNotExists()
328
     */
329
    public function assertFileNotExists($filename, $message = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $filename is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
330
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args()));
331
    }
332
333
 
334
    /**
335
     * [!] Method is generated. Documentation taken from corresponding module.
336
     *
337
     * @param $expected
338
     * @param $actual
339
     * @param $description
340
     * @see \Codeception\Module\Asserts::assertGreaterOrEquals()
341
     */
342
    public function assertGreaterOrEquals($expected, $actual, $description = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $description is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
343
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterOrEquals', func_get_args()));
344
    }
345
346
 
347
    /**
348
     * [!] Method is generated. Documentation taken from corresponding module.
349
     *
350
     * @param $expected
351
     * @param $actual
352
     * @param $description
353
     * @see \Codeception\Module\Asserts::assertLessOrEquals()
354
     */
355
    public function assertLessOrEquals($expected, $actual, $description = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $expected is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $description is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
356
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessOrEquals', func_get_args()));
357
    }
358
359
 
360
    /**
361
     * [!] Method is generated. Documentation taken from corresponding module.
362
     *
363
     * @param $actual
364
     * @param $description
365
     * @see \Codeception\Module\Asserts::assertIsEmpty()
366
     */
367
    public function assertIsEmpty($actual, $description = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $description is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
368
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsEmpty', func_get_args()));
369
    }
370
371
 
372
    /**
373
     * [!] Method is generated. Documentation taken from corresponding module.
374
     *
375
     * @param $key
376
     * @param $actual
377
     * @param $description
378
     * @see \Codeception\Module\Asserts::assertArrayHasKey()
379
     */
380
    public function assertArrayHasKey($key, $actual, $description = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $description is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
381
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayHasKey', func_get_args()));
382
    }
383
384
 
385
    /**
386
     * [!] Method is generated. Documentation taken from corresponding module.
387
     *
388
     * @param $key
389
     * @param $actual
390
     * @param $description
391
     * @see \Codeception\Module\Asserts::assertArrayNotHasKey()
392
     */
393
    public function assertArrayNotHasKey($key, $actual, $description = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $description is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
394
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayNotHasKey', func_get_args()));
395
    }
396
397
 
398
    /**
399
     * [!] Method is generated. Documentation taken from corresponding module.
400
     *
401
     * @param $class
402
     * @param $actual
403
     * @param $description
404
     * @see \Codeception\Module\Asserts::assertInstanceOf()
405
     */
406
    public function assertInstanceOf($class, $actual, $description = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $class is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $description is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
407
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInstanceOf', func_get_args()));
408
    }
409
410
 
411
    /**
412
     * [!] Method is generated. Documentation taken from corresponding module.
413
     *
414
     * @param $class
415
     * @param $actual
416
     * @param $description
417
     * @see \Codeception\Module\Asserts::assertNotInstanceOf()
418
     */
419
    public function assertNotInstanceOf($class, $actual, $description = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $class is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $description is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
420
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotInstanceOf', func_get_args()));
421
    }
422
423
 
424
    /**
425
     * [!] Method is generated. Documentation taken from corresponding module.
426
     *
427
     * @param $type
428
     * @param $actual
429
     * @param $description
430
     * @see \Codeception\Module\Asserts::assertInternalType()
431
     */
432
    public function assertInternalType($type, $actual, $description = null) {
0 ignored issues
show
Unused Code introduced by
The parameter $type is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $actual is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $description is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
433
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInternalType', func_get_args()));
434
    }
435
436
 
437
    /**
438
     * [!] Method is generated. Documentation taken from corresponding module.
439
     *
440
     * Fails the test with message.
441
     *
442
     * @param $message
443
     * @see \Codeception\Module\Asserts::fail()
444
     */
445
    public function fail($message) {
0 ignored issues
show
Unused Code introduced by
The parameter $message is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
446
        return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args()));
447
    }
448
449
 
450
    /**
451
     * [!] Method is generated. Documentation taken from corresponding module.
452
     *
453
     * Handles and checks exception called inside callback function.
454
     * Either exception class name or exception instance should be provided.
455
     *
456
     * ```php
457
     * <?php
458
     * $I->expectException(MyException::class, function() {
459
     *     $this->doSomethingBad();
460
     * });
461
     *
462
     * $I->expectException(new MyException(), function() {
463
     *     $this->doSomethingBad();
464
     * });
465
     * ```
466
     * If you want to check message or exception code, you can pass them with exception instance:
467
     * ```php
468
     * <?php
469
     * // will check that exception MyException is thrown with "Don't do bad things" message
470
     * $I->expectException(new MyException("Don't do bad things"), function() {
471
     *     $this->doSomethingBad();
472
     * });
473
     * ```
474
     *
475
     * @param $exception string or \Exception
476
     * @param $callback
477
     * @see \Codeception\Module\Asserts::expectException()
478
     */
479
    public function expectException($exception, $callback) {
0 ignored issues
show
Unused Code introduced by
The parameter $exception is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $callback is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
480
        return $this->getScenario()->runStep(new \Codeception\Step\Action('expectException', func_get_args()));
481
    }
482
}
483