for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace MinepicTests\Http\Controllers;
use MinepicTests\TestCase;
class WebsiteControllerTest extends TestCase
{
/** @test */
public function shouldDisplayHomePage(): void
$response = $this->get('/');
$response->assertResponseStatus(200);
}
public function shouldDisplayUserInfoPage(): void
$users = ['_Cyb3r', 'hackLover', 'RaynLegends', 'xPeppe'];
$user = \array_rand($users);
$response = $this->get('/user/'.$users[$user]);
public function shouldDisplay404ForUnExistentUser(): void
$response = $this->get('/user/IHopeThisUserDoesNotExists');
$response->assertResponseStatus(404);