Annotation of embedaddon/php/ext/posix/tests/posix_times_basic.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test posix_times() function : basic functionality 
        !             3: --SKIPIF--
        !             4: <?php 
        !             5:        if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); 
        !             6: ?>
        !             7: --FILE--
        !             8: <?php 
        !             9:   echo "Basic test of POSIX times function\n"; 
        !            10:        
        !            11:   $times = posix_times();
        !            12:   
        !            13:   var_dump($times); 
        !            14:   
        !            15:   
        !            16:   if ($times == FALSE) {
        !            17:        $errno= posix_get_last_error();
        !            18:        var_dump(posix_strerror($errno)); 
        !            19:   }
        !            20:   
        !            21: ?>
        !            22: ===DONE====
        !            23: --EXPECTF--
        !            24: Basic test of POSIX times function
        !            25: array(5) {
        !            26:   ["ticks"]=>
        !            27:   int(%d)
        !            28:   ["utime"]=>
        !            29:   int(%d)
        !            30:   ["stime"]=>
        !            31:   int(%d)
        !            32:   ["cutime"]=>
        !            33:   int(%d)
        !            34:   ["cstime"]=>
        !            35:   int(%d)
        !            36: }
        !            37: ===DONE====

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