namespace ; use Symfony\Component\Panther\PantherTestCase; class extends PantherTestCase { public function testSomething(): void { $client = static::createPantherClient(); $crawler = $client->request('GET', '/'); $this->assertSelectorTextContains('h1', 'Hello World'); $this->assertStringContainsString('Hello World', $crawler->filter('h1')->text()); } }