Files
oficial/app/tests/performance/HomeTest.php
Juan Pablo Vial bae5c1740d No mas require
2025-04-29 23:19:05 -04:00

22 lines
444 B
PHP

<?php
namespace ProVM\Performance;
use GuzzleHttp\Client;
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);
}
}