Skip to content

Feature: Drop PHP 8.0 remove unit tests for Pgsql #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: feature/phpstan
Choose a base branch
from

Conversation

vgreb
Copy link
Contributor

@vgreb vgreb commented Jan 20, 2025

Q A
Bug fix? no
New feature? no
BC breaks? yes
Deprecations? no
Tests pass? yes
Licence Apache-2.0
Fixed tickets

Class PgSQL\Connection and PgSQL\Result have been introduced in PHP 8.1. Since these classes are not mockable, I propose to remove unit tests for CCMBenchmark\Ting\Driver\Pgsql\Driver and CCMBenchmark\Ting\Driver\Pgsql\Result.

If we still want to unit tests theses classes, we'll have to introduce a PostgreSQL database to explicitly initiate a connection to avoid "Uncaught Error: No PostgreSQL connection opened yet" error (cf. https://github.com/ccmbenchmark/ting/actions/runs/12866866560/job/35870314462).

@xavierleune What are your thoughts on this matter ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant