Skip to content

Commit

Permalink
Merge pull request #105 from gabbydgab/hot-fix/phpunit-deprecated-met…
Browse files Browse the repository at this point in the history
…hods

bumped phpunit to 5.7 and fixed deprecated methods
  • Loading branch information
Ocramius committed Jan 3, 2017
2 parents d741466 + 986054a commit 1a4fb7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: php

php:
- 5.5
- 5.6
- 7.0
- hhvm
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
{"name": "Johannes Schmitt", "email": "schmittjoh@gmail.com"}
],
"require": {
"php": "^5.5 || ^7.0"
"php": "^5.6 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"phpunit/phpunit": "^5.7",
"doctrine/coding-standard": "~0.1@dev"
},
"autoload": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Doctrine\Common\Collections\Expr\CompositeExpression;
use Doctrine\Common\Collections\Expr\ExpressionVisitor;
use Doctrine\Common\Collections\Expr\Value;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase as TestCase;

/**
* @author Tobias Oberrauch <hello@tobiasoberrauch.com>
Expand Down Expand Up @@ -65,7 +65,7 @@ protected function createCompositeExpression()
{
$type = CompositeExpression::TYPE_AND;
$expressions = array(
$this->getMock('Doctrine\Common\Collections\Expr\Expression'),
$this->createMock('Doctrine\Common\Collections\Expr\Expression'),
);

$compositeExpression = new CompositeExpression($type, $expressions);
Expand All @@ -81,7 +81,7 @@ public function testGetExpressionList()
$compositeExpression = $this->createCompositeExpression();

$expectedExpressionList = array(
$this->getMock('Doctrine\Common\Collections\Expr\Expression'),
$this->createMock('Doctrine\Common\Collections\Expr\Expression'),
);
$actualExpressionList = $compositeExpression->getExpressionList();

Expand Down

0 comments on commit 1a4fb7e

Please sign in to comment.