com php-src: Added more tests to improve function coverage: ext/standard/tests/strings/hebrev_variation1.phpt

From: Date: Fri, 03 Jul 2015 01:02:40 +0000
Subject: com php-src: Added more tests to improve function coverage: ext/standard/tests/strings/hebrev_variation1.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87718@lists.php.net to get a copy of this message
Commit: 48d71af7ed0cac5b0a4f112703e81ec72715aa74 Author: Edgar R. Sandi <edgar.r.sandi@gmail.com> Mon, 29 Jun 2015 22:02:19 -0300 Committer: Christoph M. Becker <cmb@php.net> Fri, 3 Jul 2015 03:02:40 +0200 Parents: 616661e0f8368365f50fe9aea7606782aa7552dc Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=48d71af7ed0cac5b0a4f112703e81ec72715aa74 Log: Added more tests to improve function coverage Changed paths: M ext/standard/tests/strings/hebrev_variation1.phpt Diff: diff --git a/ext/standard/tests/strings/hebrev_variation1.phpt b/ext/standard/tests/strings/hebrev_variation1.phpt index 210e41e..23a4c23 100644 --- a/ext/standard/tests/strings/hebrev_variation1.phpt +++ b/ext/standard/tests/strings/hebrev_variation1.phpt @@ -65,7 +65,31 @@ $texts = array ( /*21*/ @$undefined_var, // unset variable -/*22*/ @$unset_var +/*22*/ @$unset_var, + + // text with parentheses + 'text with parentheses (', + 'text with parentheses )', + + // text with brackets + 'text with bracket [', + 'text with bracket ]', + + // text with curly brackets + 'text with curly bracket {', + 'text with curly bracket }', + + // text with backslash escape + 'text with backslash escape \\', + + // text with a slash char + 'text with a slash char /', + + // text with a greater than char + 'text with a greater than char >', + + // text with a less than char + 'text with a less than char <' ); // loop through with each element of the $texts array to test hebrev() function @@ -135,4 +159,24 @@ NULL bool(false) -- Iteration 22 -- bool(false) -===DONE=== \ No newline at end of file +-- Iteration 23 -- +string(23) ") text with parentheses" +-- Iteration 24 -- +string(23) "( text with parentheses" +-- Iteration 25 -- +string(19) "] text with bracket" +-- Iteration 26 -- +string(19) "[ text with bracket" +-- Iteration 27 -- +string(25) "} text with curly bracket" +-- Iteration 28 -- +string(25) "{ text with curly bracket" +-- Iteration 29 -- +string(28) "/ text with backslash escape" +-- Iteration 30 -- +string(24) "text with a slash char /" +-- Iteration 31 -- +string(31) "< text with a greater than char" +-- Iteration 32 -- +string(28) "> text with a less than char" +===DONE===

« previous php.cvs (#87718) next »