Mock nested PHP default functions in PHPUnit tests

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • PHP-Mock: mocking built-in PHP functions

    Mock built-in PHP functions (e.g. time(), exec() or rand())

  • https://github.com/php-mock/php-mock - a testing library which mocks non deterministic built-in PHP functions;

  • php-mock-phpunit

    Mock built-in PHP functions (e.g. time() or rand()) in PHPUnit.

  • https://github.com/php-mock/php-mock-phpunit - integrates the function mock library PHP-Mock with PHPUnit;

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts