|
| 1 | +UPGRADE FROM 1.X TO 2.X |
| 2 | +======================= |
| 3 | + |
| 4 | + |
| 5 | +PHP version |
| 6 | +------ |
| 7 | + |
| 8 | + * Removed support for `PHP 7.1` & `PHP 7.2`. |
| 9 | + |
| 10 | + |
| 11 | +Verify function |
| 12 | +------- |
| 13 | + |
| 14 | + * `Verify` no longer receives a `string $message` as a parameter, now each _**verifier**_ fulfills this function. |
| 15 | + * `verify_that` and `verify_not` were deleted. Use `Verify()->notEmpty` and `Verify()->empty` instead. |
| 16 | + * `expect_that` and `expect_not` were deleted. Use `Expect()->notEmpty` and `Expect()->empty` instead. |
| 17 | + * `expect_file` and `setIsFileExpectation` were deleted. Use `Verify::File()` instead. |
| 18 | + |
| 19 | +Verifiers |
| 20 | +------- |
| 21 | + |
| 22 | +| Verify 1.x | Verify 2.x | |
| 23 | +|-------------------------------------------------|---------------------------------------------------| |
| 24 | +| `verify()->array` | `Verify()->isArray` | |
| 25 | +| `verify()->bool` | `Verify()->isBool` | |
| 26 | +| `verify()->callable` | `Verify()->isCallable` | |
| 27 | +| `verify()->float` | `Verify()->isFloat` | |
| 28 | +| `verify()->greaterOrEquals` | `Verify()->greaterThanOrEqual` | |
| 29 | +| `verify()->int` | `Verify()->isInt` | |
| 30 | +| `verify()->isEmpty` | `Verify()->empty` | |
| 31 | +| `verify()->isInstanceOf` | `Verify()->instanceOf` | |
| 32 | +| `verify()->isNotInstanceOf` | `Verify()->notInstanceOf` | |
| 33 | +| `verify()->lessOrEquals` | `Verify()->lessThanOrEqual` | |
| 34 | +| `verify()->notArray` | `Verify()->isNotArray` | |
| 35 | +| `verify()->notBool` | `Verify()->isNotBool` | |
| 36 | +| `verify()->notCallable` | `Verify()->isNotCallable` | |
| 37 | +| `verify()->notFloat` | `Verify()->isNotFloat` | |
| 38 | +| `verify()->notInt` | `Verify()->isNotInt` | |
| 39 | +| `verify()->notNumeric` | `Verify()->isNotNumeric` | |
| 40 | +| `verify()->notObject` | `Verify()->isNotObject` | |
| 41 | +| `verify()->notResource` | `Verify()->isNotResource` | |
| 42 | +| `verify()->notScalar` | `Verify()->isNotScalar` | |
| 43 | +| `verify()->notString` | `Verify()->isNotString` | |
| 44 | +| `verify()->numeric` | `Verify()->isNumeric` | |
| 45 | +| `verify()->object` | `Verify()->isObject` | |
| 46 | +| `verify()->resource` | `Verify()->isResource` | |
| 47 | +| `verify()->scalar` | `Verify()->isScalar` | |
| 48 | +| `verify()->string` | `Verify()->isString` | |
| 49 | +| `verify()->hasAttribute` | `Verify::BaseObject()->hasAttribute` | |
| 50 | +| `verify()->notHasAttribute` | `Verify::BaseObject()->notHasAttribute` | |
| 51 | +| `verify()->throws` | `Verify::Callable()->throws` | |
| 52 | +| `verify()->doesNotThrow` | `Verify::Callable()->doesNotThrow` | |
| 53 | +| `verify()->hasStaticAttribute` | `Verify::Class()->hasStaticAttribute` | |
| 54 | +| `verify()->notHasStaticAttribute` | `Verify::Class()->notHasStaticAttribute` | |
| 55 | +| `verify()->hasAttribute` | `Verify::Class()->hasAttribute` | |
| 56 | +| `verify()->notHasAttribute` | `Verify::Class()->notHasAttribute` | |
| 57 | +| `verify()->directoryDoesNotExist` | `Verify::Directory()->doesNotExist` | |
| 58 | +| `verify()->directoryExists` | `Verify::Directory()->exists` | |
| 59 | +| `verify()->directoryIsNotReadable` | `Verify::Directory()->isNotReadable` | |
| 60 | +| `verify()->directoryIsNotWritable` | `Verify::Directory()->isNotWritable` | |
| 61 | +| `verify()->notExists` | `Verify::File()->doesNotExists` | |
| 62 | +| `verify()->fileEqualsCanonicalizing` | `Verify::File()->equalsCanonicalizing` | |
| 63 | +| `verify()->fileEqualsIgnoringCase` | `Verify::File()->equalsIgnoringCase` | |
| 64 | +| `verify()->fileIsNotReadable` | `Verify::File()->isNotReadable` | |
| 65 | +| `verify()->fileIsNotWritable` | `Verify::File()->isNotWritable` | |
| 66 | +| `verify()->fileIsReadable` | `Verify::File()->isReadable` | |
| 67 | +| `verify()->fileIsWritable` | `Verify::File()->isWritable` | |
| 68 | +| `verify()->fileNotEqualsCanonicalizing` | `Verify::File()->notEqualsCanonicalizing` | |
| 69 | +| `verify()->fileNotEqualsIgnoringCase` | `Verify::File()->notEqualsIgnoringCase` | |
| 70 | +| `verify()->jsonFileNotEqualsJsonFile` | `Verify::JsonFile()->notEqualsJsonFile` | |
| 71 | +| `verify()->jsonStringNotEqualsJsonFile` | `Verify::JsonString()->notEqualsJsonFile` | |
| 72 | +| `verify()->jsonStringNotEqualsJsonString` | `Verify::JsonString()->otEqualsJsonString` | |
| 73 | +| `verify()->regExp` | `Verify::String()->matchesRegExp` | |
| 74 | +| `verify()->stringContainsString` | `Verify::String()->containsString` | |
| 75 | +| `verify()->stringContainsStringIgnoringCase` | `Verify::String()->containsStringIgnoringCase` | |
| 76 | +| `verify()->stringEqualsFileCanonicalizing` | `Verify::String()->equalsFileCanonicalizing` | |
| 77 | +| `verify()->stringEqualsFileIgnoringCase` | `Verify::String()->equalsFileIgnoringCase` | |
| 78 | +| `verify()->stringNotEqualsFileCanonicalizing` | `Verify::String()->notEqualsFileCanonicalizing` | |
| 79 | +| `verify()->stringNotEqualsFileIgnoringCase` | `Verify::String()->notEqualsFileIgnoringCase` | |
| 80 | +| `verify()->notRegExp` | `Verify::String()->doesNotMatchRegExp` | |
| 81 | +| `verify()->stringNotContainsString` | `Verify::String()->notContainsString` | |
| 82 | +| `verify()->stringNotContainsStringIgnoringCase` | `Verify::String()->notContainsStringIgnoringCase` | |
| 83 | +| `verify()->notStartsWith` | `Verify::String()->notStartsWith` | |
| 84 | +| `verify()->xmlFileNotEqualsXmlFile` | `Verify::XmlFile()->notEqualsXmlFile` | |
| 85 | +| `verify()->xmlStringNotEqualsXmlFile` | `Verify::XmlString()->notEqualsXmlFile` | |
| 86 | +| `verify()->xmlStringNotEqualsXmlString` | `Verify::XmlString()->notEqualsXmlString` | |
| 87 | + |
| 88 | + |
| 89 | +Extending |
| 90 | +------- |
| 91 | + |
| 92 | + * `Codeception\Verify::$override` was removed, extend from abstract `Codeception\Verify\Verify` class instead. |
0 commit comments