Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
chore(dev): Project setup
Browse files Browse the repository at this point in the history
  • Loading branch information
leocavalcante committed Dec 13, 2023
1 parent 7201b1c commit 95c83c4
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ContainerInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

namespace Testcontainers;

interface ContainerInterface
{
public function start(): string;
}
13 changes: 13 additions & 0 deletions src/GenericContainer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

declare(strict_types=1);

namespace Testcontainers;

class GenericContainer implements ContainerInterface
{
public function start(): string
{
return 'Hello, World!';
}
}
17 changes: 17 additions & 0 deletions tests/GenericContainerTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace Test\Testcontainers;

use PHPUnit\Framework\TestCase;
use Testcontainers\GenericContainer;

final class GenericContainerTest extends TestCase
{
public function testStart(): void
{
$container = new GenericContainer();
$this->assertSame('Hello, World!', $container->start());
}
}

0 comments on commit 95c83c4

Please sign in to comment.