buildReportData($violations, 'YakNet Portal', '2.0.0', 'YakNet QA'); $this->assertSame('YakNet Portal', $data['product_name']); $this->assertSame('Does Not Support', $data['criteria']['1.1.1']['conformance']); $this->assertSame('Partially Supports', $data['criteria']['2.5.8']['conformance']); $this->assertSame('Supports', $data['criteria']['3.1.1']['conformance']); $this->assertSame('Not Evaluated', $data['criteria']['1.4.10']['conformance']); $markdown = $generator->renderMarkdown($violations, 'YakNet Portal', '2.0.0'); $this->assertStringContainsString('# Accessibility Conformance Report (VPAT 2.5)', $markdown); $this->assertStringContainsString('Does Not Support', $markdown); $this->assertStringContainsString('YakNet Accessibility Console', $markdown); $html = $generator->renderHtml($violations, 'YakNet Portal', '2.0.0'); $this->assertStringContainsString('VPAT 2.5 Accessibility Conformance Report', $html); $this->assertStringContainsString('Partially Supports', $html); $json = $generator->renderJson($violations, 'YakNet Portal', '2.0.0'); $decoded = json_decode($json, true); $this->assertIsArray($decoded); $this->assertSame(2, $decoded['total_violations']); } }