Skip to content

Commit

Permalink
Drop PHP 5.5 support, stick to PHPUnit <= 5.4; #55
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Preusner authored Jul 24, 2016
1 parent cc996ac commit b73221d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .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 All @@ -26,5 +25,4 @@ notifications:
matrix:
allow_failures:
- env: SYMFONY_VERSION=dev-master
- php: 7.0
- php: nightly
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/GuzzleExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private function createContainer()
{
$container = new ContainerBuilder();
$container->setParameter('kernel.debug', true);
$container->set('event_dispatcher', $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface'));
$container->set('event_dispatcher', $this->createMock('Symfony\Component\EventDispatcher\EventDispatcherInterface'));

return $container;
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/Events/PostTransactionEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PostTransactionEventTest extends \PHPUnit_Framework_TestCase
public function testConstruct()
{
$serviceName = 'service name';
$response = $this->getMock('GuzzleHttp\Psr7\Response');
$response = $this->createMock('GuzzleHttp\Psr7\Response');
$postEvent = new PostTransactionEvent($response, $serviceName);

$this->assertSame($serviceName, $postEvent->getServiceName());
Expand All @@ -39,7 +39,7 @@ public function testConstruct()
public function testTranscation()
{
$statusCode = 204;
$response = $this->getMock('GuzzleHttp\Psr7\Response');
$response = $this->createMock('GuzzleHttp\Psr7\Response');
$postEvent = new PostTransactionEvent($response, null);

$transMock = $this->getMockBuilder('GuzzleHttp\Psr7\Response')
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}
],
"require": {
"php": ">=5.5.0",
"php": ">=5.6",
"guzzlehttp/guzzle": "~6.0",
"eightpoints/guzzle-wsse-middleware": "~4.0",
"symfony/dependency-injection": "~2.3|~3.0",
Expand All @@ -36,8 +36,8 @@
"psr/log": "~1.0"
},
"require-dev": {
"phpunit/phpunit": "*",
"symfony/config": "~2.3|~3.0"
"phpunit/phpunit": "~5.4",
"symfony/config": "2.3|~3.0"
},
"target-dir": "EightPoints/Bundle/GuzzleBundle",
"autoload": {
Expand Down

0 comments on commit b73221d

Please sign in to comment.