Files
oficial/app/tests/performance/HomeTest.php

23 lines
486 B
PHP
Raw Normal View History

2024-03-20 23:06:38 -03:00
<?php
namespace ProVM\Performance;
use PHPUnit\Framework;
2025-04-29 21:42:57 -04:00
use GuzzleHttp\Client;
2024-03-20 23:06:38 -03:00
class HomeTest extends Framework\TestCase
{
2025-04-29 21:42:57 -04:00
protected Client $client;
protected function setUp(): void
{
$this->client = new Client(['base_uri' => $_ENV['APP_URL']]);
}
2024-03-20 23:06:38 -03:00
public function testLoad(): void
{
$start = microtime(true);
2025-04-29 21:42:57 -04:00
$this->client->get('/');
2024-03-20 23:06:38 -03:00
$end = microtime(true);
$this->assertLessThanOrEqual(1000, $end - $start);
}
}