• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wol-soft / php-json-schema-model-generator-production / 17862408584

19 Sep 2025 03:15PM UTC coverage: 18.962% (+5.0%) from 13.926%
17862408584

push

github

web-flow
Merge pull request #12 from wol-soft/BuilderClassPostProcessor

BuilderInterface

3 of 3 new or added lines in 1 file covered. (100.0%)

99 existing lines in 36 files now uncovered.

106 of 559 relevant lines covered (18.96%)

0.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Format/FormatValidatorFromRegEx.php
1
<?php
2

3
declare(strict_types = 1);
4

5
namespace PHPModelGenerator\Format;
6

7
/**
8
 * Class FormatFromRegEx
9
 *
10
 * @package PHPModelGenerator\Format
11
 */
12
class FormatValidatorFromRegEx implements FormatValidatorInterface
13
{
14
    private $pattern;
15

UNCOV
16
    public function __construct(string $pattern)
×
17
    {
18
        $this->pattern = $pattern;
×
19
    }
20

21
    /**
22
     * @return string
23
     */
UNCOV
24
    public function getPattern(): string
×
25
    {
26
        return $this->pattern;
×
27
    }
28

UNCOV
29
    public static function validate(string $input, string $pattern = ''): bool
×
30
    {
31
        return preg_match($pattern, $input) === 1;
×
32
    }
33
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc