23 lines
486 B
PHP
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);
|
|
}
|
|
}
|