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
RegexVisibleCharsPlusHorizontalWhitespace
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 * @author: Doug Wilbourne (dougwilbourne@gmail.com)
4 * @version 1.0
5 */
6
7declare(strict_types=1);
8
9namespace pvc\regex\text_ascii;
10
11use pvc\regex\Regex;
12
13/**
14 * Class RegexVisibleCharsPlusHorizontalWhitespace
15 * @package pvc\regex\text_ascii
16 */
17class RegexVisibleCharsPlusHorizontalWhitespace extends Regex
18{
19    public function __construct()
20    {
21        $label = 'visible (printable) chars plus horizontal whitespace chars';
22        $pattern = '/^[ -~\h]*$/';
23        $this->setPattern($pattern);
24        $this->setLabel($label);
25    }
26}