File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 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' }
You can’t perform that action at this time.
0 commit comments