Skip to content

Commit 874e75f

Browse files
authored
Added isInDateFormat pattern expander (#224)
* Updated dependencies & License file * Added isInDateFormat pattern expander * Added mutation tests into build script
1 parent b9e37ea commit 874e75f

File tree

9 files changed

+229
-323
lines changed

9 files changed

+229
-323
lines changed

LICENCE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2014-2019 Michal Dabrowski, Norbert Orzechowicz
1+
Copyright (c) 2014-2021 Michal Dabrowski, Norbert Orzechowicz
22

33
Permission is hereby granted, free of charge, to any person
44
obtaining a copy of this software and associated documentation

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ class MatcherTest extends TestCase
121121
* ``contains($string, $ignoreCase = false)``
122122
* ``notContains($string, $ignoreCase = false)``
123123
* ``isDateTime()``
124+
* ``isInDateFormat($format)`` - example `"@datetime@.isInDateFormat('Y-m-d H:i:s')`
124125
* ``before(string $date)`` - example ``"@string@.isDateTime().before(\"2020-01-01 00:00:00\")"``
125126
* ``after(string $date)`` - example ``"@string@.isDateTime().after(\"2020-01-01 00:00:00\")"``
126127
* ``isTzOffset()``

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"ext-filter": "*",
2020
"ext-json": "*",
2121
"ext-simplexml": "*",
22-
"aeon-php/calendar": "^0.14.0 || ^0.15.0",
22+
"aeon-php/calendar": "^0.14.0 || ^0.15.0 || ^0.16.0",
2323
"coduo/php-to-string": "^3",
2424
"doctrine/lexer": "^1.0"
2525
},
@@ -51,6 +51,11 @@
5151
"Composer\\Config::disableProcessTimeout",
5252
"tools\/phpbench run --report=matcher"
5353
],
54+
"build": [
55+
"@static:analyze",
56+
"@test",
57+
"@test:mutation"
58+
],
5459
"cs:php:fix": [
5560
"tools/php-cs-fixer fix --using-cache=no"
5661
],

0 commit comments

Comments
 (0)