wharmby         Tue Jan 20 22:54:42 2009 UTC

  Added files:                 (Branch: PHP_5_2)
    /php-src/ext/standard/tests/strings stripcslashes_variation1.phpt 
                                        stripcslashes_error.phpt 
                                        stripcslashes_basic.phpt 

  Modified files:              
    /php-src/ext/standard/tests/strings strip_tags_variation1.phpt 
                                        stripslashes_variation1.phpt 
                                        strip_tags_variation3.phpt 
  Log:
  New stripcslashes() tests. Tested on Window, Linux and Linux 64 bit
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/strip_tags_variation1.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u
Index: php-src/ext/standard/tests/strings/strip_tags_variation1.phpt
diff -u php-src/ext/standard/tests/strings/strip_tags_variation1.phpt:1.1.4.2 
php-src/ext/standard/tests/strings/strip_tags_variation1.phpt:1.1.4.3
--- php-src/ext/standard/tests/strings/strip_tags_variation1.phpt:1.1.4.2       
Tue Oct  9 12:47:00 2007
+++ php-src/ext/standard/tests/strings/strip_tags_variation1.phpt       Tue Jan 
20 22:54:41 2009
@@ -32,51 +32,51 @@
 //array of values to iterate over
 $values = array(
 
-      // int data
-      0,
-      1,
-      12345,
-      -2345,
-
-      // float data
-      10.5,
-      -10.5,
-      10.5e10,
-      10.6E-10,
-      .5,
-
-      // array data
-      array(),
-      array(0),
-      array(1),
-      array(1, 2),
-      array('color' => 'red', 'item' => 'pen'),
-
-      // null data
-      NULL,
-      null,
-
-      // boolean data
-      true,
-      false,
-      TRUE,
-      FALSE,
-
-      // empty data
-      "",
-      '',
-
-      // object data
-      new classA(),
-
-      // undefined data
-      @$undefined_var,
-
-      // unset data
-      @$unset_var,
-
-      // resource variable
-      $fp
+             // int data
+/*1*/     0,
+             1,
+             12345,
+             -2345,
+       
+             // float data
+/*5*/      10.5,
+             -10.5,
+             10.1234567e10,
+             10.7654321E-10,
+             .5,
+       
+             // array data
+/*10*/    array(),
+             array(0),
+             array(1),
+             array(1, 2),
+             array('color' => 'red', 'item' => 'pen'),
+       
+             // null data
+/*15*/    NULL,
+             null,
+       
+             // boolean data
+/*17*/    true,
+             false,
+             TRUE,
+             FALSE,
+       
+             // empty data
+/*21*/    "",
+             '',
+       
+             // object data
+/*23*/    new classA(),
+       
+             // undefined data
+/*24*/    @$undefined_var,
+       
+             // unset data
+/*25*/    @$unset_var,
+       
+             // resource variable
+/*26*/    $fp
 
 );
 
@@ -88,8 +88,8 @@
       $iterator++;
 };
 
-echo "Done";
 ?>
+===DONE===
 --EXPECTF--
 *** Testing strip_tags() : usage variations ***
 -- Iteration 1 --
@@ -105,9 +105,9 @@
 -- Iteration 6 --
 string(5) "-10.5"
 -- Iteration 7 --
-string(12) "105000000000"
+string(12) "101234567000"
 -- Iteration 8 --
-string(7) "1.06E-9"
+string(13) "1.07654321E-9"
 -- Iteration 9 --
 string(3) "0.5"
 -- Iteration 10 --
@@ -154,4 +154,4 @@
 string(0) ""
 -- Iteration 26 --
 string(%d) "Resource id #%d"
-Done
+===DONE===
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/stripslashes_variation1.phpt?r1=1.1.2.2&r2=1.1.2.3&diff_format=u
Index: php-src/ext/standard/tests/strings/stripslashes_variation1.phpt
diff -u php-src/ext/standard/tests/strings/stripslashes_variation1.phpt:1.1.2.2 
php-src/ext/standard/tests/strings/stripslashes_variation1.phpt:1.1.2.3
--- php-src/ext/standard/tests/strings/stripslashes_variation1.phpt:1.1.2.2     
Tue Oct  9 10:56:45 2007
+++ php-src/ext/standard/tests/strings/stripslashes_variation1.phpt     Tue Jan 
20 22:54:41 2009
@@ -31,51 +31,51 @@
 // array with different values
 $values =  array (
 
-  // integer values
-  0,
-  1,
-  12345,
-  -2345,
-
-  // float values
-  10.5,
-  -10.5,
-  10.5e10,
-  10.6E-10,
-  .5,
-
-  // array values
-  array(),
-  array(0),
-  array(1),
-  array(1, 2),
-  array('color' => 'red', 'item' => 'pen'),
-
-  // boolean values
-  true,
-  false,
-  TRUE,
-  FALSE,
-
-  // empty string
-  "",
-  '',
-
-  // undefined variable
-  $undefined_var,
-
-  // unset variable
-  $unset_var,
-  
-  // objects
-  new sample(),
-
-  // resource
-  $file_handle,
-
-  // NULL values 
-  NULL,
-  null
+                 // integer values
+/*1*/    0,
+                 1,
+                 12345,
+                 -2345,
+               
+                 // float values
+/*5*/    10.5,
+                 -10.5,
+                 10.1234567e10,
+                 10.7654321E-10,
+                 .5,
+               
+                 // array values
+/*10*/   array(),
+                 array(0),
+                 array(1),
+                 array(1, 2),
+                 array('color' => 'red', 'item' => 'pen'),
+               
+                 // boolean values
+/*15*/   true,
+                 false,
+                 TRUE,
+                 FALSE,
+               
+                 // empty string
+/*19*/   "",
+                 '',
+               
+                 // undefined variable
+/*21*/   $undefined_var,
+               
+                 // unset variable
+/*22*/   $unset_var,
+                 
+                 // objects
+/*23*/   new sample(),
+               
+                 // resource
+/*24*/   $file_handle,
+                
+                // null values
+/*25*/   NULL,
+                 null
 );
 
 
