Annotation of embedaddon/php/ext/standard/tests/general_functions/proc_nice_variation2.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test function proc_nice() by substituting argument 1 with boolean values.
                      3: --CREDITS--
                      4: Italian PHP TestFest 2009 Cesena 19-20-21 june
                      5: Fabio Fabbrucci (fabbrucci@grupporetina.com)
                      6: Michele Orselli (mo@ideato.it)
                      7: Simone Gentili (sensorario@gmail.com)
                      8: --SKIPIF--
                      9: <?php
                     10: if(!function_exists('proc_nice')) die("skip. proc_nice not available ");
                     11: ?>
                     12: --FILE--
                     13: <?php
                     14: 
                     15: 
                     16: echo "*** Test substituting argument 1 with boolean values ***\n";
                     17: 
                     18: 
                     19: 
                     20: $variation_array = array(
                     21:   'lowercase true' => true,
                     22:   'lowercase false' =>false,
                     23:   'uppercase TRUE' =>TRUE,
                     24:   'uppercase FALSE' =>FALSE,
                     25:   );
                     26: 
                     27: 
                     28: foreach ( $variation_array as $var ) {
                     29:   var_dump(proc_nice( $var  ) );
                     30: }
                     31: ?>
                     32: --EXPECTF--
                     33: *** Test substituting argument 1 with boolean values ***
                     34: bool(true)
                     35: bool(true)
                     36: bool(true)
                     37: bool(true)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>