Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make imagebmp_basic.phpt more resilient (GH-17265)
Checking for the exact output of most image formats is brittle; even an otherwise change to some header field causes the output to change, even if the image would be visually identical. Checking for an (MD5) hash is even worse, since if the tests fails, we have no clue for what reason. Thus we compare the generated image against an pre-generated PNG, using a test helper which will output a simple image diff in case of test failure.
- Loading branch information