Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PHP Composer

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run test suite
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion Tests/Service/Request/RequestFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function testBuildFlowWithQueryParams()
*/
public function testBuildFlowValidationFailsOnUnmappedRequestArguments()
{
$this->setExpectedException(InvalidArgumentException::class);
$this->expectException(InvalidArgumentException::class);

$baseUrl = 'baseUrl';
$routeString = 'routeString\{invalidArgument}';
Expand Down
2 changes: 1 addition & 1 deletion Tests/Service/Response/ResponseTransformerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function testTransformSuccess()
*/
public function testTransformFails()
{
static::setExpectedException(ResponseException::class);
$this->expectException(ResponseException::class);

$responseBodyContent = '{$responseBodyContent:$responseBodyContent}';
$failedStatusCode = Response::HTTP_INTERNAL_SERVER_ERROR;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"require-dev": {
"symfony/yaml": "~3.0|~4.0|~5.0",
"symfony/console": "~3.0|~4.0|~5.0",
"phpunit/phpunit": "^4.8",
"phpunit/phpunit": "^6.5",
"symfony/phpunit-bridge": "^3.3.8",
"phpspec/prophecy": "^1.7.2"
},
Expand Down