Skip to content

Commit e6d1372

Browse files
committed
dropped support for php verions belwo 7.0
1 parent aca64a3 commit e6d1372

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: php
22
php:
3-
- 5.6
43
- 7.0
54
- 7.1
5+
- 7.2
66
before_script:
77
- echo 'date.timezone = "Europe/Berlin"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
88
- phpenv rehash

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2222

2323
### Changeed
2424

25+
## [2.0.0](https://github.com/bazzline/php_component_cli_argument/tree/2.0.0) - released at 2018-01-12
26+
27+
### Changed
28+
29+
* dropped support for all PHP Versions below 7.0
30+
2531
## [1.4.1](https://github.com/bazzline/php_component_cli_argument/tree/1.4.1) - released at 2017-05-18
2632

2733
### Changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"type": "library",
1818
"minimum-stability": "dev",
1919
"require": {
20-
"php": "^5.6||^7.0"
20+
"php": "~7.0"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "5.7.*"
23+
"phpunit/phpunit": "~6.0"
2424
},
2525
"license": "LGPLv3",
2626
"authors": [

test/ArgumentsTest.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
namespace Test\Net\Bazzline\Component\Cli\Arguments;
88

99
use Net\Bazzline\Component\Cli\Arguments\Arguments;
10-
use PHPUnit_Framework_TestCase;
10+
use PHPUnit\Framework\TestCase;
1111

12-
class ArgumentsTest extends PHPUnit_Framework_TestCase
12+
class ArgumentsTest extends TestCase
1313
{
1414
public function testWithNoArgv()
1515
{
@@ -24,7 +24,7 @@ public function testWithNoArgv()
2424
/**
2525
* @return array
2626
*/
27-
public function testWithArgumentsProvider()
27+
public function withArgumentsProvider()
2828
{
2929
return [
3030
'empty argv' => [
@@ -214,7 +214,7 @@ public function testWithArgumentsProvider()
214214
}
215215

216216
/**
217-
* @dataProvider testWithArgumentsProvider
217+
* @dataProvider withArgumentsProvider
218218
* @param array $argv
219219
* @param array $expectedArguments
220220
* @param array $expectedFlags
@@ -227,8 +227,7 @@ public function testWithArguments(
227227
array $expectedFlags,
228228
array $expectedLists,
229229
array $expectedValues
230-
)
231-
{
230+
) {
232231
$arguments = $this->createArguments($argv);
233232

234233
$this->assertEquals((!empty($expectedArguments)), $arguments->hasArguments());
@@ -258,7 +257,10 @@ public function testWithArguments(
258257

259258
public function testWithArgumentsAndNotRemovingFirstArgument()
260259
{
261-
$argv = ['foo', 'bar'];
260+
$argv = [
261+
'foo',
262+
'bar'
263+
];
262264
$arguments = $this->createArguments($argv, false);
263265

264266
$this->assertEquals($argv, $arguments->getArguments());

0 commit comments

Comments
 (0)