Skip to content

Commit 915d604

Browse files
authored
Merge pull request #156 from func0der/allow-newest-symfony-libraries
Fix tests and allow Symfony 5
2 parents c79815c + a981727 commit 915d604

22 files changed

+66
-34
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ language: php
33
sudo: required
44

55
php:
6-
- 5.5
7-
- 5.6
8-
- 7.0
96
- 7.1
7+
- 7.2
8+
- 7.3
9+
- 7.4
1010

1111
env:
1212
PREFER_LOWEST=""
1313

1414
matrix:
1515
fast_finish: true
1616
include:
17-
- php: 5.5
17+
- php: 7.1
1818
env: PREFER_LOWEST="--prefer-lowest"
1919

2020
before_script:

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
## [Unreleased changes]
44
- No changes
55

6+
## [0.4.10] - TBD
7+
### Changed
8+
- Allow Symfony 5.0 components
9+
- Drop support for PHP5 (it is long gone)
10+
11+
## [0.4.9] - 2018-02-27
12+
### Changed
13+
- Allow Symfony 4.0 in composer.json
14+
615
## [0.4.8] - 2017-03-03
716
### Fixed
817
- #125: Fix invalid paths with relative locations, courtesy of @paulredmond

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
}
1313
],
1414
"require": {
15-
"php": ">=5.5",
15+
"php": ">=7.1",
1616
"doctrine/collections": "~1.0",
17-
"symfony/filesystem": "^2.0.5 || ^3.0 || ^4.0",
18-
"symfony/process": "^3.4 || ^4.0",
17+
"symfony/filesystem": "^2.0.5 || ^3.0 || ^4.0 || ^5.0",
18+
"symfony/process": "^3.4 || ^4.0 || ^5.0",
1919
"symfony/polyfill-mbstring": "^1.3"
2020
},
2121
"require-dev": {
2222
"ext-zip": "*",
2323
"guzzle/guzzle": "~3.0",
2424
"guzzlehttp/guzzle": "^6.0",
25-
"phpunit/phpunit": "^4.0 || ^5.0",
26-
"symfony/finder": "^2.0.5 || ^3.0 || ^4.0"
25+
"phpunit/phpunit": "^7.0",
26+
"symfony/finder": "^2.0.5 || ^3.0 || ^4.0 || ^5.0"
2727
},
2828
"suggest": {
2929
"ext-zip": "To use the ZipExtensionAdapter",

phpunit-functional.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
convertWarningsToExceptions="true"
88
processIsolation="false"
99
stopOnFailure="false"
10-
syntaxCheck="true"
1110
verbose="false"
1211
bootstrap="vendor/autoload.php"
1312
>

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
convertWarningsToExceptions="true"
88
processIsolation="false"
99
stopOnFailure="false"
10-
syntaxCheck="true"
1110
verbose="false"
1211
bootstrap="vendor/autoload.php"
1312
>

tests/Functional/Add2ArchiveTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testAdd()
5555
'Alchemy\Zippy\Adapter\BSDTar\TarGzBSDTarAdapter',
5656
'Alchemy\Zippy\Adapter\BSDTar\TarBz2BSDTarAdapter',
5757
))) {
58-
$this->setExpectedException('Alchemy\Zippy\Exception\NotSupportedException', 'Updating a compressed tar archive is not supported.');
58+
$this->expectException('Alchemy\Zippy\Exception\NotSupportedException', 'Updating a compressed tar archive is not supported.');
5959
}
6060

6161
$archive->addMembers(array('somemorefiles/nicephoto.jpg' => __DIR__ . '/samples/morefiles/morephoto.jpg'));

tests/Functional/CreateArchiveTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ public static function tearDownAfterClass()
1818
}
1919
}
2020

21+
/**
22+
* @doesNotPerformAssertions
23+
*/
2124
public function testCreate()
2225
{
2326
$adapter = $this->getAdapter();

tests/Functional/ExtractArchiveTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
class ExtractArchiveTest extends FunctionalTestCase
88
{
9+
/**
10+
* @doesNotPerformAssertions
11+
*/
912
public function testOpen()
1013
{
1114
$adapter = $this->getAdapter();

tests/Functional/ExtractMembersArchiveTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
class ExtractMembersArchiveTest extends FunctionalTestCase
88
{
9+
/**
10+
* @doesNotPerformAssertions
11+
*/
912
public function testOpen()
1013
{
1114
$adapter = $this->getAdapter();

tests/Functional/FunctionalTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Alchemy\Zippy\Adapter\AdapterContainer;
77
use Symfony\Component\Filesystem\Filesystem;
88

9-
abstract class FunctionalTestCase extends \PHPUnit_Framework_TestCase
9+
abstract class FunctionalTestCase extends \PHPUnit\Framework\TestCase
1010
{
1111
public function tearDown()
1212
{

0 commit comments

Comments
 (0)