<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
savvywombat / laravel-assert-selector-contains example snippets
namespace Tests\Feature;
use SavvyWombat\LaravelAssertSelectorContains\AssertsWithSelectors;
use Tests\TestCase;
class ExampleTest extends TestCase
{
use AssertsWithSelectors;
public function testDocumentTitleIsCorrect(): void
{
$response = $this->get('/');
$response->assertSelectorContains('title', 'Welcome');
}
}