File tree 2 files changed +8
-3
lines changed
test/StaticusTest/Actions/Fractal
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
// Environments helpers from Laravel Framework
4
- if ( ! function_exists ('value ' ))
4
+ if (! function_exists ('value ' ))
5
5
{
6
6
/**
7
7
* Return the default value of the given value.
@@ -14,7 +14,7 @@ function value($value)
14
14
return $ value instanceof Closure ? $ value () : $ value ;
15
15
}
16
16
}
17
- if ( ! function_exists ('env ' ))
17
+ if (! function_exists ('env ' ))
18
18
{
19
19
/**
20
20
* Gets the value of an environment variable. Supports boolean, empty and null.
@@ -27,7 +27,9 @@ function env($key, $default = null)
27
27
{
28
28
$ value = getenv ($ key );
29
29
30
- if ($ value === false ) return value ($ default );
30
+ if ($ value === false ) {
31
+ return value ($ default );
32
+ }
31
33
32
34
switch (strtolower ($ value ))
33
35
{
Original file line number Diff line number Diff line change @@ -178,6 +178,9 @@ public function testPostRecreate()
178
178
179
179
public function testPostRecreateWithCrop ()
180
180
{
181
+ if (!class_exists (\Imagick::class)) {
182
+ $ this ->markTestSkipped ('Imagick is not installed ' );
183
+ }
181
184
$ imagePath = $ this ->dataDir . static ::FILE_PATH_V0_SIZE ;
182
185
if (file_exists ($ imagePath )) {
183
186
unlink ($ imagePath );
You can’t perform that action at this time.
0 commit comments