On Mon, Sep 26, 2022 at 2:46 AM Andreas Heigl <[email protected]> wrote: > > while we have by now > multiple Clock-implementations to ease testing with Dates and times > there is not really a way currently to ease testing with randomnes. > > PHP itself provides the random_int and random_bytes functions and some > libraries provide additional sources of randomnes. But there is no way > of being able to "assert a certain random value" which makes functions > requiring randomness hard to test. > > ANd so far I have not found any interoperability standard in that > direction in the PHP-Ecosystem. There are some libraries (not a huge > number) but I did not find an interface for interoperability and better > testing.
Isn't it already covered natively by https://wiki.php.net/rfc/rng_extension? -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CA%2BhqhpeUz3WsRCFgN1oh0-7yRNGGFkL_k19rMy-PfudoQ2T_AA%40mail.gmail.com.
