Skip to content

Commit f65192a

Browse files
Merge pull request #3 from alex-patterson-webdev/feature/1.0.0
feature/1.0.0
2 parents 28aefb6 + f6ec602 commit f65192a

File tree

4 files changed

+108
-58
lines changed

4 files changed

+108
-58
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![Build Status](https://travis-ci.com/alex-patterson-webdev/date-time.svg?branch=master)](https://travis-ci.com/alex-patterson-webdev/date-time)
22
[![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)
34

45
# About
56

@@ -10,4 +11,18 @@ are useful for the creation and manipulation of Date and Time objects in PHP.
1011

1112
Installation via [composer](https://getcomposer.org).
1213

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

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "alex-patterson-webdev/date-time",
33
"version": "1.0.0",
4-
"minimum-stability": "stable",
4+
"minimum-stability": "dev",
55
"prefer-stable": true,
66
"authors": [
77
{
@@ -29,11 +29,11 @@
2929
}
3030
},
3131
"scripts": {
32-
"test": "phpunit --coverage-clover=coverage.xml"
32+
"test": "php vendor/bin/phpunit --coverage-clover=coverage.xml"
3333
},
3434
"config": {
3535
"preferred-install": "dist",
3636
"optimize-autoloader": true,
3737
"sort-packages": true
3838
}
39-
}
39+
}

composer.lock

Lines changed: 87 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
>
99
<testsuites>
1010
<testsuite name="DateTime">
11-
<directory>./test</directory>
11+
<directory>./test/phpunit</directory>
1212
</testsuite>
1313
</testsuites>
1414
<filter>
1515
<whitelist processUncoveredFilesFromWhitelist="false">
1616
<directory suffix=".php">src</directory>
1717
</whitelist>
1818
</filter>
19-
</phpunit>
19+
</phpunit>

0 commit comments

Comments
 (0)