Skip to content

Commit

Permalink
tests: skip fiber test on coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
PROFeNoM committed Sep 16, 2024
1 parent 22a2913 commit 1be1c34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
--TEST--
Context switches on execution context switch.
--SKIPIF--
<?php if (PHP_VERSION_ID < 80100 || !extension_loaded('ffi')) die('skip requires PHP8.1 and FFI'); ?>
# Skip if env PHPUNIT_COVERAGE is enabled
<?php if (PHP_VERSION_ID < 80100 || !extension_loaded('ffi') || getenv('PHPUNIT_COVERAGE')) die('skip requires PHP8.1 and FFI'); ?>
--ENV--
OTEL_PHP_FIBERS_ENABLED=1
--FILE--
<?php
use OpenTelemetry\Context\Context;

require_once './tests/OpenTelemetry/vendor/autoload.php';
require_once './tests/vendor/autoload.php';

$key = Context::createKey('-');
$scope = Context::getCurrent()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
--TEST--
Fiber handler has to be loaded before fibers are used.
--SKIPIF--
<?php if (PHP_VERSION_ID < 80100 || !extension_loaded('ffi')) die('skip requires PHP8.1 and FFI'); ?>
<?php if (PHP_VERSION_ID < 80100 || !extension_loaded('ffi') || getenv('PHPUNIT_COVERAGE')) die('skip requires PHP8.1 and FFI'); ?>
--ENV--
OTEL_PHP_FIBERS_ENABLED=1
--INI--
zend_extension=xdebug-3.2.2.so
--FILE--
<?php
use OpenTelemetry\Context\Context;

require_once './tests/OpenTelemetry/vendor/autoload.php';
require_once './tests/vendor/autoload.php';

$key = Context::createKey('-');

Expand Down

0 comments on commit 1be1c34

Please sign in to comment.