public static function printVerificationData() { $str = ''; $str .= ". . . . . . . . . . . . . . . . . . . ."; $str .= '<br />' . "\n" . "Duration: "; $str .= microtime(1) - self::$start_time; $str .= '<br />' . "\n"; if (isset($_SESSION)) { $str .= RealEstateAgency_TestUtil::hash2string($_SESSION, 'Session'); } if (isset($_COOKIE)) { $str .= RealEstateAgency_TestUtil::hash2string($_COOKIE, 'Cookies'); } if (isset($_GET)) { $str .= RealEstateAgency_TestUtil::hash2string($_GET, 'Get data'); } if (isset($_POST)) { $str .= RealEstateAgency_TestUtil::hash2string($_POST, 'Post data'); } if (isset($_SERVER)) { // $str .= RealEstateAgency_TestUtil::hash2string($_SERVER, 'Server'); } echo $str; }
public static function test() { RealEstateAgency_TestUtil::useProfiler(); // require_once 'some file for test'; RealEstateAgency_TestUtil::printProfilerData(); }