addRule(new IframeTitle()); $violations = $scanner->scan('
'); $this->assertCount(1, $violations); $this->assertSame('WCAG_4_1_2_IFRAME_TITLE', $violations[0]->ruleId); } public function testPassesIframeWithTitle(): void { $scanner = new Scanner(); $scanner->addRule(new IframeTitle()); $violations = $scanner->scan(''); $this->assertCount(0, $violations); } public function testPassesIframeWithAriaLabel(): void { $scanner = new Scanner(); $scanner->addRule(new IframeTitle()); $violations = $scanner->scan(''); $this->assertCount(0, $violations); } public function testPassesAriaHiddenIframe(): void { $scanner = new Scanner(); $scanner->addRule(new IframeTitle()); $violations = $scanner->scan(''); $this->assertCount(0, $violations); } }