File tree Expand file tree Collapse file tree 4 files changed +108
-58
lines changed Expand file tree Collapse file tree 4 files changed +108
-58
lines changed Original file line number Diff line number Diff line change 1
1
[ ![ Build Status] ( https://travis-ci.com/alex-patterson-webdev/date-time.svg?branch=master )] ( https://travis-ci.com/alex-patterson-webdev/date-time )
2
2
[ ![ codecov] ( https://codecov.io/gh/alex-patterson-webdev/date-time/branch/master/graph/badge.svg )] ( https://codecov.io/gh/alex-patterson-webdev/date-time )
3
+ [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/alex-patterson-webdev/date-time/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/alex-patterson-webdev/date-time/?branch=master )
3
4
4
5
# About
5
6
@@ -10,4 +11,18 @@ are useful for the creation and manipulation of Date and Time objects in PHP.
10
11
11
12
Installation via [ composer] ( https://getcomposer.org ) .
12
13
13
- require alex-patterson-webdev/date-time ^1
14
+ require alex-patterson-webdev/date-time ^1
15
+
16
+ ## Components
17
+
18
+ The module provides the following components
19
+
20
+ - ` DateTimeFactory ` Provides an abstraction of the creation of ` DateTime ` objects.
21
+ - ` DateIntervalFactory ` Provides an abstract for the creation of ` DateInterval ` objects.
22
+ - ` CurrentDateTimeProvider ` service that exposes one ` getDateTime() : \DateTime ` method that will always return the current date and time.
23
+
24
+ ## Unit Tests
25
+
26
+ Unit test using PHP Unit 8.
27
+
28
+ php vendor/bin/phpunit
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " alex-patterson-webdev/date-time" ,
3
3
"version" : " 1.0.0" ,
4
- "minimum-stability" : " stable " ,
4
+ "minimum-stability" : " dev " ,
5
5
"prefer-stable" : true ,
6
6
"authors" : [
7
7
{
29
29
}
30
30
},
31
31
"scripts" : {
32
- "test" : " phpunit --coverage-clover=coverage.xml"
32
+ "test" : " php vendor/bin/ phpunit --coverage-clover=coverage.xml"
33
33
},
34
34
"config" : {
35
35
"preferred-install" : " dist" ,
36
36
"optimize-autoloader" : true ,
37
37
"sort-packages" : true
38
38
}
39
- }
39
+ }
Original file line number Diff line number Diff line change 8
8
>
9
9
<testsuites >
10
10
<testsuite name =" DateTime" >
11
- <directory >./test</directory >
11
+ <directory >./test/phpunit </directory >
12
12
</testsuite >
13
13
</testsuites >
14
14
<filter >
15
15
<whitelist processUncoveredFilesFromWhitelist =" false" >
16
16
<directory suffix =" .php" >src</directory >
17
17
</whitelist >
18
18
</filter >
19
- </phpunit >
19
+ </phpunit >
You can’t perform that action at this time.
0 commit comments