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

Commit 8de0af9

Browse files
Merge pull request #54 from alexislefebvre/update-composer.json
Update composer.json
2 parents 31ad69a + 99f836b commit 8de0af9

5 files changed

Lines changed: 16 additions & 26 deletions

File tree

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,8 @@ php:
1515
- 7.2
1616

1717
env:
18-
- SYMFONY_VERSION="2.8.*"
1918
- SYMFONY_VERSION="3.4.*"
2019

21-
matrix:
22-
include:
23-
- php: 7.0
24-
env: SYMFONY_VERSION="3.4.*"
25-
2620
# Only send code coverage to Code Climate for the current versions of PHP and Symfony LTS
2721
# https://github.com/doctrine/doctrine2/blob/3570f4a49afc7e98fed71e0596dded6a39d4fd7b/.travis.yml#L16
2822
before_install:

Tests/App/config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ monolog:
3030
level: debug
3131

3232
liip_functional_test:
33-
cache_sqlite_db: true
33+
cache_db:
34+
sqlite: liip_functional_test.services_database_backup.sqlite
3435

3536
doctrine:
3637
dbal:
@@ -48,3 +49,8 @@ parameters:
4849
twitter_consumer_secret: null
4950
twitter_token: null
5051
twitter_token_secret: null
52+
53+
services:
54+
AlexisLefebvre\Bundle\AsyncTweetsBundle\DataFixtures\:
55+
resource: '../../DataFixtures'
56+
tags: ['doctrine.fixture.orm']

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
"role": "Developer"
1313
}],
1414
"require" : {
15-
"php": ">=5.6",
15+
"php": ">=7.0",
1616
"ext-mbstring": "*",
17-
"symfony/symfony": "~2.7||~3.2",
17+
"symfony/symfony": "~3.4",
1818
"abraham/twitteroauth": "~0.6"
1919
},
2020
"require-dev": {
2121
"doctrine/orm": "^2.4.8",
2222
"symfony/assetic-bundle": "~2.3",
23-
"symfony/monolog-bundle": "~2.4||~3.1",
24-
"doctrine/doctrine-fixtures-bundle": "~2.3",
25-
"liip/functional-test-bundle": "~1.8",
26-
"phpunit/phpunit": "~5.7.21|~6.5.6|~7.0",
23+
"symfony/monolog-bundle": "~3.1",
24+
"doctrine/doctrine-fixtures-bundle": "^3.0",
25+
"liip/functional-test-bundle": "~2.0@alpha",
26+
"phpunit/phpunit": "~6.5.6|~7.0",
2727
"knplabs/friendly-contexts": "~0.8",
2828
"behat/behat": "~3.2",
2929
"behat/symfony2-extension": "^2.1",

phpunit.xml.dist

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<!-- https://phpunit.de/manual/3.7/en/appendixes.configuration.html -->
41
<phpunit
52
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/3.7/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.5/phpunit.xsd"
74
backupGlobals="false"
85
backupStaticAttributes="false"
96
bootstrap="vendor/autoload.php"
@@ -12,7 +9,6 @@
129
convertNoticesToExceptions="true"
1310
convertWarningsToExceptions="true"
1411
>
15-
1612
<php>
1713
<server name="KERNEL_DIR" value="Tests/App" />
1814
</php>
@@ -24,12 +20,12 @@
2420
</testsuites>
2521

2622
<filter>
27-
<whitelist>
28-
<file>AsyncTweetsBundle.php</file>
23+
<whitelist processUncoveredFilesFromWhitelist="true" >
2924
<directory>Command</directory>
3025
<directory>Controller</directory>
3126
<directory>Entity</directory>
3227
<directory>Utils</directory>
28+
<file>AsyncTweetsBundle.php</file>
3329
<exclude>
3430
<directory>Tests</directory>
3531
<directory>vendor/</directory>

spec/AlexisLefebvre/Bundle/AsyncTweetsBundle/Entity/TweetSpec.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace spec\AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity;
44

55
use AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\Tweet;
6-
use PhpSpec\Exception\Example\SkippingException;
76
use PhpSpec\ObjectBehavior;
87

98
class TweetSpec extends ObjectBehavior
@@ -55,11 +54,6 @@ public function it_should_not_be_in_timeline()
5554

5655
public function it_should_not_allow_invalid_medias()
5756
{
58-
/* @see https://github.com/phpspec/phpspec/issues/119#issuecomment-43436579 */
59-
if (version_compare(PHP_VERSION, '7', '<')) {
60-
throw new SkippingException('Unsupported type hinting with PHP < 7');
61-
}
62-
6357
$this->shouldThrow('\TypeError')->during('addMedia', [null]);
6458
$this->shouldThrow('\TypeError')->during('removeMedia', [null]);
6559
}

0 commit comments

Comments
 (0)