1
|
|
|
<?php //[STAMP] 3bcba9e954b12f3dc227aad523b134a9 |
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 Helper\Unit; |
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
|
|
|
* |
28
|
|
|
* @return mixed |
29
|
|
|
* @see \Codeception\Module\Asserts::assertEquals() |
30
|
|
|
*/ |
31
|
|
|
public function assertEquals($expected, $actual, $message = null) { |
|
|
|
|
32
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEquals', func_get_args())); |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
38
|
|
|
* |
39
|
|
|
* Checks that two variables are not equal |
40
|
|
|
* |
41
|
|
|
* @param $expected |
42
|
|
|
* @param $actual |
43
|
|
|
* @param string $message |
44
|
|
|
* @see \Codeception\Module\Asserts::assertNotEquals() |
45
|
|
|
*/ |
46
|
|
|
public function assertNotEquals($expected, $actual, $message = null) { |
|
|
|
|
47
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEquals', func_get_args())); |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
53
|
|
|
* |
54
|
|
|
* Checks that two variables are same |
55
|
|
|
* |
56
|
|
|
* @param $expected |
57
|
|
|
* @param $actual |
58
|
|
|
* @param string $message |
59
|
|
|
* |
60
|
|
|
* @return mixed |
61
|
|
|
* @see \Codeception\Module\Asserts::assertSame() |
62
|
|
|
*/ |
63
|
|
|
public function assertSame($expected, $actual, $message = null) { |
|
|
|
|
64
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertSame', func_get_args())); |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
70
|
|
|
* |
71
|
|
|
* Checks that two variables are not same |
72
|
|
|
* |
73
|
|
|
* @param $expected |
74
|
|
|
* @param $actual |
75
|
|
|
* @param string $message |
76
|
|
|
* @see \Codeception\Module\Asserts::assertNotSame() |
77
|
|
|
*/ |
78
|
|
|
public function assertNotSame($expected, $actual, $message = null) { |
|
|
|
|
79
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotSame', func_get_args())); |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
85
|
|
|
* |
86
|
|
|
* Checks that actual is greater than expected |
87
|
|
|
* |
88
|
|
|
* @param $expected |
89
|
|
|
* @param $actual |
90
|
|
|
* @param string $message |
91
|
|
|
* @see \Codeception\Module\Asserts::assertGreaterThan() |
92
|
|
|
*/ |
93
|
|
|
public function assertGreaterThan($expected, $actual, $message = null) { |
|
|
|
|
94
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThan', func_get_args())); |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
100
|
|
|
* |
101
|
|
|
* @deprecated |
102
|
|
|
* @see \Codeception\Module\Asserts::assertGreaterThen() |
103
|
|
|
*/ |
104
|
|
|
public function assertGreaterThen($expected, $actual, $message = null) { |
|
|
|
|
105
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThen', func_get_args())); |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
111
|
|
|
* |
112
|
|
|
* Checks that actual is greater or equal than expected |
113
|
|
|
* |
114
|
|
|
* @param $expected |
115
|
|
|
* @param $actual |
116
|
|
|
* @param string $message |
117
|
|
|
* @see \Codeception\Module\Asserts::assertGreaterThanOrEqual() |
118
|
|
|
*/ |
119
|
|
|
public function assertGreaterThanOrEqual($expected, $actual, $message = null) { |
|
|
|
|
120
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThanOrEqual', func_get_args())); |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
126
|
|
|
* |
127
|
|
|
* @deprecated |
128
|
|
|
* @see \Codeception\Module\Asserts::assertGreaterThenOrEqual() |
129
|
|
|
*/ |
130
|
|
|
public function assertGreaterThenOrEqual($expected, $actual, $message = null) { |
|
|
|
|
131
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertGreaterThenOrEqual', func_get_args())); |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
137
|
|
|
* |
138
|
|
|
* Checks that actual is less than expected |
139
|
|
|
* |
140
|
|
|
* @param $expected |
141
|
|
|
* @param $actual |
142
|
|
|
* @param string $message |
143
|
|
|
* @see \Codeception\Module\Asserts::assertLessThan() |
144
|
|
|
*/ |
145
|
|
|
public function assertLessThan($expected, $actual, $message = null) { |
|
|
|
|
146
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThan', func_get_args())); |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
152
|
|
|
* |
153
|
|
|
* Checks that actual is less or equal than expected |
154
|
|
|
* |
155
|
|
|
* @param $expected |
156
|
|
|
* @param $actual |
157
|
|
|
* @param string $message |
158
|
|
|
* @see \Codeception\Module\Asserts::assertLessThanOrEqual() |
159
|
|
|
*/ |
160
|
|
|
public function assertLessThanOrEqual($expected, $actual, $message = null) { |
|
|
|
|
161
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertLessThanOrEqual', func_get_args())); |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
167
|
|
|
* |
168
|
|
|
* Checks that haystack contains needle |
169
|
|
|
* |
170
|
|
|
* @param $needle |
171
|
|
|
* @param $haystack |
172
|
|
|
* @param string $message |
173
|
|
|
* @see \Codeception\Module\Asserts::assertContains() |
174
|
|
|
*/ |
175
|
|
|
public function assertContains($needle, $haystack, $message = null) { |
|
|
|
|
176
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertContains', func_get_args())); |
177
|
|
|
} |
178
|
|
|
|
179
|
|
|
|
180
|
|
|
/** |
181
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
182
|
|
|
* |
183
|
|
|
* Checks that haystack doesn't contain needle. |
184
|
|
|
* |
185
|
|
|
* @param $needle |
186
|
|
|
* @param $haystack |
187
|
|
|
* @param string $message |
188
|
|
|
* @see \Codeception\Module\Asserts::assertNotContains() |
189
|
|
|
*/ |
190
|
|
|
public function assertNotContains($needle, $haystack, $message = null) { |
|
|
|
|
191
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotContains', func_get_args())); |
192
|
|
|
} |
193
|
|
|
|
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
197
|
|
|
* |
198
|
|
|
* Checks that string match with pattern |
199
|
|
|
* |
200
|
|
|
* @param string $pattern |
201
|
|
|
* @param string $string |
202
|
|
|
* @param string $message |
203
|
|
|
* @see \Codeception\Module\Asserts::assertRegExp() |
204
|
|
|
*/ |
205
|
|
|
public function assertRegExp($pattern, $string, $message = null) { |
|
|
|
|
206
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertRegExp', func_get_args())); |
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
|
210
|
|
|
/** |
211
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
212
|
|
|
* |
213
|
|
|
* Checks that string not match with pattern |
214
|
|
|
* |
215
|
|
|
* @param string $pattern |
216
|
|
|
* @param string $string |
217
|
|
|
* @param string $message |
218
|
|
|
* @see \Codeception\Module\Asserts::assertNotRegExp() |
219
|
|
|
*/ |
220
|
|
|
public function assertNotRegExp($pattern, $string, $message = null) { |
|
|
|
|
221
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotRegExp', func_get_args())); |
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
|
225
|
|
|
/** |
226
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
227
|
|
|
* |
228
|
|
|
* Checks that variable is empty. |
229
|
|
|
* |
230
|
|
|
* @param $actual |
231
|
|
|
* @param string $message |
232
|
|
|
* @see \Codeception\Module\Asserts::assertEmpty() |
233
|
|
|
*/ |
234
|
|
|
public function assertEmpty($actual, $message = null) { |
|
|
|
|
235
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertEmpty', func_get_args())); |
236
|
|
|
} |
237
|
|
|
|
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
241
|
|
|
* |
242
|
|
|
* Checks that variable is not empty. |
243
|
|
|
* |
244
|
|
|
* @param $actual |
245
|
|
|
* @param string $message |
246
|
|
|
* @see \Codeception\Module\Asserts::assertNotEmpty() |
247
|
|
|
*/ |
248
|
|
|
public function assertNotEmpty($actual, $message = null) { |
|
|
|
|
249
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotEmpty', func_get_args())); |
250
|
|
|
} |
251
|
|
|
|
252
|
|
|
|
253
|
|
|
/** |
254
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
255
|
|
|
* |
256
|
|
|
* Checks that variable is NULL |
257
|
|
|
* |
258
|
|
|
* @param $actual |
259
|
|
|
* @param string $message |
260
|
|
|
* @see \Codeception\Module\Asserts::assertNull() |
261
|
|
|
*/ |
262
|
|
|
public function assertNull($actual, $message = null) { |
|
|
|
|
263
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNull', func_get_args())); |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
|
267
|
|
|
/** |
268
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
269
|
|
|
* |
270
|
|
|
* Checks that variable is not NULL |
271
|
|
|
* |
272
|
|
|
* @param $actual |
273
|
|
|
* @param string $message |
274
|
|
|
* @see \Codeception\Module\Asserts::assertNotNull() |
275
|
|
|
*/ |
276
|
|
|
public function assertNotNull($actual, $message = null) { |
|
|
|
|
277
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotNull', func_get_args())); |
278
|
|
|
} |
279
|
|
|
|
280
|
|
|
|
281
|
|
|
/** |
282
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
283
|
|
|
* |
284
|
|
|
* Checks that condition is positive. |
285
|
|
|
* |
286
|
|
|
* @param $condition |
287
|
|
|
* @param string $message |
288
|
|
|
* @see \Codeception\Module\Asserts::assertTrue() |
289
|
|
|
*/ |
290
|
|
|
public function assertTrue($condition, $message = null) { |
|
|
|
|
291
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertTrue', func_get_args())); |
292
|
|
|
} |
293
|
|
|
|
294
|
|
|
|
295
|
|
|
/** |
296
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
297
|
|
|
* |
298
|
|
|
* Checks that condition is negative. |
299
|
|
|
* |
300
|
|
|
* @param $condition |
301
|
|
|
* @param string $message |
302
|
|
|
* @see \Codeception\Module\Asserts::assertFalse() |
303
|
|
|
*/ |
304
|
|
|
public function assertFalse($condition, $message = null) { |
|
|
|
|
305
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFalse', func_get_args())); |
306
|
|
|
} |
307
|
|
|
|
308
|
|
|
|
309
|
|
|
/** |
310
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
311
|
|
|
* |
312
|
|
|
* Checks if file exists |
313
|
|
|
* |
314
|
|
|
* @param string $filename |
315
|
|
|
* @param string $message |
316
|
|
|
* @see \Codeception\Module\Asserts::assertFileExists() |
317
|
|
|
*/ |
318
|
|
|
public function assertFileExists($filename, $message = null) { |
|
|
|
|
319
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileExists', func_get_args())); |
320
|
|
|
} |
321
|
|
|
|
322
|
|
|
|
323
|
|
|
/** |
324
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
325
|
|
|
* |
326
|
|
|
* Checks if file doesn't exist |
327
|
|
|
* |
328
|
|
|
* @param string $filename |
329
|
|
|
* @param string $message |
330
|
|
|
* @see \Codeception\Module\Asserts::assertFileNotExists() |
331
|
|
|
*/ |
332
|
|
|
public function assertFileNotExists($filename, $message = null) { |
|
|
|
|
333
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertFileNotExists', func_get_args())); |
334
|
|
|
} |
335
|
|
|
|
336
|
|
|
|
337
|
|
|
/** |
338
|
|
|
* [!] Method is generated. Documentation taken from corresponding module. |
339
|
|
|
* |
340
|
|
|
* Fails the test with message. |
341
|
|
|
* |
342
|
|
|
* @param $message |
343
|
|
|
* @see \Codeception\Module\Asserts::fail() |
344
|
|
|
*/ |
345
|
|
|
public function fail($message) { |
|
|
|
|
346
|
|
|
return $this->getScenario()->runStep(new \Codeception\Step\Action('fail', func_get_args())); |
347
|
|
|
} |
348
|
|
|
} |
349
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.