A new start
All checks were successful
/ ls (push) Successful in 25s

This commit is contained in:
lubiana 2024-06-10 19:16:55 +02:00
commit a32bf4ce7d
33 changed files with 7427 additions and 0 deletions

View file

@ -0,0 +1,17 @@
<?php declare(strict_types=1);
namespace App\Tests\Controler;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
final class HomeTest extends WebTestCase
{
public function testSomething(): void
{
$client = static::createClient();
$client->request('GET', '/');
$this->assertResponseIsSuccessful();
$this->assertSelectorTextContains('h1', 'Halloo');
}
}

13
tests/bootstrap.php Normal file
View file

@ -0,0 +1,13 @@
<?php declare(strict_types=1);
use Symfony\Component\Dotenv\Dotenv;
require dirname(__DIR__) . '/vendor/autoload.php';
if (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv)->bootEnv(dirname(__DIR__) . '/.env');
}
if ($_SERVER['APP_DEBUG']) {
umask(0o000);
}