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