mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-08 16:29:29 +00:00
refactor Container to GenericContainer for better align to other Testcontainers language packages
This commit is contained in:
@@ -17,9 +17,9 @@ composer req --dev testcontainers/testcontainers
|
||||
```php
|
||||
<?php
|
||||
|
||||
use Testcontainers\Container\Container;
|
||||
use Testcontainers\Container\GenericContainer;
|
||||
|
||||
$container = Container::make('nginx:alpine');
|
||||
$container = GenericContainer::make('nginx:alpine');
|
||||
|
||||
// set an environment variable
|
||||
$container->withEnvironment('name', 'var');
|
||||
|
||||
Reference in New Issue
Block a user