UnitTesterActions   A
last analyzed

Complexity

Total Complexity 30

Size/Duplication

Total Lines 478
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 30
lcom 1
cbo 2
dl 0
loc 478
rs 10
c 0
b 0
f 0

31 Methods

Rating   Name   Duplication   Size   Complexity  
A assertEquals() 0 4 1
getScenario() 0 1 ?
A assertNotEquals() 0 4 1
A assertSame() 0 4 1
A assertNotSame() 0 4 1
A assertGreaterThan() 0 4 1
A assertGreaterThanOrEqual() 0 4 1
A assertLessThan() 0 4 1
A assertLessThanOrEqual() 0 4 1
A assertContains() 0 4 1
A assertNotContains() 0 4 1
A assertRegExp() 0 4 1
A assertNotRegExp() 0 4 1
A assertEmpty() 0 4 1
A assertNotEmpty() 0 4 1
A assertNull() 0 4 1
A assertNotNull() 0 4 1
A assertTrue() 0 4 1
A assertFalse() 0 4 1
A assertFileExists() 0 4 1
A assertFileNotExists() 0 4 1
A assertGreaterOrEquals() 0 4 1
A assertLessOrEquals() 0 4 1
A assertIsEmpty() 0 4 1
A assertArrayHasKey() 0 4 1
A assertArrayNotHasKey() 0 4 1
A assertInstanceOf() 0 4 1
A assertNotInstanceOf() 0 4 1
A assertInternalType() 0 4 1
A fail() 0 4 1
A expectException() 0 4 1
1
<?php //[STAMP] f360715abc0c07d699f4d494a74f093e
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
trait UnitTesterActions
9
{
10
    /**
11
     * [!] Method is generated. Documentation taken from corresponding module.
12
     *
13
     * Checks that two variables are equal.
14
     *
15
     * @param        $expected
16
     * @param        $actual
17
     * @param string $message
18
     * @see \Codeception\Module\Asserts::assertEquals()
19
     */
20
    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...
21
    {
22
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args()));
23
    }
24
25
    /**
26
     * @return \Codeception\Scenario
27
     */
28
    abstract protected function getScenario();
29
30
    /**
31
     * [!] Method is generated. Documentation taken from corresponding module.
32
     *
33
     * Checks that two variables are not equal
34
     *
35
     * @param        $expected
36
     * @param        $actual
37
     * @param string $message
38
     * @see \Codeception\Module\Asserts::assertNotEquals()
39
     */
40
    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...
41
    {
42
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args()));
43
    }
44
45
46
    /**
47
     * [!] Method is generated. Documentation taken from corresponding module.
48
     *
49
     * Checks that two variables are same
50
     *
51
     * @param        $expected
52
     * @param        $actual
53
     * @param string $message
54
     * @return mixed|void
55
     * @see \Codeception\Module\Asserts::assertSame()
56
     */
57
    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...
58
    {
59
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args()));
60
    }
61
62
63
    /**
64
     * [!] Method is generated. Documentation taken from corresponding module.
65
     *
66
     * Checks that two variables are not same
67
     *
68
     * @param        $expected
69
     * @param        $actual
70
     * @param string $message
71
     * @see \Codeception\Module\Asserts::assertNotSame()
72
     */
73
    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...
74
    {
75
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args()));
76
    }
77
78
79
    /**
80
     * [!] Method is generated. Documentation taken from corresponding module.
81
     *
82
     * Checks that actual is greater than expected
83
     *
84
     * @param        $expected
85
     * @param        $actual
86
     * @param string $message
87
     * @see \Codeception\Module\Asserts::assertGreaterThan()
88
     */
89
    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...
90
    {
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
     * Checks that actual is greater or equal than expected
99
     *
100
     * @param        $expected
101
     * @param        $actual
102
     * @param string $message
103
     * @see \Codeception\Module\Asserts::assertGreaterThanOrEqual()
104
     */
105
    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...
106
    {
107
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args()));
108
    }
109
110
111
    /**
112
     * [!] Method is generated. Documentation taken from corresponding module.
113
     *
114
     * Checks that actual is less than expected
115
     *
116
     * @param        $expected
117
     * @param        $actual
118
     * @param string $message
119
     * @see \Codeception\Module\Asserts::assertLessThan()
120
     */
121
    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...
122
    {
123
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args()));
124
    }
125
126
127
    /**
128
     * [!] Method is generated. Documentation taken from corresponding module.
129
     *
130
     * Checks that actual is less or equal than expected
131
     *
132
     * @param        $expected
133
     * @param        $actual
134
     * @param string $message
135
     * @see \Codeception\Module\Asserts::assertLessThanOrEqual()
136
     */
137
    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...
138
    {
139
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args()));
140
    }
141
142
143
    /**
144
     * [!] Method is generated. Documentation taken from corresponding module.
145
     *
146
     * Checks that haystack contains needle
147
     *
148
     * @param        $needle
149
     * @param        $haystack
150
     * @param string $message
151
     * @see \Codeception\Module\Asserts::assertContains()
152
     */
153
    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...
154
    {
155
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContains', func_get_args()));
156
    }
157
158
159
    /**
160
     * [!] Method is generated. Documentation taken from corresponding module.
161
     *
162
     * Checks that haystack doesn't contain needle.
163
     *
164
     * @param        $needle
165
     * @param        $haystack
166
     * @param string $message
167
     * @see \Codeception\Module\Asserts::assertNotContains()
168
     */
169
    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...
170
    {
171
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args()));
172
    }
173
174
175
    /**
176
     * [!] Method is generated. Documentation taken from corresponding module.
177
     *
178
     * Checks that string match with pattern
179
     *
180
     * @param string $pattern
181
     * @param string $string
182
     * @param string $message
183
     * @see \Codeception\Module\Asserts::assertRegExp()
184
     */
185
    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...
186
    {
187
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args()));
188
    }
189
190
191
    /**
192
     * [!] Method is generated. Documentation taken from corresponding module.
193
     *
194
     * Checks that string not match with pattern
195
     *
196
     * @param string $pattern
197
     * @param string $string
198
     * @param string $message
199
     * @see \Codeception\Module\Asserts::assertNotRegExp()
200
     */
201
    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...
202
    {
203
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args()));
204
    }
205
206
207
    /**
208
     * [!] Method is generated. Documentation taken from corresponding module.
209
     *
210
     * Checks that variable is empty.
211
     *
212
     * @param        $actual
213
     * @param string $message
214
     * @see \Codeception\Module\Asserts::assertEmpty()
215
     */
216
    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...
217
    {
218
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEmpty', func_get_args()));
219
    }
220
221
222
    /**
223
     * [!] Method is generated. Documentation taken from corresponding module.
224
     *
225
     * Checks that variable is not empty.
226
     *
227
     * @param        $actual
228
     * @param string $message
229
     * @see \Codeception\Module\Asserts::assertNotEmpty()
230
     */
231
    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...
232
    {
233
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args()));
234
    }
235
236
237
    /**
238
     * [!] Method is generated. Documentation taken from corresponding module.
239
     *
240
     * Checks that variable is NULL
241
     *
242
     * @param        $actual
243
     * @param string $message
244
     * @see \Codeception\Module\Asserts::assertNull()
245
     */
246
    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...
247
    {
248
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args()));
249
    }
250
251
252
    /**
253
     * [!] Method is generated. Documentation taken from corresponding module.
254
     *
255
     * Checks that variable is not NULL
256
     *
257
     * @param        $actual
258
     * @param string $message
259
     * @see \Codeception\Module\Asserts::assertNotNull()
260
     */
261
    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...
262
    {
263
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args()));
264
    }
265
266
267
    /**
268
     * [!] Method is generated. Documentation taken from corresponding module.
269
     *
270
     * Checks that condition is positive.
271
     *
272
     * @param        $condition
273
     * @param string $message
274
     * @see \Codeception\Module\Asserts::assertTrue()
275
     */
276
    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...
277
    {
278
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args()));
279
    }
280
281
282
    /**
283
     * [!] Method is generated. Documentation taken from corresponding module.
284
     *
285
     * Checks that condition is negative.
286
     *
287
     * @param        $condition
288
     * @param string $message
289
     * @see \Codeception\Module\Asserts::assertFalse()
290
     */
291
    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...
292
    {
293
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args()));
294
    }
295
296
297
    /**
298
     * [!] Method is generated. Documentation taken from corresponding module.
299
     *
300
     * Checks if file exists
301
     *
302
     * @param string $filename
303
     * @param string $message
304
     * @see \Codeception\Module\Asserts::assertFileExists()
305
     */
306
    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...
307
    {
308
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileExists', func_get_args()));
309
    }
310
311
312
    /**
313
     * [!] Method is generated. Documentation taken from corresponding module.
314
     *
315
     * Checks if file doesn't exist
316
     *
317
     * @param string $filename
318
     * @param string $message
319
     * @see \Codeception\Module\Asserts::assertFileNotExists()
320
     */
321
    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...
322
    {
323
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args()));
324
    }
325
326
327
    /**
328
     * [!] Method is generated. Documentation taken from corresponding module.
329
     *
330
     * @param $expected
331
     * @param $actual
332
     * @param $description
333
     * @see \Codeception\Module\Asserts::assertGreaterOrEquals()
334
     */
335
    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...
336
    {
337
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterOrEquals', func_get_args()));
338
    }
339
340
341
    /**
342
     * [!] Method is generated. Documentation taken from corresponding module.
343
     *
344
     * @param $expected
345
     * @param $actual
346
     * @param $description
347
     * @see \Codeception\Module\Asserts::assertLessOrEquals()
348
     */
349
    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...
350
    {
351
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessOrEquals', func_get_args()));
352
    }
353
354
355
    /**
356
     * [!] Method is generated. Documentation taken from corresponding module.
357
     *
358
     * @param $actual
359
     * @param $description
360
     * @see \Codeception\Module\Asserts::assertIsEmpty()
361
     */
362
    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...
363
    {
364
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsEmpty', func_get_args()));
365
    }
366
367
368
    /**
369
     * [!] Method is generated. Documentation taken from corresponding module.
370
     *
371
     * @param $key
372
     * @param $actual
373
     * @param $description
374
     * @see \Codeception\Module\Asserts::assertArrayHasKey()
375
     */
376
    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...
377
    {
378
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayHasKey', func_get_args()));
379
    }
380
381
382
    /**
383
     * [!] Method is generated. Documentation taken from corresponding module.
384
     *
385
     * @param $key
386
     * @param $actual
387
     * @param $description
388
     * @see \Codeception\Module\Asserts::assertArrayNotHasKey()
389
     */
390
    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...
391
    {
392
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayNotHasKey', func_get_args()));
393
    }
394
395
396
    /**
397
     * [!] Method is generated. Documentation taken from corresponding module.
398
     *
399
     * @param $class
400
     * @param $actual
401
     * @param $description
402
     * @see \Codeception\Module\Asserts::assertInstanceOf()
403
     */
404
    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...
405
    {
406
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInstanceOf', func_get_args()));
407
    }
408
409
410
    /**
411
     * [!] Method is generated. Documentation taken from corresponding module.
412
     *
413
     * @param $class
414
     * @param $actual
415
     * @param $description
416
     * @see \Codeception\Module\Asserts::assertNotInstanceOf()
417
     */
418
    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...
419
    {
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
    {
434
        return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInternalType', func_get_args()));
435
    }
436
437
438
    /**
439
     * [!] Method is generated. Documentation taken from corresponding module.
440
     *
441
     * Fails the test with message.
442
     *
443
     * @param $message
444
     * @see \Codeception\Module\Asserts::fail()
445
     */
446
    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...
447
    {
448
        return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args()));
449
    }
450
451
452
    /**
453
     * [!] Method is generated. Documentation taken from corresponding module.
454
     *
455
     * Handles and checks exception called inside callback function.
456
     * Either exception class name or exception instance should be provided.
457
     *
458
     * ```php
459
     * <?php
460
     * $I->expectException(MyException::class, function() {
461
     *     $this->doSomethingBad();
462
     * });
463
     *
464
     * $I->expectException(new MyException(), function() {
465
     *     $this->doSomethingBad();
466
     * });
467
     * ```
468
     * If you want to check message or exception code, you can pass them with exception instance:
469
     * ```php
470
     * <?php
471
     * // will check that exception MyException is thrown with "Don't do bad things" message
472
     * $I->expectException(new MyException("Don't do bad things"), function() {
473
     *     $this->doSomethingBad();
474
     * });
475
     * ```
476
     *
477
     * @param $exception string or \Exception
478
     * @param $callback
479
     * @see \Codeception\Module\Asserts::expectException()
480
     */
481
    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...
482
    {
483
        return $this->getScenario()->runStep(new \Codeception\Step\Action('expectException', func_get_args()));
484
    }
485
}
486