Completed
Push — master ( 4e5ef4...37558b )
by De Cramer
02:05
created

StrToLowerTest::getRule()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Oliverde8\Component\RuleEngine\Tests\Rules;
4
5
use Oliverde8\Component\RuleEngine\Rules\StrToLower;
6
use Psr\Log\NullLogger;
7
8
/**
9
 * Class StrToLowerTest
10
 *
11
 * @author    de Cramer Oliver<[email protected]>
12
 * @copyright 2018 Smile
13
 * @package Oliverde8\Component\RuleEngine\Tests\Rules
14
 */
15
class StrToLowerTest extends AbstractRule
16
{
17
    /**
18
     * Test that all characters are properly uppercased.
19
     */
20
    public function testStrToLower()
21
    {
22
        $this->assertRuleResults([], [], ['value' => 'My tEsT'], 'my test');
23
    }
24
25
    /**
26
     * @inheritdoc
27
     */
28
    protected function getRule()
29
    {
30
        return new StrToLower(new NullLogger());
31
    }
32
}