Skip to content
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

Add TestContainers Support #20

Open
hantsy opened this issue Jun 7, 2024 · 2 comments
Open

Add TestContainers Support #20

hantsy opened this issue Jun 7, 2024 · 2 comments

Comments

@hantsy
Copy link

hantsy commented Jun 7, 2024

Nowdays Testcontainers is very popular for writing integration test for database, etc. on local machines.

TestContainers officially support a collection of programming languages, but lacks PHP support.

Check here: https://testcontainers.com/getting-started/

There is a PHP implementation from the community, https://github.com/shyim/testcontainer

Hope there is official bundle to integrate Testscontainers(running Docker on local machine) and Testcontainers cloud APIs(running Docker containers remotely).

@ciaranmcnulty
Copy link

There are a few attempts at porting TestContainers to PHP but none are done or 'official' yet.

I'm unclear what Symfony-specific support would look like?

@hantsy
Copy link
Author

hantsy commented Jun 9, 2024

I have tried to shyim/testcontainer in my Symfony sample project, https://github.com/hantsy/symfony-rest-sample/pull/387/files, and just used the PostgresContainer, it lacks a lot of features that provided in TestContainers Java implementation.

For example, the following features I used frequently in testconainters Java.

  1. print pull and starting log.
  2. Random ports exposed.
  3. copy init.sql to docker container etc.

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

No branches or pull requests

2 participants