This repository was archived by the owner on Dec 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 - 7.2
1616
1717env :
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
2822before_install :
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ monolog:
3030 level : debug
3131
3232liip_functional_test :
33- cache_sqlite_db : true
33+ cache_db :
34+ sqlite : liip_functional_test.services_database_backup.sqlite
3435
3536doctrine :
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']
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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"
129 convertNoticesToExceptions =" true"
1310 convertWarningsToExceptions =" true"
1411>
15-
1612 <php >
1713 <server name =" KERNEL_DIR" value =" Tests/App" />
1814 </php >
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 >
Original file line number Diff line number Diff line change 33namespace spec \AlexisLefebvre \Bundle \AsyncTweetsBundle \Entity ;
44
55use AlexisLefebvre \Bundle \AsyncTweetsBundle \Entity \Tweet ;
6- use PhpSpec \Exception \Example \SkippingException ;
76use PhpSpec \ObjectBehavior ;
87
98class 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 }
You can’t perform that action at this time.
0 commit comments