source: src/router/php7/ext/date/tests/bug73837.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 362 bytes
Line 
1--TEST--
2Bug #73837: Milliseconds in DateTime()
3--FILE--
4<?php
5$collect = [];
6
7for ( $i = 0; $i < 1000; $i++ )
8{
9        $a = new DateTime();
10        $key = "s" . $a->format( "u" );
11        $collect[$key] = true;
12}
13
14var_dump($n = count( $collect ));
15echo ( $n > 800 ) ? "microseconds differ\n" : "microseconds do not differ enough ($n)\n";
16?>
17--EXPECTF--
18int(%d)
19microseconds differ
Note: See TracBrowser for help on using the repository browser.