Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
C3rb authored Feb 23, 2021
2 parents fa0f101 + 1631f88 commit 4ac5514
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ dist: trusty
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

env:
global:
- XDEBUG_MODE=coverage

before_script:
- wget http://getcomposer.org/composer.phar
- php composer.phar install

script: bin/phpunit --coverage-text
script: bin/phpunit --coverage-text --debug
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
}
],
"require": {
"php": ">=5.6.0",
"php": ">=7.1.0",
"guzzlehttp/guzzle": "^5.0|^6.0",
"symfony/serializer": "^2.0|^3.0|^4.0|^5.0"
},
"require-dev": {
"phpunit/phpunit": "^5.0"
"phpunit/phpunit": "^7.0"
},
"autoload": {
"psr-0": {
Expand Down
6 changes: 3 additions & 3 deletions tests/Josser/Tests/Protocol/JsonRpc1Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function testCreatingResponseFromValidDtoWithoutRpcError($responseDataTra
*/
public function testCreatingResponseFromValidDtoWithRpcError($responseDataTransferObject)
{
$this->setExpectedException('Josser\Exception\RpcFaultException');
$this->expectException('Josser\Exception\RpcFaultException');

$this->protocol->createResponse($responseDataTransferObject);
}
Expand All @@ -118,7 +118,7 @@ public function testCreatingResponseFromValidDtoWithRpcError($responseDataTransf
*/
public function testCreatingResponseFromInvalidDTOs($responseDataTransferObject)
{
$this->setExpectedException('Josser\Exception\InvalidResponseException');
$this->expectException('Josser\Exception\InvalidResponseException');

$this->protocol->createResponse($responseDataTransferObject);
}
Expand Down Expand Up @@ -149,7 +149,7 @@ public function testCreatingDTOFromValidRequest(RequestInterface $request, $expe
*/
public function testCreatingDTOFromInvalidRequest(RequestInterface $request)
{
$this->setExpectedException('Josser\Exception\InvalidRequestException');
$this->expectException('Josser\Exception\InvalidRequestException');

$this->protocol->getRequestDataTransferObject($request);
}
Expand Down
6 changes: 3 additions & 3 deletions tests/Josser/Tests/Protocol/JsonRpc2Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function testCreatingResponseFromValidDtoWithoutRpcError($responseDataTra
*/
public function testCreatingResponseFromValidDtoWithRpcError($responseDataTransferObject, $message, $code, $data)
{
$this->setExpectedException('Josser\Exception\RpcFaultException', $message, $code);
$this->expectException('Josser\Exception\RpcFaultException', $message, $code);

try {
$this->protocol->createResponse($responseDataTransferObject);
Expand All @@ -127,7 +127,7 @@ public function testCreatingResponseFromValidDtoWithRpcError($responseDataTransf
*/
public function testCreatingResponseFromInvalidDTOs($responseDataTransferObject)
{
$this->setExpectedException('Josser\Exception\InvalidResponseException');
$this->expectException('Josser\Exception\InvalidResponseException');

$this->protocol->createResponse($responseDataTransferObject);
}
Expand Down Expand Up @@ -158,7 +158,7 @@ public function testCreatingDTOFromValidRequest(RequestInterface $request, $expe
*/
public function testCreatingDTOFromInvalidRequest(RequestInterface $request)
{
$this->setExpectedException('Josser\Exception\InvalidRequestException');
$this->expectException('Josser\Exception\InvalidRequestException');

$this->protocol->getRequestDataTransferObject($request);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Josser/Tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

namespace Josser\Tests;

class TestCase extends \PHPUnit_Framework_TestCase
class TestCase extends \PHPUnit\Framework\TestCase
{
}
}

0 comments on commit 4ac5514

Please sign in to comment.