Skip to content

Commit

Permalink
Merge branch 'PHP-5.6'
Browse files Browse the repository at this point in the history
* PHP-5.6:
  adding several other testing scenarios of code without coverage in stripcslashes function
  • Loading branch information
cmb69 committed Jun 29, 2015
2 parents df8f3a0 + a8d61ab commit a378322
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ext/standard/tests/strings/stripcslashes_basic.phpt
Expand Up @@ -12,17 +12,29 @@ Test stripcslashes() function : basic functionality
echo "*** Testing stripcslashes() : basic functionality ***\n";
var_dump(stripcslashes('\H\e\l\l\o \W\or\l\d'));
var_dump(stripcslashes('Hello World\\r\\n'));
var_dump(stripcslashes('\\\Hello World'));
var_dump(stripcslashes('\x48\x65\x6c\x6c\x6f \x57\x6f\x72\x6c\x64'));
var_dump(stripcslashes('\110\145\154\154\157 \127\157\162\154\144'));

var_dump(bin2hex(stripcslashes('\\a')));
var_dump(bin2hex(stripcslashes('\\b')));
var_dump(bin2hex(stripcslashes('\\f')));
var_dump(bin2hex(stripcslashes('\\t')));
var_dump(bin2hex(stripcslashes('\\v')));
?>
===DONE===
--EXPECT--
*** Testing stripcslashes() : basic functionality ***
string(11) "Hello World"
string(13) "Hello World
"
string(12) "\Hello World"
string(11) "Hello World"
string(11) "Hello World"
string(2) "07"
string(2) "08"
string(2) "0c"
string(2) "09"
string(2) "0b"
===DONE===

0 comments on commit a378322

Please sign in to comment.