need `ftell()` to return false for unittest

This page summarizes the projects mentioned and recommended in the original post on /r/PHPhelp

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • PHP-Mock: mocking built-in PHP functions

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

  • If you remove the \ from ftell($resource), you will be able to mock in in your unit tests. I created a mock function of it using a package called PHPMock. My unit test ended up looking like something like this:

  • 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

  • Mock nested PHP default functions in PHPUnit tests

    2 projects | dev.to | 28 Jan 2023
  • how to fake a response of an external server/api for a laravel feature test?

    2 projects | /r/laravel | 25 Jul 2022
  • PHP: testing, "Attention please!"

    1 project | dev.to | 1 May 2024
  • Wordpress tests with Pest and WP Setup

    1 project | dev.to | 18 Apr 2024
  • I Write Tests in Go

    1 project | news.ycombinator.com | 10 Apr 2024