Skip to content
This repository was archived by the owner on Jan 29, 2024. It is now read-only.

Commit 45cac28

Browse files
Merge pull request liip#508 from alexislefebvre/1.x-allow-phpunit-7
1.x: Allow PHPUnit 7, remove PHP 5.6 support
2 parents cbfa26d + 581063c commit 45cac28

File tree

11 files changed

+20
-30
lines changed

11 files changed

+20
-30
lines changed

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ dist: trusty
33
language: php
44

55
php:
6-
- 5.6
7-
- 7.0
86
- 7.1
97
- 7.2
108

@@ -19,18 +17,15 @@ services:
1917

2018
matrix:
2119
include:
22-
- php: 5.6
23-
env: COMPOSER_FLAGS="--prefer-lowest"
2420
- php: 7.1
25-
env: SYMFONY_VERSION="2.7.*"
21+
env: COMPOSER_FLAGS="--prefer-lowest"
2622
- php: 7.1
2723
env: SYMFONY_VERSION="2.8.*"
2824
- php: 7.2
2925
env: SYMFONY_VERSION="3.4.*"
3026
fast_finish: true
3127

3228
before_install:
33-
- if [[ $TRAVIS_PHP_VERSION != '7.0' && $TRAVIS_PHP_VERSION != '7.1' && $TRAVIS_PHP_VERSION != '7.2' ]]; then phpenv config-rm xdebug.ini; fi
3429
- echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
3530
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony=$SYMFONY_VERSION; fi
3631

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ use Liip\FunctionalTestBundle\Test\WebTestCase;
511511
512512
class AccountControllerTest extends WebTestCase
513513
{
514-
public function setUp()
514+
public function setUp(): void
515515
{
516516
$em = $this->getContainer()->get('doctrine')->getManager();
517517
if (!isset($metadatas)) {
@@ -557,7 +557,7 @@ class LoadMemberAccounts extends AbstractFixture
557557
and then in the test case setup:
558558
```php
559559
...
560-
public function setUp()
560+
public function setUp(): void
561561
{
562562
$this->fixtures = $this->loadFixtures([
563563
'AppBundle\Tests\Fixtures\LoadMemberAccounts'

Test/ValidationErrorsConstraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function evaluate($other, $description = '', $returnResult = false)
9393
*
9494
* @return string
9595
*/
96-
public function toString()
96+
public function toString(): string
9797
{
9898
return 'validation errors match';
9999
}

Tests/App/AppKernel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public function registerBundles()
2424
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
2525
new Symfony\Bundle\TwigBundle\TwigBundle(),
2626
new Symfony\Bundle\MonologBundle\MonologBundle(),
27-
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
2827
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
2928
new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(),
3029
new Liip\FunctionalTestBundle\LiipFunctionalTestBundle(),

Tests/Command/CommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function testRunCommandVerbosityOutOfBound()
206206
$this->runCommand('command:test');
207207
}
208208

209-
public function tearDown()
209+
public function tearDown(): void
210210
{
211211
parent::tearDown();
212212

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ConfigurationTest extends WebTestCase
2121
/** @var \Symfony\Component\DependencyInjection\ContainerInterface $container */
2222
private $container = null;
2323

24-
public function setUp()
24+
public function setUp(): void
2525
{
2626
$client = static::makeClient();
2727
$this->container = $client->getContainer();

Tests/Test/WebTestCaseConfigMysqlTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected static function getKernelClass()
4040
return 'AppConfigMysqlKernel';
4141
}
4242

43-
public function setUp()
43+
public function setUp(): void
4444
{
4545
// https://github.com/liip/LiipFunctionalTestBundle#non-sqlite
4646
$em = $this->getContainer()->get('doctrine')->getManager();

Tests/Test/WebTestCaseConfigPhpcrTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected static function getKernelClass()
3333
return 'AppConfigPhpcrKernel';
3434
}
3535

36-
public function setUp()
36+
public function setUp(): void
3737
{
3838
// https://github.com/liip/LiipFunctionalTestBundle#non-sqlite
3939
$em = $this->getContainer()->get('doctrine')->getManager();

Tests/Test/WebTestCaseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class WebTestCaseTest extends WebTestCase
2525
/** @var \Symfony\Bundle\FrameworkBundle\Client client */
2626
private $client = null;
2727

28-
public function setUp()
28+
public function setUp(): void
2929
{
3030
$this->client = static::makeClient();
3131
}
@@ -728,7 +728,7 @@ public function testJsonIsSuccesful()
728728
);
729729
}
730730

731-
public function tearDown()
731+
public function tearDown(): void
732732
{
733733
parent::tearDown();
734734

composer.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,19 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^5.6|^7.0",
19-
"symfony/framework-bundle": "^2.7|^3.0",
20-
"symfony/browser-kit": "^2.7|^3.0",
18+
"php": "^7.1",
19+
"symfony/framework-bundle": "^2.8.39|^3.4",
20+
"symfony/browser-kit": "^2.8.39|^3.4",
2121
"doctrine/common": "~2.0"
2222
},
2323
"require-dev": {
24-
"symfony/symfony": "^2.7.1|^3.3",
25-
"symfony/phpunit-bridge": "^2.7|^3.0",
24+
"symfony/symfony": "^2.8.39|^3.4",
25+
"symfony/phpunit-bridge": "^2.8.39|^3.4",
2626
"doctrine/orm": "~2.5",
27-
"symfony/console": "^2.7|^3.0",
28-
"symfony/assetic-bundle": "^2.7|^3.0",
29-
"symfony/monolog-bundle": "^2.7|^3.0",
27+
"symfony/console": "^2.8.39|^3.4",
28+
"symfony/monolog-bundle": "^3.2",
3029
"doctrine/doctrine-fixtures-bundle": "~2.3",
31-
"phpunit/phpunit": "^4.8.35|^5.7|^6.1",
30+
"phpunit/phpunit": "^6.1|^7.0",
3231
"twig/twig": "~1.12|~2.0",
3332
"nelmio/alice": "~1.7|~2.0",
3433
"jackalope/jackalope-doctrine-dbal": "1.1.*|1.2.*",
@@ -39,7 +38,7 @@
3938
"doctrine/data-fixtures": "1.2.2"
4039
},
4140
"conflict": {
42-
"phpunit/phpunit": ">=7"
41+
"phpunit/phpunit": ">=8"
4342
},
4443
"suggest": {
4544
"doctrine/doctrine-fixtures-bundle": "Required when using the fixture loading functionality",

0 commit comments

Comments
 (0)