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

Commit ef0b56f

Browse files
Merge pull request #41 from alexislefebvre/use-phpunit-6
PHPUnit: Allow 6.2
2 parents eae446a + 4d950b5 commit ef0b56f

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ php:
1717

1818
env:
1919
- SYMFONY_VERSION="2.8.*"
20-
- SYMFONY_VERSION="3.2.*"
20+
- SYMFONY_VERSION="3.3.*"
2121

2222
matrix:
2323
include:
2424
- php: 5.6
2525
env: SYMFONY_VERSION="2.7.*"
2626
- php: 7.0
27-
env: SYMFONY_VERSION="3.1.*"
27+
env: SYMFONY_VERSION="3.2.*"
2828

2929
# Only send code coverage to Code Climate for the current versions of PHP and Symfony LTS
3030
# https://github.com/doctrine/doctrine2/blob/3570f4a49afc7e98fed71e0596dded6a39d4fd7b/.travis.yml#L16
@@ -35,7 +35,7 @@ before_install:
3535

3636
install:
3737
- composer require --dev symfony/symfony:${SYMFONY_VERSION} $DEPENDENCY --no-update
38-
- composer install --no-interaction -vv --profile --no-progress
38+
- composer install --no-interaction --profile --no-progress
3939

4040
script: php ./vendor/bin/phpunit $PHPUNIT_FLAGS && php ./vendor/bin/behat
4141

Tests/Entity/MediaTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\Media;
66

7-
class MediaTest extends \PHPUnit_Framework_TestCase
7+
class MediaTest extends \PHPUnit\Framework\TestCase
88
{
99
public function testTweet()
1010
{

Tests/Entity/TweetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\Tweet;
77
use AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\User;
88

9-
class TweetTest extends \PHPUnit_Framework_TestCase
9+
class TweetTest extends \PHPUnit\Framework\TestCase
1010
{
1111
public function testTweet()
1212
{

Tests/Entity/UserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\User;
66

7-
class UserTest extends \PHPUnit_Framework_TestCase
7+
class UserTest extends \PHPUnit\Framework\TestCase
88
{
99
public function testUser()
1010
{

Tests/Features/Context/FeatureContext.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function thereIsATweet()
4040
*/
4141
public function theTweetMustHaveCorrectId()
4242
{
43-
\PHPUnit_Framework_Assert::assertSame(
43+
\PHPUnit\Framework\Assert::assertSame(
4444
152120320,
4545
$this->tweet->getId()
4646
);
@@ -51,7 +51,7 @@ public function theTweetMustHaveCorrectId()
5151
*/
5252
public function theTweetMustHaveCorrectCreatedAtDate()
5353
{
54-
\PHPUnit_Framework_Assert::assertSame(
54+
\PHPUnit\Framework\Assert::assertSame(
5555
$this->now,
5656
$this->tweet->getCreatedAt()
5757
);
@@ -62,7 +62,7 @@ public function theTweetMustHaveCorrectCreatedAtDate()
6262
*/
6363
public function theTweetMustHaveCorrectText()
6464
{
65-
\PHPUnit_Framework_Assert::assertSame(
65+
\PHPUnit\Framework\Assert::assertSame(
6666
'Hello World!',
6767
$this->tweet->getText()
6868
);
@@ -73,7 +73,7 @@ public function theTweetMustHaveCorrectText()
7373
*/
7474
public function theTweetMustHaveCorrectRetweetCount()
7575
{
76-
\PHPUnit_Framework_Assert::assertSame(
76+
\PHPUnit\Framework\Assert::assertSame(
7777
1999,
7878
$this->tweet->getRetweetCount()
7979
);
@@ -84,7 +84,7 @@ public function theTweetMustHaveCorrectRetweetCount()
8484
*/
8585
public function theTweetMustHaveCorrectFavoriteCount()
8686
{
87-
\PHPUnit_Framework_Assert::assertSame(
87+
\PHPUnit\Framework\Assert::assertSame(
8888
42,
8989
$this->tweet->getFavoriteCount()
9090
);
@@ -95,7 +95,7 @@ public function theTweetMustHaveCorrectFavoriteCount()
9595
*/
9696
public function theTweetMustBeInTimeline()
9797
{
98-
\PHPUnit_Framework_Assert::assertTrue(
98+
\PHPUnit\Framework\Assert::assertTrue(
9999
$this->tweet->isInTimeline()
100100
);
101101
}

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88
- rm /opt/circleci/php/$(phpenv global)/etc/conf.d/xdebug.ini
99
override:
1010
- composer require --dev "symfony/symfony:2.8.*" --no-update
11-
- composer install --no-interaction -vv --profile --no-progress
11+
- composer install --no-interaction --profile --no-progress
1212

1313
test:
1414
override:

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
"require" : {
1515
"php": ">=5.5",
1616
"symfony/symfony": "~2.7 || ~3.0",
17-
"abraham/twitteroauth": "^0.6.0",
18-
"knplabs/friendly-contexts": "~0.8"
17+
"abraham/twitteroauth": "^0.6.0"
1918
},
2019
"require-dev": {
2120
"doctrine/orm": "^2.4.8",
2221
"symfony/assetic-bundle": "~2.3",
2322
"symfony/monolog-bundle": "~2.4",
2423
"doctrine/doctrine-fixtures-bundle": "~2.3",
2524
"liip/functional-test-bundle": "~1.4",
26-
"phpunit/phpunit": "4.8.* || ~5.1",
25+
"phpunit/phpunit": "~5.7.21||~6.2",
26+
"knplabs/friendly-contexts": "~0.8",
2727
"behat/behat": "^3.2",
2828
"behat/symfony2-extension": "^2.1",
2929
"behat/mink": "^1.7",

0 commit comments

Comments
 (0)