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-- Test Runner warnings are displayed correctly when invalid deprecation triggers ar..

Decoded Output download

--TEST--
Test Runner warnings are displayed correctly when invalid deprecation triggers are configured in the XML configuration file
--FILE--
<?php declare(strict_types=1);

$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--configuration';
$_SERVER['argv'][] = __DIR__ . '/_files/invalid-deprecation-trigger';

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

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

Runtime: %s
Configuration: %s

.                                                                   1 / 1 (100%)

Time: %s, Memory: %s

There were 3 PHPUnit test runner warnings:

1) Function does_not_exist cannot be configured as a deprecation trigger because it is not declared

2) invalid-string cannot be configured as a deprecation trigger because it is not in ClassName::methodName format

3) Method DoesNotExist::doesNotExist cannot be configured as a deprecation trigger because it is not declared

WARNINGS!
Tests: 1, Assertions: 1, Warnings: 3.
 ?>

Did this file decode correctly?

Original Code

--TEST--
Test Runner warnings are displayed correctly when invalid deprecation triggers are configured in the XML configuration file
--FILE--
<?php declare(strict_types=1);

$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--configuration';
$_SERVER['argv'][] = __DIR__ . '/_files/invalid-deprecation-trigger';

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

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

Runtime: %s
Configuration: %s

.                                                                   1 / 1 (100%)

Time: %s, Memory: %s

There were 3 PHPUnit test runner warnings:

1) Function does_not_exist cannot be configured as a deprecation trigger because it is not declared

2) invalid-string cannot be configured as a deprecation trigger because it is not in ClassName::methodName format

3) Method DoesNotExist::doesNotExist cannot be configured as a deprecation trigger because it is not declared

WARNINGS!
Tests: 1, Assertions: 1, Warnings: 3.

Function Calls

None

Variables

None

Stats

MD5 bf7543c3747773c5e2f053ed42b7c3e7
Eval Count 0
Decode Time 100 ms