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-- https://github.com/sebastianbergmann/phpunit/issues/5532 --FILE-- <?php declare(s..

Decoded Output download

--TEST--
https://github.com/sebastianbergmann/phpunit/issues/5532
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = '--display-deprecations';
$_SERVER['argv'][] = __DIR__ . '/../event/_files/IgnoreDeprecationsTest.php';

require __DIR__ . '/../../bootstrap.php';

(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

Runtime: %s

.D.D                                                                4 / 4 (100%)

Time: %s, Memory: %s

2 tests triggered 2 deprecations:

1) %sIgnoreDeprecationsTest.php:%d
message

Triggered by:

* PHPUnit\TestFixture\Event\IgnoreDeprecationsTest::testTwo
  %sIgnoreDeprecationsTest.php:%d

2) %sIgnoreDeprecationsTest.php:%d
message

Triggered by:

* PHPUnit\TestFixture\Event\IgnoreDeprecationsTest::testTwoErrorGetLast
  %sIgnoreDeprecationsTest.php:%d

OK, but there were issues!
Tests: 4, Assertions: 6, Deprecations: 2.
 ?>

Did this file decode correctly?

Original Code

--TEST--
https://github.com/sebastianbergmann/phpunit/issues/5532
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = '--display-deprecations';
$_SERVER['argv'][] = __DIR__ . '/../event/_files/IgnoreDeprecationsTest.php';

require __DIR__ . '/../../bootstrap.php';

(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

Runtime: %s

.D.D                                                                4 / 4 (100%)

Time: %s, Memory: %s

2 tests triggered 2 deprecations:

1) %sIgnoreDeprecationsTest.php:%d
message

Triggered by:

* PHPUnit\TestFixture\Event\IgnoreDeprecationsTest::testTwo
  %sIgnoreDeprecationsTest.php:%d

2) %sIgnoreDeprecationsTest.php:%d
message

Triggered by:

* PHPUnit\TestFixture\Event\IgnoreDeprecationsTest::testTwoErrorGetLast
  %sIgnoreDeprecationsTest.php:%d

OK, but there were issues!
Tests: 4, Assertions: 6, Deprecations: 2.

Function Calls

None

Variables

None

Stats

MD5 635b31df06b7d3183ae3c4577f7eb585
Eval Count 0
Decode Time 80 ms