From 9fa37d828e54225f96356cf76d94b1d6b12cec9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= <5175937+theofidry@users.noreply.github.com> Date: Sat, 4 Nov 2023 18:12:51 +0100 Subject: [PATCH] test: Make the min PHP version test compatibility more complete (#892) --- fixtures/set039-min-php-version/composer.json | 6 ++++++ fixtures/set039-min-php-version/index.php | 6 +----- fixtures/set039-min-php-version/scoper.inc.php | 2 ++ fixtures/set039-min-php-version/src/Greeter.php | 11 +++++++++++ fixtures/set039-min-php-version/src/greet.php | 7 +++++++ 5 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 fixtures/set039-min-php-version/src/Greeter.php create mode 100644 fixtures/set039-min-php-version/src/greet.php diff --git a/fixtures/set039-min-php-version/composer.json b/fixtures/set039-min-php-version/composer.json index 2c63c085..547aa8c0 100644 --- a/fixtures/set039-min-php-version/composer.json +++ b/fixtures/set039-min-php-version/composer.json @@ -1,2 +1,8 @@ { + "autoload": { + "files": ["src/greet.php"], + "psr-4": { + "App\\": "src" + } + } } diff --git a/fixtures/set039-min-php-version/index.php b/fixtures/set039-min-php-version/index.php index 504abd53..af2ca4ba 100644 --- a/fixtures/set039-min-php-version/index.php +++ b/fixtures/set039-min-php-version/index.php @@ -1,11 +1,7 @@ ['index.php'], 'expose-classes' => ['App\Greeter'], + 'expose-functions' => ['greet'], ]; diff --git a/fixtures/set039-min-php-version/src/Greeter.php b/fixtures/set039-min-php-version/src/Greeter.php new file mode 100644 index 00000000..ccb13bd9 --- /dev/null +++ b/fixtures/set039-min-php-version/src/Greeter.php @@ -0,0 +1,11 @@ +greet(); +}