Complex classes like UnitTesterActions often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use UnitTesterActions, and based on these observations, apply Extract Interface, too.
| 1 | <?php //[STAMP] 38f24ec381bf2fd2659fa89d6975e503 |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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) { |
||
| 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.