Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
RegexTextDirection
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3/**
4 * @author: Doug Wilbourne (dougwilbourne@gmail.com)
5 */
6declare(strict_types=1);
7
8namespace pvc\html\val_tester\regex;
9
10use pvc\regex\Regex;
11
12/**
13 * Class RegexTextDirection
14 */
15class RegexTextDirection extends Regex
16{
17    public function __construct()
18    {
19        $pattern = '/^ltr|rtl|auto$/i';
20        $label = 'text direction';
21        $this->setPattern($pattern);
22        $this->setLabel($label);
23    }
24}