Skip to content

Commit

Permalink
fix(tests): Removes #skipif
Browse files Browse the repository at this point in the history
These tests are not actually for PHP 5 only but are simply run
with CLM disabled so a #skipif is not required.
  • Loading branch information
mfulb committed Sep 21, 2023
1 parent 2b331ac commit dfebf27
Show file tree
Hide file tree
Showing 17 changed files with 4 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute added
ok - string attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute added
ok - string attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute not added
ok - int attribute not added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute not added
ok - int attribute not added
Expand Down Expand Up @@ -103,7 +96,9 @@
[{"name":"Supportability/api/add_custom_tracer"}, [1, 0, 0, 0, 0, 0]],
[{"name":"Supportability/api/add_custom_span_parameter"}, [4, 0, 0, 0, 0, 0]],
[{"name":"Supportability/Logging/Forwarding/PHP/disabled"}, [1, "??", "??", "??", "??", "??"]],
[{"name":"Supportability/Logging/Metrics/PHP/disabled"}, [1, "??", "??", "??", "??", "??"]] ]
[{"name":"Supportability/Logging/Metrics/PHP/disabled"}, [1, "??", "??", "??", "??", "??"]],
[{"name":"Supportability/Logging/LocalDecorating/PHP/disabled"}, [1, "??", "??", "??", "??", "??"]]
]
]
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute not added
ok - int attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute not added
ok - int attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute added
ok - string attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute added
ok - int attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute added
ok - int attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute added
ok - string attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute added
ok - string attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute added
ok - string attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute added
ok - string attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute added
ok - string attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/
/*EXPECT
ok - transaction event attribute added
ok - span event attribute added
Expand Down Expand Up @@ -71,7 +65,7 @@
"parentId": "??"
},
{
"int": 102,
"int": 100,
"string": "from span event",
"bool": false
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute added
ok - int attribute added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@
newrelic.code_level_metrics.enabled=false
*/

/*SKIPIF
<?php
if (version_compare(PHP_VERSION, "7.0", ">=")) {
die("skip: PHP 7+ not supported\n");
}
*/

/*EXPECT
ok - string attribute added
ok - int attribute added
Expand Down

0 comments on commit dfebf27

Please sign in to comment.