Skip to content

Instantly share code, notes, and snippets.

@CatoTH
CatoTH / AccessibilityValidator.php
Created August 24, 2015 05:41
A helper class for Codeception that allows automated accessility checks (WCAG 2.0, Section508) using the pa11y command line tool during acceptance testing. It uses local binaries and can therefore be run offline.
<?php
/**
* A helper class for Codeception (http://codeception.com/) that allows automated accessility checks
* (WCAG 2.0, Section508) using the pa11y (http://pa11y.org/) command line tool
* during acceptance testing.
* It uses local binaries and can therefore be run offline.
*
*
* Requirements: