|
1
|
|
|
<?php //[STAMP] 38f24ec381bf2fd2659fa89d6975e503 |
|
2
|
|
|
|
|
3
|
|
|
namespace _generated; |
|
4
|
|
|
|
|
5
|
|
|
// This class was automatically generated by build task |
|
6
|
|
|
// You should not change it manually as it will be overwritten on next build |
|
7
|
|
|
// @codingStandardsIgnoreFile |
|
8
|
|
|
|
|
9
|
|
|
trait UnitTesterActions |
|
10
|
|
|
{ |
|
11
|
|
|
/** |
|
12
|
|
|
* @return \Codeception\Scenario |
|
13
|
|
|
*/ |
|
14
|
|
|
abstract protected function getScenario(); |
|
15
|
|
|
|
|
16
|
|
|
|
|
17
|
|
|
/** |
|
18
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
19
|
|
|
* |
|
20
|
|
|
* Handles and checks exception called inside callback function. |
|
21
|
|
|
* Either exception class name or exception instance should be provided. |
|
22
|
|
|
* |
|
23
|
|
|
* ```php |
|
24
|
|
|
* <?php |
|
25
|
|
|
* $I->expectException(MyException::class, function() { |
|
26
|
|
|
* $this->doSomethingBad(); |
|
27
|
|
|
* }); |
|
28
|
|
|
* |
|
29
|
|
|
* $I->expectException(new MyException(), function() { |
|
30
|
|
|
* $this->doSomethingBad(); |
|
31
|
|
|
* }); |
|
32
|
|
|
* ``` |
|
33
|
|
|
* If you want to check message or exception code, you can pass them with exception instance: |
|
34
|
|
|
* ```php |
|
35
|
|
|
* <?php |
|
36
|
|
|
* // will check that exception MyException is thrown with "Don't do bad things" message |
|
37
|
|
|
* $I->expectException(new MyException("Don't do bad things"), function() { |
|
38
|
|
|
* $this->doSomethingBad(); |
|
39
|
|
|
* }); |
|
40
|
|
|
* ``` |
|
41
|
|
|
* |
|
42
|
|
|
* @param $exception string or \Exception |
|
43
|
|
|
* @param $callback |
|
44
|
|
|
* @see \Codeception\Module\Asserts::expectException() |
|
45
|
|
|
*/ |
|
46
|
|
|
public function expectException($exception, $callback) { |
|
|
|
|
|
|
47
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('expectException', func_get_args())); |
|
48
|
|
|
} |
|
49
|
|
|
|
|
50
|
|
|
|
|
51
|
|
|
/** |
|
52
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
53
|
|
|
* |
|
54
|
|
|
* Handles and checks throwables (Exceptions/Errors) called inside the callback function. |
|
55
|
|
|
* Either throwable class name or throwable instance should be provided. |
|
56
|
|
|
* |
|
57
|
|
|
* ```php |
|
58
|
|
|
* <?php |
|
59
|
|
|
* $I->expectThrowable(MyThrowable::class, function() { |
|
60
|
|
|
* $this->doSomethingBad(); |
|
61
|
|
|
* }); |
|
62
|
|
|
* |
|
63
|
|
|
* $I->expectThrowable(new MyException(), function() { |
|
64
|
|
|
* $this->doSomethingBad(); |
|
65
|
|
|
* }); |
|
66
|
|
|
* ``` |
|
67
|
|
|
* If you want to check message or throwable code, you can pass them with throwable instance: |
|
68
|
|
|
* ```php |
|
69
|
|
|
* <?php |
|
70
|
|
|
* // will check that throwable MyError is thrown with "Don't do bad things" message |
|
71
|
|
|
* $I->expectThrowable(new MyError("Don't do bad things"), function() { |
|
72
|
|
|
* $this->doSomethingBad(); |
|
73
|
|
|
* }); |
|
74
|
|
|
* ``` |
|
75
|
|
|
* |
|
76
|
|
|
* @param $throwable string or \Throwable |
|
77
|
|
|
* @param $callback |
|
78
|
|
|
* @see \Codeception\Module\Asserts::expectThrowable() |
|
79
|
|
|
*/ |
|
80
|
|
|
public function expectThrowable($throwable, $callback) { |
|
|
|
|
|
|
81
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('expectThrowable', func_get_args())); |
|
82
|
|
|
} |
|
83
|
|
|
|
|
84
|
|
|
|
|
85
|
|
|
/** |
|
86
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
87
|
|
|
* |
|
88
|
|
|
* Checks that two variables are equal. |
|
89
|
|
|
* |
|
90
|
|
|
* @param $expected |
|
91
|
|
|
* @param $actual |
|
92
|
|
|
* @param string $message |
|
93
|
|
|
* @param float $delta |
|
94
|
|
|
* @see \Codeception\Module\Asserts::assertEquals() |
|
95
|
|
|
*/ |
|
96
|
|
|
public function assertEquals($expected, $actual, $message = null, $delta = null) { |
|
|
|
|
|
|
97
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args())); |
|
98
|
|
|
} |
|
99
|
|
|
|
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
103
|
|
|
* |
|
104
|
|
|
* Checks that two variables are not equal |
|
105
|
|
|
* |
|
106
|
|
|
* @param $expected |
|
107
|
|
|
* @param $actual |
|
108
|
|
|
* @param string $message |
|
109
|
|
|
* @param float $delta |
|
110
|
|
|
* @see \Codeception\Module\Asserts::assertNotEquals() |
|
111
|
|
|
*/ |
|
112
|
|
|
public function assertNotEquals($expected, $actual, $message = null, $delta = null) { |
|
|
|
|
|
|
113
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args())); |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
|
|
117
|
|
|
/** |
|
118
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
119
|
|
|
* |
|
120
|
|
|
* Checks that two variables are same |
|
121
|
|
|
* |
|
122
|
|
|
* @param $expected |
|
123
|
|
|
* @param $actual |
|
124
|
|
|
* @param string $message |
|
125
|
|
|
* @see \Codeception\Module\Asserts::assertSame() |
|
126
|
|
|
*/ |
|
127
|
|
|
public function assertSame($expected, $actual, $message = null) { |
|
|
|
|
|
|
128
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args())); |
|
129
|
|
|
} |
|
130
|
|
|
|
|
131
|
|
|
|
|
132
|
|
|
/** |
|
133
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
134
|
|
|
* |
|
135
|
|
|
* Checks that two variables are not same |
|
136
|
|
|
* |
|
137
|
|
|
* @param $expected |
|
138
|
|
|
* @param $actual |
|
139
|
|
|
* @param string $message |
|
140
|
|
|
* @see \Codeception\Module\Asserts::assertNotSame() |
|
141
|
|
|
*/ |
|
142
|
|
|
public function assertNotSame($expected, $actual, $message = null) { |
|
|
|
|
|
|
143
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args())); |
|
144
|
|
|
} |
|
145
|
|
|
|
|
146
|
|
|
|
|
147
|
|
|
/** |
|
148
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
149
|
|
|
* |
|
150
|
|
|
* Checks that actual is greater than expected |
|
151
|
|
|
* |
|
152
|
|
|
* @param $expected |
|
153
|
|
|
* @param $actual |
|
154
|
|
|
* @param string $message |
|
155
|
|
|
* @see \Codeception\Module\Asserts::assertGreaterThan() |
|
156
|
|
|
*/ |
|
157
|
|
|
public function assertGreaterThan($expected, $actual, $message = null) { |
|
|
|
|
|
|
158
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThan', func_get_args())); |
|
159
|
|
|
} |
|
160
|
|
|
|
|
161
|
|
|
|
|
162
|
|
|
/** |
|
163
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
164
|
|
|
* |
|
165
|
|
|
* Checks that actual is greater or equal than expected |
|
166
|
|
|
* |
|
167
|
|
|
* @param $expected |
|
168
|
|
|
* @param $actual |
|
169
|
|
|
* @param string $message |
|
170
|
|
|
* @see \Codeception\Module\Asserts::assertGreaterThanOrEqual() |
|
171
|
|
|
*/ |
|
172
|
|
|
public function assertGreaterThanOrEqual($expected, $actual, $message = null) { |
|
|
|
|
|
|
173
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args())); |
|
174
|
|
|
} |
|
175
|
|
|
|
|
176
|
|
|
|
|
177
|
|
|
/** |
|
178
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
179
|
|
|
* |
|
180
|
|
|
* Checks that actual is less than expected |
|
181
|
|
|
* |
|
182
|
|
|
* @param $expected |
|
183
|
|
|
* @param $actual |
|
184
|
|
|
* @param string $message |
|
185
|
|
|
* @see \Codeception\Module\Asserts::assertLessThan() |
|
186
|
|
|
*/ |
|
187
|
|
|
public function assertLessThan($expected, $actual, $message = null) { |
|
|
|
|
|
|
188
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args())); |
|
189
|
|
|
} |
|
190
|
|
|
|
|
191
|
|
|
|
|
192
|
|
|
/** |
|
193
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
194
|
|
|
* |
|
195
|
|
|
* Checks that actual is less or equal than expected |
|
196
|
|
|
* |
|
197
|
|
|
* @param $expected |
|
198
|
|
|
* @param $actual |
|
199
|
|
|
* @param string $message |
|
200
|
|
|
* @see \Codeception\Module\Asserts::assertLessThanOrEqual() |
|
201
|
|
|
*/ |
|
202
|
|
|
public function assertLessThanOrEqual($expected, $actual, $message = null) { |
|
|
|
|
|
|
203
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args())); |
|
204
|
|
|
} |
|
205
|
|
|
|
|
206
|
|
|
|
|
207
|
|
|
/** |
|
208
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
209
|
|
|
* |
|
210
|
|
|
* Checks that haystack contains needle |
|
211
|
|
|
* |
|
212
|
|
|
* @param $needle |
|
213
|
|
|
* @param $haystack |
|
214
|
|
|
* @param string $message |
|
215
|
|
|
* @see \Codeception\Module\Asserts::assertContains() |
|
216
|
|
|
*/ |
|
217
|
|
|
public function assertContains($needle, $haystack, $message = null) { |
|
|
|
|
|
|
218
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContains', func_get_args())); |
|
219
|
|
|
} |
|
220
|
|
|
|
|
221
|
|
|
|
|
222
|
|
|
/** |
|
223
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
224
|
|
|
* |
|
225
|
|
|
* Checks that haystack doesn't contain needle. |
|
226
|
|
|
* |
|
227
|
|
|
* @param $needle |
|
228
|
|
|
* @param $haystack |
|
229
|
|
|
* @param string $message |
|
230
|
|
|
* @see \Codeception\Module\Asserts::assertNotContains() |
|
231
|
|
|
*/ |
|
232
|
|
|
public function assertNotContains($needle, $haystack, $message = null) { |
|
|
|
|
|
|
233
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args())); |
|
234
|
|
|
} |
|
235
|
|
|
|
|
236
|
|
|
|
|
237
|
|
|
/** |
|
238
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
239
|
|
|
* |
|
240
|
|
|
* Checks that string match with pattern |
|
241
|
|
|
* |
|
242
|
|
|
* @param string $pattern |
|
243
|
|
|
* @param string $string |
|
244
|
|
|
* @param string $message |
|
245
|
|
|
* @see \Codeception\Module\Asserts::assertRegExp() |
|
246
|
|
|
*/ |
|
247
|
|
|
public function assertRegExp($pattern, $string, $message = null) { |
|
|
|
|
|
|
248
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args())); |
|
249
|
|
|
} |
|
250
|
|
|
|
|
251
|
|
|
|
|
252
|
|
|
/** |
|
253
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
254
|
|
|
* |
|
255
|
|
|
* Checks that string not match with pattern |
|
256
|
|
|
* |
|
257
|
|
|
* @param string $pattern |
|
258
|
|
|
* @param string $string |
|
259
|
|
|
* @param string $message |
|
260
|
|
|
* @see \Codeception\Module\Asserts::assertNotRegExp() |
|
261
|
|
|
*/ |
|
262
|
|
|
public function assertNotRegExp($pattern, $string, $message = null) { |
|
|
|
|
|
|
263
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args())); |
|
264
|
|
|
} |
|
265
|
|
|
|
|
266
|
|
|
|
|
267
|
|
|
/** |
|
268
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
269
|
|
|
* |
|
270
|
|
|
* Checks that a string starts with the given prefix. |
|
271
|
|
|
* |
|
272
|
|
|
* @param string $prefix |
|
273
|
|
|
* @param string $string |
|
274
|
|
|
* @param string $message |
|
275
|
|
|
* @see \Codeception\Module\Asserts::assertStringStartsWith() |
|
276
|
|
|
*/ |
|
277
|
|
|
public function assertStringStartsWith($prefix, $string, $message = null) { |
|
|
|
|
|
|
278
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsWith', func_get_args())); |
|
279
|
|
|
} |
|
280
|
|
|
|
|
281
|
|
|
|
|
282
|
|
|
/** |
|
283
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
284
|
|
|
* |
|
285
|
|
|
* Checks that a string doesn't start with the given prefix. |
|
286
|
|
|
* |
|
287
|
|
|
* @param string $prefix |
|
288
|
|
|
* @param string $string |
|
289
|
|
|
* @param string $message |
|
290
|
|
|
* @see \Codeception\Module\Asserts::assertStringStartsNotWith() |
|
291
|
|
|
*/ |
|
292
|
|
|
public function assertStringStartsNotWith($prefix, $string, $message = null) { |
|
|
|
|
|
|
293
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringStartsNotWith', func_get_args())); |
|
294
|
|
|
} |
|
295
|
|
|
|
|
296
|
|
|
|
|
297
|
|
|
/** |
|
298
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
299
|
|
|
* |
|
300
|
|
|
* Checks that variable is empty. |
|
301
|
|
|
* |
|
302
|
|
|
* @param $actual |
|
303
|
|
|
* @param string $message |
|
304
|
|
|
* @see \Codeception\Module\Asserts::assertEmpty() |
|
305
|
|
|
*/ |
|
306
|
|
|
public function assertEmpty($actual, $message = null) { |
|
|
|
|
|
|
307
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEmpty', func_get_args())); |
|
308
|
|
|
} |
|
309
|
|
|
|
|
310
|
|
|
|
|
311
|
|
|
/** |
|
312
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
313
|
|
|
* |
|
314
|
|
|
* Checks that variable is not empty. |
|
315
|
|
|
* |
|
316
|
|
|
* @param $actual |
|
317
|
|
|
* @param string $message |
|
318
|
|
|
* @see \Codeception\Module\Asserts::assertNotEmpty() |
|
319
|
|
|
*/ |
|
320
|
|
|
public function assertNotEmpty($actual, $message = null) { |
|
|
|
|
|
|
321
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args())); |
|
322
|
|
|
} |
|
323
|
|
|
|
|
324
|
|
|
|
|
325
|
|
|
/** |
|
326
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
327
|
|
|
* |
|
328
|
|
|
* Checks that variable is NULL |
|
329
|
|
|
* |
|
330
|
|
|
* @param $actual |
|
331
|
|
|
* @param string $message |
|
332
|
|
|
* @see \Codeception\Module\Asserts::assertNull() |
|
333
|
|
|
*/ |
|
334
|
|
|
public function assertNull($actual, $message = null) { |
|
|
|
|
|
|
335
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args())); |
|
336
|
|
|
} |
|
337
|
|
|
|
|
338
|
|
|
|
|
339
|
|
|
/** |
|
340
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
341
|
|
|
* |
|
342
|
|
|
* Checks that variable is not NULL |
|
343
|
|
|
* |
|
344
|
|
|
* @param $actual |
|
345
|
|
|
* @param string $message |
|
346
|
|
|
* @see \Codeception\Module\Asserts::assertNotNull() |
|
347
|
|
|
*/ |
|
348
|
|
|
public function assertNotNull($actual, $message = null) { |
|
|
|
|
|
|
349
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args())); |
|
350
|
|
|
} |
|
351
|
|
|
|
|
352
|
|
|
|
|
353
|
|
|
/** |
|
354
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
355
|
|
|
* |
|
356
|
|
|
* Checks that condition is positive. |
|
357
|
|
|
* |
|
358
|
|
|
* @param $condition |
|
359
|
|
|
* @param string $message |
|
360
|
|
|
* @see \Codeception\Module\Asserts::assertTrue() |
|
361
|
|
|
*/ |
|
362
|
|
|
public function assertTrue($condition, $message = null) { |
|
|
|
|
|
|
363
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args())); |
|
364
|
|
|
} |
|
365
|
|
|
|
|
366
|
|
|
|
|
367
|
|
|
/** |
|
368
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
369
|
|
|
* |
|
370
|
|
|
* Checks that the condition is NOT true (everything but true) |
|
371
|
|
|
* |
|
372
|
|
|
* @param $condition |
|
373
|
|
|
* @param string $message |
|
374
|
|
|
* @see \Codeception\Module\Asserts::assertNotTrue() |
|
375
|
|
|
*/ |
|
376
|
|
|
public function assertNotTrue($condition, $message = null) { |
|
|
|
|
|
|
377
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotTrue', func_get_args())); |
|
378
|
|
|
} |
|
379
|
|
|
|
|
380
|
|
|
|
|
381
|
|
|
/** |
|
382
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
383
|
|
|
* |
|
384
|
|
|
* Checks that condition is negative. |
|
385
|
|
|
* |
|
386
|
|
|
* @param $condition |
|
387
|
|
|
* @param string $message |
|
388
|
|
|
* @see \Codeception\Module\Asserts::assertFalse() |
|
389
|
|
|
*/ |
|
390
|
|
|
public function assertFalse($condition, $message = null) { |
|
|
|
|
|
|
391
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args())); |
|
392
|
|
|
} |
|
393
|
|
|
|
|
394
|
|
|
|
|
395
|
|
|
/** |
|
396
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
397
|
|
|
* |
|
398
|
|
|
* Checks that the condition is NOT false (everything but false) |
|
399
|
|
|
* |
|
400
|
|
|
* @param $condition |
|
401
|
|
|
* @param string $message |
|
402
|
|
|
* @see \Codeception\Module\Asserts::assertNotFalse() |
|
403
|
|
|
*/ |
|
404
|
|
|
public function assertNotFalse($condition, $message = null) { |
|
|
|
|
|
|
405
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotFalse', func_get_args())); |
|
406
|
|
|
} |
|
407
|
|
|
|
|
408
|
|
|
|
|
409
|
|
|
/** |
|
410
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
411
|
|
|
* |
|
412
|
|
|
* Checks if file exists |
|
413
|
|
|
* |
|
414
|
|
|
* @param string $filename |
|
415
|
|
|
* @param string $message |
|
416
|
|
|
* @see \Codeception\Module\Asserts::assertFileExists() |
|
417
|
|
|
*/ |
|
418
|
|
|
public function assertFileExists($filename, $message = null) { |
|
|
|
|
|
|
419
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileExists', func_get_args())); |
|
420
|
|
|
} |
|
421
|
|
|
|
|
422
|
|
|
|
|
423
|
|
|
/** |
|
424
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
425
|
|
|
* |
|
426
|
|
|
* Checks if file doesn't exist |
|
427
|
|
|
* |
|
428
|
|
|
* @param string $filename |
|
429
|
|
|
* @param string $message |
|
430
|
|
|
* @see \Codeception\Module\Asserts::assertFileNotExists() |
|
431
|
|
|
*/ |
|
432
|
|
|
public function assertFileNotExists($filename, $message = null) { |
|
|
|
|
|
|
433
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args())); |
|
434
|
|
|
} |
|
435
|
|
|
|
|
436
|
|
|
|
|
437
|
|
|
/** |
|
438
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
439
|
|
|
* |
|
440
|
|
|
* @param $expected |
|
441
|
|
|
* @param $actual |
|
442
|
|
|
* @param $description |
|
443
|
|
|
* @see \Codeception\Module\Asserts::assertGreaterOrEquals() |
|
444
|
|
|
*/ |
|
445
|
|
|
public function assertGreaterOrEquals($expected, $actual, $description = null) { |
|
|
|
|
|
|
446
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterOrEquals', func_get_args())); |
|
447
|
|
|
} |
|
448
|
|
|
|
|
449
|
|
|
|
|
450
|
|
|
/** |
|
451
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
452
|
|
|
* |
|
453
|
|
|
* @param $expected |
|
454
|
|
|
* @param $actual |
|
455
|
|
|
* @param $description |
|
456
|
|
|
* @see \Codeception\Module\Asserts::assertLessOrEquals() |
|
457
|
|
|
*/ |
|
458
|
|
|
public function assertLessOrEquals($expected, $actual, $description = null) { |
|
|
|
|
|
|
459
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessOrEquals', func_get_args())); |
|
460
|
|
|
} |
|
461
|
|
|
|
|
462
|
|
|
|
|
463
|
|
|
/** |
|
464
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
465
|
|
|
* |
|
466
|
|
|
* @param $actual |
|
467
|
|
|
* @param $description |
|
468
|
|
|
* @see \Codeception\Module\Asserts::assertIsEmpty() |
|
469
|
|
|
*/ |
|
470
|
|
|
public function assertIsEmpty($actual, $description = null) { |
|
|
|
|
|
|
471
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsEmpty', func_get_args())); |
|
472
|
|
|
} |
|
473
|
|
|
|
|
474
|
|
|
|
|
475
|
|
|
/** |
|
476
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
477
|
|
|
* |
|
478
|
|
|
* @param $key |
|
479
|
|
|
* @param $actual |
|
480
|
|
|
* @param $description |
|
481
|
|
|
* @see \Codeception\Module\Asserts::assertArrayHasKey() |
|
482
|
|
|
*/ |
|
483
|
|
|
public function assertArrayHasKey($key, $actual, $description = null) { |
|
|
|
|
|
|
484
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayHasKey', func_get_args())); |
|
485
|
|
|
} |
|
486
|
|
|
|
|
487
|
|
|
|
|
488
|
|
|
/** |
|
489
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
490
|
|
|
* |
|
491
|
|
|
* @param $key |
|
492
|
|
|
* @param $actual |
|
493
|
|
|
* @param $description |
|
494
|
|
|
* @see \Codeception\Module\Asserts::assertArrayNotHasKey() |
|
495
|
|
|
*/ |
|
496
|
|
|
public function assertArrayNotHasKey($key, $actual, $description = null) { |
|
|
|
|
|
|
497
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArrayNotHasKey', func_get_args())); |
|
498
|
|
|
} |
|
499
|
|
|
|
|
500
|
|
|
|
|
501
|
|
|
/** |
|
502
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
503
|
|
|
* |
|
504
|
|
|
* @param $expectedCount |
|
505
|
|
|
* @param $actual |
|
506
|
|
|
* @param $description |
|
507
|
|
|
* @see \Codeception\Module\Asserts::assertCount() |
|
508
|
|
|
*/ |
|
509
|
|
|
public function assertCount($expectedCount, $actual, $description = null) { |
|
|
|
|
|
|
510
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertCount', func_get_args())); |
|
511
|
|
|
} |
|
512
|
|
|
|
|
513
|
|
|
|
|
514
|
|
|
/** |
|
515
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
516
|
|
|
* |
|
517
|
|
|
* @param $class |
|
518
|
|
|
* @param $actual |
|
519
|
|
|
* @param $description |
|
520
|
|
|
* @see \Codeception\Module\Asserts::assertInstanceOf() |
|
521
|
|
|
*/ |
|
522
|
|
|
public function assertInstanceOf($class, $actual, $description = null) { |
|
|
|
|
|
|
523
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInstanceOf', func_get_args())); |
|
524
|
|
|
} |
|
525
|
|
|
|
|
526
|
|
|
|
|
527
|
|
|
/** |
|
528
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
529
|
|
|
* |
|
530
|
|
|
* @param $class |
|
531
|
|
|
* @param $actual |
|
532
|
|
|
* @param $description |
|
533
|
|
|
* @see \Codeception\Module\Asserts::assertNotInstanceOf() |
|
534
|
|
|
*/ |
|
535
|
|
|
public function assertNotInstanceOf($class, $actual, $description = null) { |
|
|
|
|
|
|
536
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotInstanceOf', func_get_args())); |
|
537
|
|
|
} |
|
538
|
|
|
|
|
539
|
|
|
|
|
540
|
|
|
/** |
|
541
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
542
|
|
|
* |
|
543
|
|
|
* @param $type |
|
544
|
|
|
* @param $actual |
|
545
|
|
|
* @param $description |
|
546
|
|
|
* @see \Codeception\Module\Asserts::assertInternalType() |
|
547
|
|
|
*/ |
|
548
|
|
|
public function assertInternalType($type, $actual, $description = null) { |
|
|
|
|
|
|
549
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertInternalType', func_get_args())); |
|
550
|
|
|
} |
|
551
|
|
|
|
|
552
|
|
|
|
|
553
|
|
|
/** |
|
554
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
555
|
|
|
* |
|
556
|
|
|
* Fails the test with message. |
|
557
|
|
|
* |
|
558
|
|
|
* @param $message |
|
559
|
|
|
* @see \Codeception\Module\Asserts::fail() |
|
560
|
|
|
*/ |
|
561
|
|
|
public function fail($message) { |
|
|
|
|
|
|
562
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args())); |
|
563
|
|
|
} |
|
564
|
|
|
|
|
565
|
|
|
|
|
566
|
|
|
/** |
|
567
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
568
|
|
|
* |
|
569
|
|
|
* |
|
570
|
|
|
* @see \Codeception\Module\Asserts::assertStringContainsString() |
|
571
|
|
|
*/ |
|
572
|
|
|
public function assertStringContainsString($needle, $haystack, $message = null) { |
|
|
|
|
|
|
573
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsString', func_get_args())); |
|
574
|
|
|
} |
|
575
|
|
|
|
|
576
|
|
|
|
|
577
|
|
|
/** |
|
578
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
579
|
|
|
* |
|
580
|
|
|
* |
|
581
|
|
|
* @see \Codeception\Module\Asserts::assertStringNotContainsString() |
|
582
|
|
|
*/ |
|
583
|
|
|
public function assertStringNotContainsString($needle, $haystack, $message = null) { |
|
|
|
|
|
|
584
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsString', func_get_args())); |
|
585
|
|
|
} |
|
586
|
|
|
|
|
587
|
|
|
|
|
588
|
|
|
/** |
|
589
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
590
|
|
|
* |
|
591
|
|
|
* |
|
592
|
|
|
* @see \Codeception\Module\Asserts::assertStringContainsStringIgnoringCase() |
|
593
|
|
|
*/ |
|
594
|
|
|
public function assertStringContainsStringIgnoringCase($needle, $haystack, $message = null) { |
|
|
|
|
|
|
595
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringContainsStringIgnoringCase', func_get_args())); |
|
596
|
|
|
} |
|
597
|
|
|
|
|
598
|
|
|
|
|
599
|
|
|
/** |
|
600
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
601
|
|
|
* |
|
602
|
|
|
* |
|
603
|
|
|
* @see \Codeception\Module\Asserts::assertStringNotContainsStringIgnoringCase() |
|
604
|
|
|
*/ |
|
605
|
|
|
public function assertStringNotContainsStringIgnoringCase($needle, $haystack, $message = null) { |
|
|
|
|
|
|
606
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertStringNotContainsStringIgnoringCase', func_get_args())); |
|
607
|
|
|
} |
|
608
|
|
|
|
|
609
|
|
|
|
|
610
|
|
|
/** |
|
611
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
612
|
|
|
* |
|
613
|
|
|
* |
|
614
|
|
|
* @see \Codeception\Module\Asserts::assertIsArray() |
|
615
|
|
|
*/ |
|
616
|
|
|
public function assertIsArray($actual, $message = null) { |
|
|
|
|
|
|
617
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsArray', func_get_args())); |
|
618
|
|
|
} |
|
619
|
|
|
|
|
620
|
|
|
|
|
621
|
|
|
/** |
|
622
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
623
|
|
|
* |
|
624
|
|
|
* |
|
625
|
|
|
* @see \Codeception\Module\Asserts::assertIsBool() |
|
626
|
|
|
*/ |
|
627
|
|
|
public function assertIsBool($actual, $message = null) { |
|
|
|
|
|
|
628
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsBool', func_get_args())); |
|
629
|
|
|
} |
|
630
|
|
|
|
|
631
|
|
|
|
|
632
|
|
|
/** |
|
633
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
634
|
|
|
* |
|
635
|
|
|
* |
|
636
|
|
|
* @see \Codeception\Module\Asserts::assertIsFloat() |
|
637
|
|
|
*/ |
|
638
|
|
|
public function assertIsFloat($actual, $message = null) { |
|
|
|
|
|
|
639
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsFloat', func_get_args())); |
|
640
|
|
|
} |
|
641
|
|
|
|
|
642
|
|
|
|
|
643
|
|
|
/** |
|
644
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
645
|
|
|
* |
|
646
|
|
|
* |
|
647
|
|
|
* @see \Codeception\Module\Asserts::assertIsInt() |
|
648
|
|
|
*/ |
|
649
|
|
|
public function assertIsInt($actual, $message = null) { |
|
|
|
|
|
|
650
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsInt', func_get_args())); |
|
651
|
|
|
} |
|
652
|
|
|
|
|
653
|
|
|
|
|
654
|
|
|
/** |
|
655
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
656
|
|
|
* |
|
657
|
|
|
* |
|
658
|
|
|
* @see \Codeception\Module\Asserts::assertIsNumeric() |
|
659
|
|
|
*/ |
|
660
|
|
|
public function assertIsNumeric($actual, $message = null) { |
|
|
|
|
|
|
661
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNumeric', func_get_args())); |
|
662
|
|
|
} |
|
663
|
|
|
|
|
664
|
|
|
|
|
665
|
|
|
/** |
|
666
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
667
|
|
|
* |
|
668
|
|
|
* |
|
669
|
|
|
* @see \Codeception\Module\Asserts::assertIsObject() |
|
670
|
|
|
*/ |
|
671
|
|
|
public function assertIsObject($actual, $message = null) { |
|
|
|
|
|
|
672
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsObject', func_get_args())); |
|
673
|
|
|
} |
|
674
|
|
|
|
|
675
|
|
|
|
|
676
|
|
|
/** |
|
677
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
678
|
|
|
* |
|
679
|
|
|
* |
|
680
|
|
|
* @see \Codeception\Module\Asserts::assertIsResource() |
|
681
|
|
|
*/ |
|
682
|
|
|
public function assertIsResource($actual, $message = null) { |
|
|
|
|
|
|
683
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsResource', func_get_args())); |
|
684
|
|
|
} |
|
685
|
|
|
|
|
686
|
|
|
|
|
687
|
|
|
/** |
|
688
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
689
|
|
|
* |
|
690
|
|
|
* |
|
691
|
|
|
* @see \Codeception\Module\Asserts::assertIsString() |
|
692
|
|
|
*/ |
|
693
|
|
|
public function assertIsString($actual, $message = null) { |
|
|
|
|
|
|
694
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsString', func_get_args())); |
|
695
|
|
|
} |
|
696
|
|
|
|
|
697
|
|
|
|
|
698
|
|
|
/** |
|
699
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
700
|
|
|
* |
|
701
|
|
|
* |
|
702
|
|
|
* @see \Codeception\Module\Asserts::assertIsScalar() |
|
703
|
|
|
*/ |
|
704
|
|
|
public function assertIsScalar($actual, $message = null) { |
|
|
|
|
|
|
705
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsScalar', func_get_args())); |
|
706
|
|
|
} |
|
707
|
|
|
|
|
708
|
|
|
|
|
709
|
|
|
/** |
|
710
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
711
|
|
|
* |
|
712
|
|
|
* |
|
713
|
|
|
* @see \Codeception\Module\Asserts::assertIsCallable() |
|
714
|
|
|
*/ |
|
715
|
|
|
public function assertIsCallable($actual, $message = null) { |
|
|
|
|
|
|
716
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsCallable', func_get_args())); |
|
717
|
|
|
} |
|
718
|
|
|
|
|
719
|
|
|
|
|
720
|
|
|
/** |
|
721
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
722
|
|
|
* |
|
723
|
|
|
* |
|
724
|
|
|
* @see \Codeception\Module\Asserts::assertIsNotArray() |
|
725
|
|
|
*/ |
|
726
|
|
|
public function assertIsNotArray($actual, $message = null) { |
|
|
|
|
|
|
727
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotArray', func_get_args())); |
|
728
|
|
|
} |
|
729
|
|
|
|
|
730
|
|
|
|
|
731
|
|
|
/** |
|
732
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
733
|
|
|
* |
|
734
|
|
|
* |
|
735
|
|
|
* @see \Codeception\Module\Asserts::assertIsNotBool() |
|
736
|
|
|
*/ |
|
737
|
|
|
public function assertIsNotBool($actual, $message = null) { |
|
|
|
|
|
|
738
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotBool', func_get_args())); |
|
739
|
|
|
} |
|
740
|
|
|
|
|
741
|
|
|
|
|
742
|
|
|
/** |
|
743
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
744
|
|
|
* |
|
745
|
|
|
* |
|
746
|
|
|
* @see \Codeception\Module\Asserts::assertIsNotFloat() |
|
747
|
|
|
*/ |
|
748
|
|
|
public function assertIsNotFloat($actual, $message = null) { |
|
|
|
|
|
|
749
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotFloat', func_get_args())); |
|
750
|
|
|
} |
|
751
|
|
|
|
|
752
|
|
|
|
|
753
|
|
|
/** |
|
754
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
755
|
|
|
* |
|
756
|
|
|
* |
|
757
|
|
|
* @see \Codeception\Module\Asserts::assertIsNotInt() |
|
758
|
|
|
*/ |
|
759
|
|
|
public function assertIsNotInt($actual, $message = null) { |
|
|
|
|
|
|
760
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotInt', func_get_args())); |
|
761
|
|
|
} |
|
762
|
|
|
|
|
763
|
|
|
|
|
764
|
|
|
/** |
|
765
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
766
|
|
|
* |
|
767
|
|
|
* |
|
768
|
|
|
* @see \Codeception\Module\Asserts::assertIsNotNumeric() |
|
769
|
|
|
*/ |
|
770
|
|
|
public function assertIsNotNumeric($actual, $message = null) { |
|
|
|
|
|
|
771
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotNumeric', func_get_args())); |
|
772
|
|
|
} |
|
773
|
|
|
|
|
774
|
|
|
|
|
775
|
|
|
/** |
|
776
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
777
|
|
|
* |
|
778
|
|
|
* |
|
779
|
|
|
* @see \Codeception\Module\Asserts::assertIsNotObject() |
|
780
|
|
|
*/ |
|
781
|
|
|
public function assertIsNotObject($actual, $message = null) { |
|
|
|
|
|
|
782
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotObject', func_get_args())); |
|
783
|
|
|
} |
|
784
|
|
|
|
|
785
|
|
|
|
|
786
|
|
|
/** |
|
787
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
788
|
|
|
* |
|
789
|
|
|
* |
|
790
|
|
|
* @see \Codeception\Module\Asserts::assertIsNotResource() |
|
791
|
|
|
*/ |
|
792
|
|
|
public function assertIsNotResource($actual, $message = null) { |
|
|
|
|
|
|
793
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotResource', func_get_args())); |
|
794
|
|
|
} |
|
795
|
|
|
|
|
796
|
|
|
|
|
797
|
|
|
/** |
|
798
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
799
|
|
|
* |
|
800
|
|
|
* |
|
801
|
|
|
* @see \Codeception\Module\Asserts::assertIsNotString() |
|
802
|
|
|
*/ |
|
803
|
|
|
public function assertIsNotString($actual, $message = null) { |
|
|
|
|
|
|
804
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotString', func_get_args())); |
|
805
|
|
|
} |
|
806
|
|
|
|
|
807
|
|
|
|
|
808
|
|
|
/** |
|
809
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
810
|
|
|
* |
|
811
|
|
|
* |
|
812
|
|
|
* @see \Codeception\Module\Asserts::assertIsNotScalar() |
|
813
|
|
|
*/ |
|
814
|
|
|
public function assertIsNotScalar($actual, $message = null) { |
|
|
|
|
|
|
815
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotScalar', func_get_args())); |
|
816
|
|
|
} |
|
817
|
|
|
|
|
818
|
|
|
|
|
819
|
|
|
/** |
|
820
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
|
821
|
|
|
* |
|
822
|
|
|
* |
|
823
|
|
|
* @see \Codeception\Module\Asserts::assertIsNotCallable() |
|
824
|
|
|
*/ |
|
825
|
|
|
public function assertIsNotCallable($actual, $message = null) { |
|
|
|
|
|
|
826
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertIsNotCallable', func_get_args())); |
|
827
|
|
|
} |
|
828
|
|
|
} |
|
829
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.