mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-08 22:29:46 +00:00
22 lines
431 B
PHP
22 lines
431 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Testcontainers\Tests\Integration;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use Testcontainers\Container\StartedTestContainer;
|
|
|
|
abstract class ContainerTestCase extends TestCase
|
|
{
|
|
protected StartedTestContainer $container;
|
|
|
|
protected function tearDown(): void
|
|
{
|
|
if (isset($this->container)) {
|
|
$this->container->stop();
|
|
}
|
|
parent::tearDown();
|
|
}
|
|
}
|