Skip to content

Commit

Permalink
Made test suite compatible with Codeception 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Naktibalda committed Jan 9, 2023
1 parent 20a4ca1 commit e9039d3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
- name: Validate composer.json and composer.lock
run: composer validate

- name: Install Codeception 4 on PHP 7.4
if: matrix.php == '7.4'
run: composer require codeception/codeception:"^4.2" -W --no-update

- name: Install Codeception 5 on PHP 8
if: matrix.php != '7.4'
run: composer require codeception/codeception:"^5.0" -W --no-update

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest

Expand Down
8 changes: 8 additions & 0 deletions tests/Support/CliTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

namespace Tests\Support;

require_once __DIR__ . '/_generated/CliTesterActions.php';

if (trait_exists(\Tests\_generated\CliTesterActions::class, false)) {
class_alias(\Tests\_generated\CliTesterActions::class, \Tests\Support\_generated\CliTesterActions::class);
}

/**
* Inherited Methods
*
Expand All @@ -28,3 +34,5 @@ class CliTester extends \Codeception\Actor
* Define custom actions here
*/
}

class_alias(CliTester::class, \Tests\CliTester::class);

0 comments on commit e9039d3

Please sign in to comment.