Skip to content

Commit e9039d3

Browse files
committed
Made test suite compatible with Codeception 4.2
1 parent 20a4ca1 commit e9039d3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ jobs:
2323
- name: Validate composer.json and composer.lock
2424
run: composer validate
2525

26+
- name: Install Codeception 4 on PHP 7.4
27+
if: matrix.php == '7.4'
28+
run: composer require codeception/codeception:"^4.2" -W --no-update
29+
30+
- name: Install Codeception 5 on PHP 8
31+
if: matrix.php != '7.4'
32+
run: composer require codeception/codeception:"^5.0" -W --no-update
33+
2634
- name: Install dependencies
2735
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
2836

tests/Support/CliTester.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
namespace Tests\Support;
66

7+
require_once __DIR__ . '/_generated/CliTesterActions.php';
8+
9+
if (trait_exists(\Tests\_generated\CliTesterActions::class, false)) {
10+
class_alias(\Tests\_generated\CliTesterActions::class, \Tests\Support\_generated\CliTesterActions::class);
11+
}
12+
713
/**
814
* Inherited Methods
915
*
@@ -28,3 +34,5 @@ class CliTester extends \Codeception\Actor
2834
* Define custom actions here
2935
*/
3036
}
37+
38+
class_alias(CliTester::class, \Tests\CliTester::class);

0 commit comments

Comments
 (0)