Files
oficial/app/tests/performance/HomeTest.php
Juan Pablo Vial dd82ac6bb7 Tests Home
2025-04-29 21:42:57 -04:00

23 lines
486 B
PHP

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