-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
ACK_WAITINGissue to be reviewed and confirmedissue to be reviewed and confirmedUPDATE_TPissue is about updating a testability patternissue is about updating a testability pattern
Description
Testability pattern
Problem statement
There is not really a problem with the current pattern, this is just a suggestion for a new instance.
According to this there is the function ob_get_clean(), that executes executes both ob_get_contents() and ob_end_clean().
That function is not yet captured by this pattern.
Proposed changes
Introduce a new instance with the following code:
$a = $_GET["p1"]; // source
ob_start();
echo $a;
$x = ob_get_clean();
echo $x; // sinkIt is very similar to the first instance, but it only uses one function instead of two.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ACK_WAITINGissue to be reviewed and confirmedissue to be reviewed and confirmedUPDATE_TPissue is about updating a testability patternissue is about updating a testability pattern