Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Fix the PHP version ID used #1038

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/SpecFrameworkTest/Fixtures/complete-spec-file.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
'meta' => new Meta(
title: 'Example of simple spec file',
prefix: 'Humbug',
minPhpVersion: 72_000,
maxPhpVersion: 83_000,
minPhpVersion: 70_200,
maxPhpVersion: 80_300,
exposeGlobalConstants: true,
exposeGlobalClasses: true,
exposeGlobalFunctions: true,
Expand Down Expand Up @@ -60,8 +60,8 @@

'Spec with overridden meta values' => SpecWithConfig::create(
prefix: 'AnotherPrefix',
minPhpVersion: 73_000,
maxPhpVersion: 82_000,
minPhpVersion: 70_300,
maxPhpVersion: 80_200,
exposeGlobalConstants: false,
exposeGlobalClasses: false,
exposeGlobalFunctions: false,
Expand Down
12 changes: 6 additions & 6 deletions tests/SpecFrameworkTest/SpecParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public static function specProvider(): iterable
self::FIXTURE_DIR.'/complete-spec-file.php',
[
'Fixtures/complete-spec-file.php: Spec with default meta values' => new SpecScenario(
72_000,
83_000,
70_200,
80_300,
'Fixtures/complete-spec-file.php:39',
'[Example of simple spec file] Spec with default meta values',
$specCode,
Expand All @@ -130,8 +130,8 @@ public static function specProvider(): iterable
['Acme\recorded_function', 'Humbug\Acme\recorded_function'],
),
'Fixtures/complete-spec-file.php: Spec with the more verbose form' => new SpecScenario(
72_000,
83_000,
70_200,
80_300,
'Fixtures/complete-spec-file.php:49',
'[Example of simple spec file] Spec with the more verbose form',
$specCode,
Expand All @@ -154,8 +154,8 @@ public static function specProvider(): iterable
['Acme\recorded_function', 'Humbug\Acme\recorded_function'],
),
'Fixtures/complete-spec-file.php: Spec with overridden meta values' => new SpecScenario(
73_000,
82_000,
70_300,
80_200,
'Fixtures/complete-spec-file.php:61',
'[Example of simple spec file] Spec with overridden meta values',
$specCode,
Expand Down
8 changes: 4 additions & 4 deletions tests/SpecFrameworkTest/SpecPrinterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public static function scenarioProvider(): iterable

yield 'complete scenario without symbols' => [
new SpecScenario(
72_000,
83_000,
70_200,
80_300,
'Fixtures/complete-spec-file.php',
'[Example of simple spec file] Spec with the more verbose form',
$specCode,
Expand Down Expand Up @@ -217,8 +217,8 @@ public static function scenarioProvider(): iterable

yield 'complete scenario with multiple items without symbols' => [
new SpecScenario(
72_000,
83_000,
70_200,
80_300,
'Fixtures/complete-spec-file.php',
'[Example of simple spec file] Spec with the more verbose form',
$specCode,
Expand Down
Loading