Files
oficial/app/tests/performance/HomeTest.php
aldarien 307f2ac7d7 feature/cierres (#25)
Varios cambios

Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl>
Reviewed-on: #25
2025-07-22 13:18:00 +00:00

23 lines
485 B
PHP

<?php
namespace Tests\Performance;
use GuzzleHttp\Client;
use Tests\Extension\AbstractPerformance;
class HomeTest extends AbstractPerformance
{
protected Client $client;
protected function setUp(): void
{
$this->client = new Client(['base_uri' => $_ENV['APP_URL']]);
}
public function testLoad(): void
{
$this->start();
$this->client->get('/');
$time = $this->end();
$this->assertLessThanOrEqual(1000, $time);
}
}