Skip to content

Commit d23e132

Browse files
committed
fixup! Implement the "Redacting parameters in back traces" RFC
1 parent b51d824 commit d23e132

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

Zend/tests/function_arguments/sensitive_parameter_value.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
The SensitiveParameterValue behaves as expected.
2+
A SensitiveParameterValue behaves as expected.
33
--FILE--
44
<?php
55

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--TEST--
2+
A SensitiveParameterValue is clonable.
3+
--FILE--
4+
<?php
5+
6+
$v1 = new SensitiveParameterValue('secret');
7+
$v2 = clone $v1;
8+
9+
var_dump($v1->getValue());
10+
var_dump($v2->getValue());
11+
12+
?>
13+
--EXPECTF--
14+
string(6) "secret"
15+
string(6) "secret"

Zend/tests/function_arguments/sensitive_parameter_value_to_string.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
The SensitiveParameterValue may not be converted to a string.
2+
A SensitiveParameterValue may not be converted to a string.
33
--FILE--
44
<?php
55

Zend/tests/function_arguments/sensitive_parameter_value_unserialize.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
The SensitiveParameterValue may not be unserialized.
2+
A SensitiveParameterValue may not be unserialized.
33
--FILE--
44
<?php
55

0 commit comments

Comments
 (0)