Skip to content

Commit d91531e

Browse files
committed
simplify test further
1 parent d0a7e4a commit d91531e

File tree

4 files changed

+5
-48
lines changed

4 files changed

+5
-48
lines changed

tests/end-to-end/phar/phpunit.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<testsuites>
88
<testsuite name="default">
99
<directory>tests/standard</directory>
10-
<directory>tests/code-coverage</directory>
1110
<directory suffix="phpt">tests/phpt</directory>
1211
</testsuite>
1312
</testsuites>

tests/end-to-end/phar/tests/code-coverage/warn-when-opcache-enabled/src/Greeter.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

tests/end-to-end/phar/tests/code-coverage/warn-when-opcache-enabled/tests/GreeterTest.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

tests/end-to-end/phar/tests/code-coverage/warn-when-opcache-enabled.phpt renamed to tests/end-to-end/phar/tests/phpt/warn-when-opcache-enabled.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ https://github.com/sebastianbergmann/php-code-coverage/issues/1022
33
--INI--
44
opcache.enable_cli=1
55
opcache.jit=disable
6-
pcov.directory=tests/end-to-end/phar/tests/code-coverage/warn-when-opcache-enabled/src/
6+
pcov.directory=tests/end-to-end/phar/src/
77
--SKIPIF--
88
<?php declare(strict_types=1);
99
require __DIR__ . '/../../_files/skip-if-requires-code-coverage-driver.php';
@@ -18,6 +18,9 @@ if (!function_exists('opcache_compile_file')) {
1818
$_SERVER['argv'][] = '--do-not-cache-result';
1919
$_SERVER['argv'][] = '--colors=never';
2020
$_SERVER['argv'][] = '--coverage-text';
21+
$_SERVER['argv'][] = '--bootstrap';
22+
$_SERVER['argv'][] = __DIR__.'/../../src/autoload.php';
23+
$_SERVER['argv'][] = __DIR__.'/../standard/GreeterTest.php';
2124

2225
require_once __DIR__ . '/../../../../bootstrap.php';
2326

@@ -28,14 +31,11 @@ PHPUnit %s by Sebastian Bergmann and contributors.
2831
Runtime: %s
2932
Configuration: %s
3033

31-
. 1 / 1 (100%)
34+
WW 2 / 2 (100%)
3235

3336
Time: %s, Memory: %s MB
3437

3538
There was 1 PHPUnit test runner warning:
3639

3740
1) Code coverage might produce unreliable results when OPCache is enabled
38-
39-
OK, but there were issues!
40-
Tests: 1, Assertions: 1, PHPUnit Warnings: 1.
4141
%A

0 commit comments

Comments
 (0)