Skip to content

Commit 60e7529

Browse files
committed
Setup as composer library.
1 parent eb6acf0 commit 60e7529

File tree

4 files changed

+36
-23
lines changed

4 files changed

+36
-23
lines changed

composer.json

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
{
2-
"name": "khill/durations",
3-
"description": "Converts between colon formatted time, human-readable time and seconds.",
4-
"keywords": ["durations", "time", "convert"],
5-
"license": "MIT",
2+
"name": "khill/php-duration",
3+
"description": "Converts between colon formatted time, human-readable time and seconds",
4+
"license": "MIT",
65
"authors": [
76
{
8-
"name" : "Kevin Hill",
9-
"email": "[email protected]",
10-
"role" : "Developer"
7+
"name": "Kevin Hill",
8+
"email": "[email protected]"
119
}
1210
],
13-
"require": {
14-
"php": ">=5.3.0"
15-
},
16-
"require-dev" : {
17-
"phpunit/phpunit": "4.5.*"
18-
},
19-
"autoload": {
20-
"psr-4": {
21-
"Khill\\Durations\\" : "src"
22-
}
23-
}
11+
"require-dev": {
12+
"phpunit/phpunit": "~4.5"
13+
},
14+
"autoload": {
15+
"psr-4": {
16+
"Khill\\Duration\\": "src/"
17+
}
18+
},
19+
"minimum-stability": "stable"
2420
}

phpunit.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit bootstrap="./vendor/autoload.php"
4+
convertErrorsToExceptions="true"
5+
convertNoticesToExceptions="true"
6+
convertWarningsToExceptions="true"
7+
strict="true"
8+
syntaxCheck="true"
9+
verbose="true"
10+
colors="true"
11+
>
12+
<testsuites>
13+
<testsuite name="Package Test Suite">
14+
<directory suffix=".php">test/</directory>
15+
</testsuite>
16+
</testsuites>
17+
</phpunit>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?php namespace Khill;
1+
<?php namespace Khill\Duration;
22

3-
class Durations {
3+
class Duration {
44

55
public $hours;
66
public $minutes;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
use Khill\Durations;
3+
use Khill\Duration\Duration;
44

5-
class DurationsTest extends Phpunit_Framework_TestCase {
5+
class DurationTest extends PHPUnit_Framework_TestCase {
66

77
public function setUp()
88
{
99
parent::setUp();
1010

11-
$this->d = new Durations;
11+
$this->d = new Duration;
1212
}
1313

1414
public function secondsSampleData()

0 commit comments

Comments
 (0)