Skip to content

Commit e98209e

Browse files
committed
chore(tests): add skipif
1 parent 61a0d34 commit e98209e

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed

tests/integration/frameworks/laravel/test_horizon_error_path.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
It also verifies that no traced errors and no error events were recorded.
1313
*/
1414

15+
/*SKIPIF
16+
<?php
17+
if (version_compare(PHP_VERSION, "8.0", "<")) {
18+
die("skip: PHP < 8.0 not supported\n");
19+
}
20+
*/
21+
1522
/*INI
1623
newrelic.framework = laravel
1724
*/

tests/integration/frameworks/laravel/test_horizon_exception_path.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
It also verifies that no traced errors and no error events were recorded.
1313
*/
1414

15+
/*SKIPIF
16+
<?php
17+
if (version_compare(PHP_VERSION, "8.0", "<")) {
18+
die("skip: PHP < 8.0 not supported\n");
19+
}
20+
*/
21+
1522
/*INI
1623
newrelic.framework = laravel
1724
*/

tests/integration/frameworks/laravel/test_horizon_happy_path.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
verifies that the transaction has been stopped by checking that there was no harvest received.
1212
*/
1313

14+
/*SKIPIF
15+
<?php
16+
if (version_compare(PHP_VERSION, "8.0", "<")) {
17+
die("skip: PHP < 8.0 not supported\n");
18+
}
19+
*/
20+
1421
/*INI
1522
newrelic.framework = laravel
1623
*/

tests/integration/frameworks/laravel/test_supervisor_error_path.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
It also verifies that no traced errors and no error events were recorded.
1313
*/
1414

15+
/*SKIPIF
16+
<?php
17+
if (version_compare(PHP_VERSION, "8.0", "<")) {
18+
die("skip: PHP < 8.0 not supported\n");
19+
}
20+
*/
21+
1522
/*INI
1623
newrelic.framework = laravel
1724
*/

tests/integration/frameworks/laravel/test_supervisor_exception_path.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
It also verifies that no traced errors and no error events were recorded.
1313
*/
1414

15+
/*SKIPIF
16+
<?php
17+
if (version_compare(PHP_VERSION, "8.0", "<")) {
18+
die("skip: PHP < 8.0 not supported\n");
19+
}
20+
*/
21+
1522
/*INI
1623
newrelic.framework = laravel
1724
*/

tests/integration/frameworks/laravel/test_supervisor_happy_path.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
verifies that the transaction has been stopped by checking that there was no harvest received.
1212
*/
1313

14+
/*SKIPIF
15+
<?php
16+
if (version_compare(PHP_VERSION, "8.0", "<")) {
17+
die("skip: PHP < 8.0 not supported\n");
18+
}
19+
*/
20+
1421
/*INI
1522
newrelic.framework = laravel
1623
*/

0 commit comments

Comments
 (0)