Skip to content

Commit 2050b8b

Browse files
committed
simplify test
1 parent 05ac9c1 commit 2050b8b

File tree

3 files changed

+2
-26
lines changed

3 files changed

+2
-26
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ 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'][] = '--configuration';
22-
$_SERVER['argv'][] = __DIR__ . '/warn-when-opcache-enabled/phpunit.xml';
23-
24-
require_once __DIR__ . '/warn-when-opcache-enabled/src/Greeter.php';
2521

2622
require_once __DIR__ . '/../../../../bootstrap.php';
2723

tests/end-to-end/phar/tests/code-coverage/warn-when-opcache-enabled/phpunit.xml

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ final class GreeterTest extends TestCase
1717
{
1818
public function testGreets(): void
1919
{
20+
require_once __DIR__ . '/../src/Greeter.php';
21+
2022
$this->assertSame('Hello world!', (new Greeter)->greet());
2123
}
2224
}

0 commit comments

Comments
 (0)