Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
25.00% covered (danger)
25.00%
1 / 4
25.00% covered (danger)
25.00%
1 / 4
CRAP
0.00% covered (danger)
0.00%
0 / 1
MinOccursRule
25.00% covered (danger)
25.00%
1 / 4
25.00% covered (danger)
25.00%
1 / 4
10.75
0.00% covered (danger)
0.00%
0 / 1
 name
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 symbol
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 testConditions
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 exceptionMessageOnTestFailure
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3declare(strict_types=1);
4
5namespace WsdlToPhp\PackageGenerator\File\Validation;
6
7/**
8 * @see https://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#p-min_occurs
9 * This class is intended to show that this cas has not been forgotten. It simply isn't used as the minimum occurrences count can't be checked.
10 * Checking the minimum occurrences count would be meaningful just before the request is sent which is not done currently.
11 */
12class MinOccursRule extends AbstractMinMaxRule
13{
14    public function name(): string
15    {
16        return 'minOccurs';
17    }
18
19    public function symbol(): string
20    {
21        return '';
22    }
23
24    final public function testConditions(string $parameterName, $value, bool $itemType = false): string
25    {
26        return '';
27    }
28
29    final public function exceptionMessageOnTestFailure(string $parameterName, $value, bool $itemType = false): string
30    {
31        return '';
32    }
33}