@@ -95,8 +95,8 @@
 // closing the file
 fclose($file_handle);
 
-echo "Done\n";
 ?>
+===DONE===
 --EXPECTF--
 *** Testing stripslashes() : with non-string type argument ***
 
@@ -118,9 +118,9 @@
 -- Iteration 6 --
 string(5) "-10.5"
 -- Iteration 7 --
-string(12) "105000000000"
+string(12) "101234567000"
 -- Iteration 8 --
-string(7) "1.06E-9"
+string(13) "1.07654321E-9"
 -- Iteration 9 --
 string(3) "0.5"
 -- Iteration 10 --
@@ -167,4 +167,4 @@
 string(0) ""
 -- Iteration 26 --
 string(0) ""
-Done
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/strip_tags_variation3.phpt?r1=1.1.4.2&r2=1.1.4.3&diff_format=u
Index: php-src/ext/standard/tests/strings/strip_tags_variation3.phpt
diff -u php-src/ext/standard/tests/strings/strip_tags_variation3.phpt:1.1.4.2 
php-src/ext/standard/tests/strings/strip_tags_variation3.phpt:1.1.4.3
--- php-src/ext/standard/tests/strings/strip_tags_variation3.phpt:1.1.4.2       
Tue Oct  9 12:47:00 2007
+++ php-src/ext/standard/tests/strings/strip_tags_variation3.phpt       Tue Jan 
20 22:54:41 2009
@@ -32,51 +32,51 @@
 //array of values to iterate over
 $values = array(
 
-      // int data
-      0,
-      1,
-      12345,
-      -2345,
-
-      // float data
-      10.5,
-      -10.5,
-      10.5e10,
-      10.6E-10,
-      .5,
-
-      // array data
-      array(),
-      array(0),
-      array(1),
-      array(1, 2),
-      array('color' => 'red', 'item' => 'pen'),
-
-      // null data
-      NULL,
-      null,
-
-      // boolean data
-      true,
-      false,
-      TRUE,
-      FALSE,
-
-      // empty data
-      "",
-      '',
-
-      // object data
-      new classA(),
-
-      // undefined data
-      @$undefined_var,
-
-      // unset data
-      @$unset_var,
-
-      // resource variable
-      $fp
+             // int data
+/*1*/     0,
+             1,
+             12345,
+             -2345,
+       
+             // float data
+/*5*/      10.5,
+             -10.5,
+             10.1234567e10,
+             10.7654321E-10,
+             .5,
+       
+             // array data
+/*10*/    array(),
+             array(0),
+             array(1),
+             array(1, 2),
+             array('color' => 'red', 'item' => 'pen'),
+       
+             // null data
+/*15*/    NULL,
+             null,
+       
+             // boolean data
+/*17*/    true,
+             false,
+             TRUE,
+             FALSE,
+       
+             // empty data
+/*21*/    "",
+             '',
+       
+             // object data
+/*23*/    new classA(),
+       
+             // undefined data
+/*24*/    @$undefined_var,
+       
+             // unset data
+/*25*/    @$unset_var,
+       
+             // resource variable
+/*26*/    $fp
 
 );
 
@@ -88,8 +88,8 @@
       $iterator++;
 };
 
-echo "Done";
 ?>
+===DONE===
 --EXPECTF--
 *** Testing strip_tags() : usage variations ***
 -- Iteration 1 --
@@ -105,9 +105,9 @@
 -- Iteration 6 --
 string(5) "-10.5"
 -- Iteration 7 --
-string(12) "105000000000"
+string(12) "101234567000"
 -- Iteration 8 --
-string(7) "1.06E-9"
+string(13) "1.07654321E-9"
 -- Iteration 9 --
 string(3) "0.5"
 -- Iteration 10 --
@@ -164,4 +164,4 @@
 string(0) ""
 -- Iteration 26 --
 string(%d) "Resource id #%d"
-Done
+===DONE===
\ No newline at end of file

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/stripcslashes_variation1.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/strings/stripcslashes_variation1.phpt
+++ php-src/ext/standard/tests/strings/stripcslashes_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/stripcslashes_error.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/strings/stripcslashes_error.phpt
+++ php-src/ext/standard/tests/strings/stripcslashes_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/stripcslashes_basic.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/strings/stripcslashes_basic.phpt
+++ php-src/ext/standard/tests/strings/stripcslashes_basic.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to