File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 60
60
$rxMatch += ' -' + [regex ]::Escape($PhpVersion.Architecture )
61
61
$rxMatch += ' \.zip$'
62
62
$urls = @ ()
63
- if ($MaximumStability -eq $Script :PEARSTATE_STABLE ) {
63
+ if ($MaximumStability -eq $Script :PEARSTATE_STABLE -or $MaximumStability -eq $ Script :PEARSTATE_BETA ) {
64
64
$urls += " https://windows.php.net/downloads/pecl/releases/$handleLC /$PackageVersion "
65
65
}
66
66
if ($MinimumStability -ne $Script :PEARSTATE_STABLE ) {
Original file line number Diff line number Diff line change 58
58
$imagick.Type | Should - BeExactly ' Php'
59
59
$imagick.State | Should - BeExactly ' Disabled'
60
60
}
61
+ It - Name ' should download and install msgpack-beta on PHP <version>' - TestCases $testCases {
62
+ param ($path , $version )
63
+ if ($version -ne ' 7.2' ) {
64
+ Set-ItResult - Skipped - Because " Not supported on PHP $version "
65
+ }
66
+ $msgpack = Get-PhpExtension - Path $path | Where-Object { $_.Handle -eq ' msgpack' }
67
+ $msgpack | Should - HaveCount 0
68
+ Install-PhpExtension - Extension msgpack - Path $path - MinimumStability beta - MaximumStability beta
69
+ $msgpack = Get-PhpExtension - Path $path | Where-Object { $_.Handle -eq ' msgpack' }
70
+ $msgpack | Should - HaveCount 1
71
+ }
61
72
It - Name ' should download and install yaml on PHP <version>' - TestCases $testCases {
62
73
param ($path , $version )
63
74
Get-PhpExtension - Path $path | Where-Object { $_.Handle -eq ' yaml' } | Should - HaveCount 0
You can’t perform that action at this time.
0 commit comments