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