-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6258e89
commit ce6140c
Showing
4 changed files
with
148 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
vendor | ||
.idea | ||
.phpunit.result.cache | ||
composer.phar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Changelog | ||
|
||
## 1.4 | ||
|
||
* Improved code quality and maintainability. | ||
* Used strict types and namespaces. | ||
Created exception `InvalidVerifyException.php` in case verify is used with some invalid data. | ||
* Added documentation for all verifiers. | ||
* Divided the verifiers into traits depending on the type of data they verify. | ||
* Added data validations with php issers functions and instanceof. | ||
|
||
* **BC:** `equalXMLStructure` and its corresponding test were removed. | ||
* **BC:** hasntKey verifier renamed to hasNotKey for clarity. | ||
* **BC:** Removed support for PHP 7.0 and its corresponding versions of `PHPUnit` and `phpunit-wrapper`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
## Verifiers List | ||
|
||
### Array | ||
``` | ||
contains | ||
containsOnly | ||
containsOnlyInstancesOf | ||
count | ||
hasKey | ||
hasNotKey | ||
notContains | ||
notContainsOnly | ||
notCount | ||
``` | ||
|
||
### File | ||
``` | ||
setIsFileExpectation | ||
equals | ||
notEquals | ||
exists | ||
notExists | ||
equalsJsonFile | ||
equalsXmlFile | ||
``` | ||
|
||
### Mixed | ||
``` | ||
isEmpty | ||
equalsCanonicalizing | ||
equalsIgnoringCase | ||
equalsWithDelta | ||
false | ||
greaterThan | ||
greaterOrEquals | ||
isInstanceOf | ||
array | ||
bool | ||
callable | ||
float | ||
int | ||
notArray | ||
notBool | ||
notCallable | ||
notFloat | ||
notInt | ||
notNumeric | ||
notObject | ||
notResource | ||
notScalar | ||
notString | ||
numeric | ||
object | ||
resource | ||
scalar | ||
string | ||
lessThan | ||
lessOrEquals | ||
notEmpty | ||
notEqualsCanonicalizing | ||
notEqualsIgnoringCase | ||
notEqualsWithDelta | ||
isNotInstanceOf | ||
notNull | ||
notSame | ||
null | ||
same | ||
true | ||
``` | ||
|
||
### String | ||
``` | ||
hasStaticAttribute | ||
notHasStaticAttribute | ||
equalsJsonString | ||
regExp | ||
stringContainsString | ||
stringContainsStringIgnoringCase | ||
notEndsWith | ||
endsWith | ||
equalsFile | ||
matchesFormat | ||
matchesFormatFile | ||
stringNotContainsString | ||
stringNotContainsStringIgnoringCase | ||
notMatchesFormat | ||
notMatchesFormatFile | ||
notStartsWith | ||
startsWith | ||
notEqualsFile | ||
``` | ||
|
||
### Object/String | ||
``` | ||
hasAttribute | ||
notHasAttribute | ||
``` | ||
|
||
### Throwable | ||
``` | ||
throws | ||
doesNotThrow | ||
``` | ||
|
||
### Xml | ||
``` | ||
equalsXmlString | ||
``` |