Skip to content

Commit 1a1e93e

Browse files
committed
investigate php 5.4 issue
1 parent 6b23379 commit 1a1e93e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/Debug/DebugTestFramework.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,14 @@ public function __get($name)
6868
*/
6969
public function setUp(): void
7070
{
71+
/*
7172
if (PHP_VERSION_ID < 50500) {
7273
\fwrite(STDERR, \sprintf(
7374
' setUp: %s' . "\n",
7475
$this->getName()
7576
));
7677
}
78+
*/
7779

7880
self::$allowError = false;
7981
self::$obLevels = \ob_get_level();
@@ -161,12 +163,14 @@ public function tearDown(): void
161163

162164
public static function setUpBeforeClass(): void
163165
{
166+
/*
164167
if (PHP_VERSION_ID < 50500) {
165168
\fwrite(STDERR, \sprintf(
166169
'setUpBeforeClass: %s' . "\n",
167170
\get_called_class()
168171
));
169172
}
173+
*/
170174

171175
self::$errorHandlerPrev = \set_error_handler(static function ($errno, $errstr, $errfile, $errline) {
172176
$dirVendor = \realpath(__DIR__ . '/../../vendor');
@@ -196,12 +200,14 @@ public static function setUpBeforeClass(): void
196200

197201
public static function tearDownAfterClass(): void
198202
{
203+
/*
199204
if (PHP_VERSION_ID < 50500) {
200205
\fwrite(STDERR, \sprintf(
201206
'tearDownAfterClass: %s' . "\n",
202207
\get_called_class()
203208
));
204209
}
210+
*/
205211

206212
if (\is_callable(self::$errorHandlerPrev)) {
207213
\restore_error_handler();

0 commit comments

Comments
 (0)