Current File : //opt/RZphp56/includes/test/Var_Dump/toString-resource.phpt
--TEST--
toString() : resource.
--FILE--
<?php

error_reporting(E_ALL);
require_once 'Var_Dump.php';
$vd = new Var_Dump(array('display_mode' => 'Text'));

if ($handler = opendir('/tmp/')) {
    echo $vd->toString($handler);
    closedir($handler);
}

?>
--EXPECTREGEX--
^resource\(stream\)\s[0-9]+$