mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-08 21:29:39 +00:00
24 lines
558 B
PHP
24 lines
558 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Testcontainers\Tests\Integration;
|
|
|
|
use Testcontainers\Container\GenericContainer;
|
|
|
|
class GenericContainerTest extends ContainerTestCase
|
|
{
|
|
public static function setUpBeforeClass(): void
|
|
{
|
|
self::$container = (new GenericContainer('alpine'))
|
|
->withCommand(['tail', '-f', '/dev/null'])
|
|
->start();
|
|
}
|
|
|
|
public function testExec(): void
|
|
{
|
|
$actual = self::$container->exec(['echo', 'testcontainers']);
|
|
self::assertSame('testcontainers', $actual);
|
|
}
|
|
}
|