Skip to content

Commit 1395fd6

Browse files
committed
Add sensitive_parameter_value_to_string.phpt
1 parent b169312 commit 1395fd6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--TEST--
2+
SensitiveParameterValue may not be converted to a string.
3+
--FILE--
4+
<?php
5+
6+
$v = new SensitiveParameterValue('secret');
7+
8+
var_dump((string)$v);
9+
?>
10+
--EXPECTF--
11+
Fatal error: Uncaught Error: Object of class SensitiveParameterValue could not be converted to string in %ssensitive_parameter_value_to_string.php:5
12+
Stack trace:
13+
#0 {main}
14+
thrown in %ssensitive_parameter_value_to_string.php on line 5

0 commit comments

Comments
 (0)