Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
NothingMatcher
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 generateMatches
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2declare( strict_types = 1 );
3
4/**
5 * @file
6 * @license https://opensource.org/licenses/Apache-2.0 Apache-2.0
7 */
8
9namespace Wikimedia\CSS\Grammar;
10
11use EmptyIterator;
12use Wikimedia\CSS\Objects\ComponentValueList;
13
14/**
15 * Matcher that matches nothing
16 */
17class NothingMatcher extends Matcher {
18    /** @inheritDoc */
19    protected function generateMatches( ComponentValueList $values, $start, array $options ) {
20        return new EmptyIterator;
21    }
22}