Skip to content

Commit

Permalink
PHPUnit: Allow 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexislefebvre committed Jul 29, 2017
1 parent eae446a commit bcd7e05
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Tests/Entity/MediaTest.php
Expand Up @@ -4,7 +4,7 @@

use AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\Media;

class MediaTest extends \PHPUnit_Framework_TestCase
class MediaTest extends \PHPUnit\Framework\TestCase
{
public function testTweet()
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Entity/TweetTest.php
Expand Up @@ -6,7 +6,7 @@
use AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\Tweet;
use AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\User;

class TweetTest extends \PHPUnit_Framework_TestCase
class TweetTest extends \PHPUnit\Framework\TestCase
{
public function testTweet()
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/Entity/UserTest.php
Expand Up @@ -4,7 +4,7 @@

use AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\User;

class UserTest extends \PHPUnit_Framework_TestCase
class UserTest extends \PHPUnit\Framework\TestCase
{
public function testUser()
{
Expand Down
12 changes: 6 additions & 6 deletions Tests/Features/Context/FeatureContext.php
Expand Up @@ -40,7 +40,7 @@ public function thereIsATweet()
*/
public function theTweetMustHaveCorrectId()
{
\PHPUnit_Framework_Assert::assertSame(
\PHPUnit\Framework\Assert::assertSame(
152120320,
$this->tweet->getId()
);
Expand All @@ -51,7 +51,7 @@ public function theTweetMustHaveCorrectId()
*/
public function theTweetMustHaveCorrectCreatedAtDate()
{
\PHPUnit_Framework_Assert::assertSame(
\PHPUnit\Framework\Assert::assertSame(
$this->now,
$this->tweet->getCreatedAt()
);
Expand All @@ -62,7 +62,7 @@ public function theTweetMustHaveCorrectCreatedAtDate()
*/
public function theTweetMustHaveCorrectText()
{
\PHPUnit_Framework_Assert::assertSame(
\PHPUnit\Framework\Assert::assertSame(
'Hello World!',
$this->tweet->getText()
);
Expand All @@ -73,7 +73,7 @@ public function theTweetMustHaveCorrectText()
*/
public function theTweetMustHaveCorrectRetweetCount()
{
\PHPUnit_Framework_Assert::assertSame(
\PHPUnit\Framework\Assert::assertSame(
1999,
$this->tweet->getRetweetCount()
);
Expand All @@ -84,7 +84,7 @@ public function theTweetMustHaveCorrectRetweetCount()
*/
public function theTweetMustHaveCorrectFavoriteCount()
{
\PHPUnit_Framework_Assert::assertSame(
\PHPUnit\Framework\Assert::assertSame(
42,
$this->tweet->getFavoriteCount()
);
Expand All @@ -95,7 +95,7 @@ public function theTweetMustHaveCorrectFavoriteCount()
*/
public function theTweetMustBeInTimeline()
{
\PHPUnit_Framework_Assert::assertTrue(
\PHPUnit\Framework\Assert::assertTrue(
$this->tweet->isInTimeline()
);
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -23,7 +23,7 @@
"symfony/monolog-bundle": "~2.4",
"doctrine/doctrine-fixtures-bundle": "~2.3",
"liip/functional-test-bundle": "~1.4",
"phpunit/phpunit": "4.8.* || ~5.1",
"phpunit/phpunit": "~5.7.21||~6.2",
"behat/behat": "^3.2",
"behat/symfony2-extension": "^2.1",
"behat/mink": "^1.7",
Expand Down

0 comments on commit bcd7e05

Please sign in to comment.