Skip to content

Commit 7fff200

Browse files
committed
Switch from Travis to GitHub actions
1 parent 2623f12 commit 7fff200

File tree

7 files changed

+55
-55
lines changed

7 files changed

+55
-55
lines changed

.github/workflows/test.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
name: PHP ${{ matrix.php-version }} (${{ matrix.experimental && 'experimental' || 'full support' }})
8+
9+
runs-on: ubuntu-18.04
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
php-version:
15+
- 7.1
16+
- 7.2
17+
- 7.3
18+
- 7.4
19+
experimental: [false]
20+
21+
continue-on-error: ${{ matrix.experimental }}
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v2
25+
26+
- name: Install PHP with extensions
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-version }}
30+
coverage: pcov
31+
tools: composer:v2
32+
33+
- name: Install Composer dependencies
34+
uses: ramsey/composer-install@v1
35+
with:
36+
composer-options: --prefer-dist
37+
continue-on-error: ${{ matrix.experimental }}
38+
39+
- name: Setup PCOV
40+
run: |
41+
composer require pcov/clobber
42+
vendor/bin/pcov clobber
43+
continue-on-error: true
44+
45+
- name: Run Tests
46+
run: composer tests
47+
continue-on-error: ${{ matrix.experimental }}

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# HTTP Mock for PHP
22

3-
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/InterNations/http-mock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://travis-ci.org/InterNations/http-mock.svg)](https://travis-ci.org/InterNations/http-mock) [![Dependency Status](https://www.versioneye.com/user/projects/53479c42fe0d0720b500006a/badge.png)](https://www.versioneye.com/user/projects/53479c42fe0d0720b500006a) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/InterNations/http-mock.svg)](http://isitmaintained.com/project/InterNations/http-mock "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/InterNations/http-mock.svg)](http://isitmaintained.com/project/InterNations/http-mock "Percentage of issues still open")
3+
[![Test](https://github.com/InterNations/http-mock/actions/workflows/test.yaml/badge.svg)](https://github.com/InterNations/http-mock/actions/workflows/test.yaml)
44

55
Mock HTTP requests on the server side in your PHP unit tests.
66

build.xml

Lines changed: 0 additions & 34 deletions
This file was deleted.

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@
3030
},
3131
"autoload-dev": {
3232
"psr-4": {"InterNations\\Component\\HttpMock\\Tests\\": "tests/"}
33+
},
34+
"scripts": {
35+
"tests": "phpunit"
3336
}
3437
}

src/Request/UnifiedRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function getHeaderLines()
141141
*
142142
* @param string $header The header to check.
143143
*
144-
* @return boolean Returns TRUE or FALSE if the header is present
144+
* @return bool Returns TRUE or FALSE if the header is present
145145
*/
146146
public function hasHeader($header)
147147
{
@@ -222,7 +222,7 @@ public function getPath()
222222
/**
223223
* Get the port that the request will be sent on if it has been set
224224
*
225-
* @return integer|null
225+
* @return int|null
226226
*/
227227
public function getPort()
228228
{
@@ -253,7 +253,7 @@ public function getPassword()
253253
* Get the full URL of the request (e.g. 'http://www.guzzle-project.com/')
254254
* scheme://username:password@domain:port/path?query_string#fragment
255255
*
256-
* @param boolean $asObject Set to TRUE to retrieve the URL as a clone of the URL object owned by the request.
256+
* @param bool $asObject Set to TRUE to retrieve the URL as a clone of the URL object owned by the request.
257257
*
258258
* @return string|Url
259259
*/

src/RequestCollectionFacade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function first()
4444
}
4545

4646
/**
47-
* @param integer $position
47+
* @param int $position
4848
* @return UnifiedRequest
4949
*/
5050
public function at($position)

0 commit comments

Comments
 (0)