Skip to content

Commit 939bb1b

Browse files
committed
s
1 parent 2beb9c2 commit 939bb1b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/tests/Install-Enable-Extensions.Tests.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,14 @@
129129
It -Name 'should download and install amqp on PHP <version>' -TestCases $testCases {
130130
param ($path, $version)
131131
Get-PhpExtension -Path $path | Where-Object { $_.Handle -eq 'amqp' } | Should -HaveCount 0
132-
if (([Version] $version) -lt [Version]'7.4') {
132+
if (([Version] $version) -ge [Version]'7.4') {
133+
$amqpVersion = '2.1.2'
134+
} elseif (([Version] $version) -ge [Version]'7.3') {
133135
$amqpVersion = '1.11.0'
136+
} elseif (([Version] $version) -ge [Version]'7.2') {
137+
$amqpVersion = '1.10.2'
134138
} else {
135-
$amqpVersion = '2.1.2'
139+
$amqpVersion = '1.9.4'
136140
}
137141
Install-PhpExtension -Extension amqp -Path $path -Version $amqpVersion
138142
$amqp = Get-PhpExtension -Path $path | Where-Object { $_.Handle -eq 'amqp' }

0 commit comments

Comments
 (0)