Skip to content

Commit

Permalink
Added isInDateFormat pattern expander (#224)
Browse files Browse the repository at this point in the history
* Updated dependencies & License file

* Added isInDateFormat pattern expander

* Added mutation tests into build script
  • Loading branch information
norberttech authored Feb 23, 2021
1 parent b9e37ea commit 874e75f
Show file tree
Hide file tree
Showing 9 changed files with 229 additions and 323 deletions.
2 changes: 1 addition & 1 deletion LICENCE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014-2019 Michal Dabrowski, Norbert Orzechowicz
Copyright (c) 2014-2021 Michal Dabrowski, Norbert Orzechowicz

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class MatcherTest extends TestCase
* ``contains($string, $ignoreCase = false)``
* ``notContains($string, $ignoreCase = false)``
* ``isDateTime()``
* ``isInDateFormat($format)`` - example `"@[email protected]('Y-m-d H:i:s')`
* ``before(string $date)`` - example ``"@[email protected]().before(\"2020-01-01 00:00:00\")"``
* ``after(string $date)`` - example ``"@[email protected]().after(\"2020-01-01 00:00:00\")"``
* ``isTzOffset()``
Expand Down
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"ext-filter": "*",
"ext-json": "*",
"ext-simplexml": "*",
"aeon-php/calendar": "^0.14.0 || ^0.15.0",
"aeon-php/calendar": "^0.14.0 || ^0.15.0 || ^0.16.0",
"coduo/php-to-string": "^3",
"doctrine/lexer": "^1.0"
},
Expand Down Expand Up @@ -51,6 +51,11 @@
"Composer\\Config::disableProcessTimeout",
"tools\/phpbench run --report=matcher"
],
"build": [
"@static:analyze",
"@test",
"@test:mutation"
],
"cs:php:fix": [
"tools/php-cs-fixer fix --using-cache=no"
],
Expand Down
Loading

0 comments on commit 874e75f

Please sign in to comment.