Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- GH-2725: Verify that @runClassInSeparateProcess runs @beforeclass and @afterclass..
Decoded Output download
--TEST--
GH-2725: Verify that @runClassInSeparateProcess runs @beforeclass and @afterclass methods in the same process as test methods.
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = __DIR__ . '/2725/BeforeAfterClassPidTest.php';
require_once __DIR__ . '/../../bootstrap.php';
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.
Runtime: %s
.. 2 / 2 (100%)
Time: %s, Memory: %s
OK (2 tests, 2 assertions)
?>
Did this file decode correctly?
Original Code
--TEST--
GH-2725: Verify that @runClassInSeparateProcess runs @beforeclass and @afterclass methods in the same process as test methods.
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = __DIR__ . '/2725/BeforeAfterClassPidTest.php';
require_once __DIR__ . '/../../bootstrap.php';
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.
Runtime: %s
.. 2 / 2 (100%)
Time: %s, Memory: %s
OK (2 tests, 2 assertions)
Function Calls
None |
Stats
MD5 | 24857d093bebef96e3b01f24564de034 |
Eval Count | 0 |
Decode Time | 87 ms |