Skip to content

Commit 7d2e86c

Browse files
authoredMar 4, 2025··
Merge pull request #1 from silinternational/feature/upgrade-to-php8.3
Upgrade to php8.3
2 parents 194425a + 9c1193f commit 7d2e86c

File tree

8 files changed

+20
-43
lines changed

8 files changed

+20
-43
lines changed
 

‎.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test and Publish
1+
name: Unit Tests
22

33
on:
44
push:
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup PHP
1616
uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: 8.1
18+
php-version: 8.3
1919

2020
- name: Test
2121
run: |

‎codeception.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
actor: Tester
1+
actor_suffix: Tester
2+
namespace: Tests
3+
support_namespace: Support
24
bootstrap: bootstrap.php
35
paths:
46
tests: tests
5-
log: tests/_output
6-
data: tests/_data
7-
support: tests/_support
7+
output: tests/_output
8+
data: tests/Support/Data
9+
support: tests/Support
810
envs: tests/_envs
911
settings:
1012
colors: true

‎composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
"type": "yii2-extension",
99
"license": "MIT",
1010
"require": {
11-
"php": "^7.2|^8.0",
11+
"php": "^8.1",
1212
"yiisoft/yii2": "^2.0",
1313
"sentry/sdk": "^3.0",
1414
"ext-json": "*"
1515
},
1616
"require-dev": {
17-
"codeception/codeception": "^4.0",
18-
"codeception/module-yii2": "^1.1",
19-
"codeception/module-asserts": "^1.3"
17+
"codeception/codeception": "^5.0",
18+
"codeception/module-yii2": "^2.0",
19+
"codeception/module-asserts": "^3.0"
2020
},
2121
"autoload": {
2222
"psr-4": {

‎tests/_support/Helper/Unit.php renamed to ‎tests/Support/Helper/Unit.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Helper;
2+
namespace Tests\Support\Helper;
33

44
// here you can define custom actions
55
// all public methods declared in helper class will be available in $I

‎tests/_support/UnitTester.php renamed to ‎tests/Support/UnitTester.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
namespace Tests\Support;
34

45
/**
56
* Inherited Methods
@@ -15,12 +16,12 @@
1516
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL)
1617
*
1718
* @SuppressWarnings(PHPMD)
18-
*/
19+
*/
1920
class UnitTester extends \Codeception\Actor
2021
{
2122
use _generated\UnitTesterActions;
2223

23-
/**
24-
* Define custom actions here
25-
*/
24+
/**
25+
* Define custom actions here
26+
*/
2627
}

‎tests/_support/E2eTester.php

-26
This file was deleted.

‎tests/unit.suite.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ modules:
55
configFile: 'tests/unit/config.php'
66
part: init
77
- Asserts
8-
- \Helper\Unit
8+
- Tests\Support\Helper\Unit

‎tests/unit/SentryTargetTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Sil\Sentry\tests\unit;
3+
namespace Sil\Sentry\tests\Unit;
44

55
use Codeception\Test\Unit;
66
use ReflectionClass;

0 commit comments

Comments
 (0)
Please sign in to comment.