Completed
Push — master ( f88f6e...5d85cb )
by Pavel
03:14
created

ScalarNormalizerTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 25
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getValidSubjects() 0 7 1
A getInvalidSubjects() 0 7 1
A createNormalizer() 0 4 1
1
<?php
2
3
namespace Bankiru\Seo\Tests\Unit\Normalizer;
4
5
use Bankiru\Seo\Destination\DestinationNormalizer;
6
use Bankiru\Seo\Destination\Normalizer\ScalarNormalizer;
7
8
class ScalarNormalizerTest extends AbstractNormalizerTest
9
{
10
11
    public function getValidSubjects()
12
    {
13
        return [
14
            'integer' => ['5', 5],
15
            'string'  => ['string', 'string'],
16
        ];
17
    }
18
19
    public function getInvalidSubjects()
20
    {
21
        return [
22
            'object' => [new \stdClass()],
23
            'array'  => [[]],
24
        ];
25
    }
26
27
    /** @return DestinationNormalizer */
28
    protected function createNormalizer()
29
    {
30
        return new ScalarNormalizer();
31
    }
32
}
33