Skip to content

Commit f95f895

Browse files
authored
Merge pull request #57 from miladrahimi/update-laminas
fix http error already sent in tests
2 parents 3966f69 + 92aaaba commit f95f895

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
11
name: CI
2-
on: [push, pull_request]
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
37
jobs:
48
run:
59
strategy:
610
matrix:
711
include:
8-
- php: '7.4'
912
- php: '8.0'
1013
- php: '8.1'
1114
- php: '8.2'
15+
- php: '8.3'
16+
- php: '8.4'
17+
1218
runs-on: ubuntu-latest
1319
steps:
1420
- name: Checkout
1521
uses: actions/checkout@v4
22+
1623
- name: Set up PHP
1724
uses: shivammathur/setup-php@v2
1825
with:
1926
php-version: "${{ matrix.php }}"
27+
2028
- name: Install dependencies
2129
run: composer self-update && composer install && composer dump-autoload
30+
2231
- name: Run tests and collect coverage
2332
run: vendor/bin/phpunit --coverage-clover coverage.xml .
33+
2434
- name: Upload coverage to Codecov
2535
uses: codecov/codecov-action@v4-beta
2636
env:

tests/Features/ViewTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
class ViewTest extends TestCase
1111
{
1212
/**
13+
* @runInSeparateProcess
1314
* @throws Throwable
1415
*/
1516
public function test_with_the_sample_view()
@@ -28,6 +29,7 @@ public function test_with_the_sample_view()
2829
}
2930

3031
/**
32+
* @runInSeparateProcess
3133
* @throws Throwable
3234
*/
3335
public function test_with_the_sample_view_and_status_201_and_headers()

tests/Units/HttpPublisherTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function test_publish_a_array_response()
5858
}
5959

6060
/**
61+
* @runInSeparateProcess
6162
* @throws Throwable
6263
*/
6364
public function test_publish_a_standard_response()

0 commit comments

Comments
 (0)