Skip to content

Commit

Permalink
Issue6 unittests (#21)
Browse files Browse the repository at this point in the history
* Write first unit tests for issue #6

* Travis CI file

* Update travis file

* Add EOF
  • Loading branch information
memclutter authored and Ekin committed Oct 23, 2016
1 parent ace0326 commit 2d2e5ee
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: php
php:
- '7.0'
- '7.1'
install:
- composer install
script:
- ./vendor/bin/phpunit
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
<directory>tests/IntervalParserTests</directory>
</testsuite>
</testsuites>
</phpunit>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
'foo in 9d8h5m bar',
new TimeInterval(new \DateInterval('P9DT8H5M'), 7, 24, 'foo', ' bar'),
]
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
'foo in 9w8d7h6m5s',
new TimeInterval(new \DateInterval('P71DT7H6M5S'), 7, 42, 'foo', null),
]
];
];
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
'31d12h30m0s foo',
new TimeInterval(new \DateInterval('P31DT12H30M'), 0, 37, null, ' foo'),
],
];
];

0 comments on commit 2d2e5ee

Please sign in to comment.