Completed
Push — master ( a7506b...5416c6 )
by Dmitry
27:56 queued 12:44
created

CountHelper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A countElements() 0 6 1
1
<?php
2
3
namespace hipanel\tests\_support\Helper;
4
5
6
class CountHelper extends \Codeception\Module
7
{
8
    /**
9
     * @param string $cssOrXpath
10
     * @return int
11
     * @throws \Codeception\Exception\ModuleException
12
     */
13
    public function countElements(string $cssOrXpath): int
14
    {
15
        $I = $this->getModule('WebDriver');
16
17
        return count($I->grabMultiple($cssOrXpath));
18
    }
19
}
20