Passed
Push — release/v2 ( 119cbe...817cd6 )
by Benoit
02:50
created

EmailTest::testNormalization()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace JBen87\ParsleyBundle\Tests\Constraint\Constraints;
4
5
use JBen87\ParsleyBundle\Constraint\Constraints as ParsleyAssert;
6
7
class EmailTest extends ConstraintTestCase
8
{
9
    public function testNormalization(): void
10
    {
11
        $constraint = new ParsleyAssert\Email();
12
13
        $this->assertSame([
14
            'data-parsley-type' => 'email',
15
            'data-parsley-type-message' => 'Invalid.',
16
        ], $constraint->normalize($this->normalizer));
17
    }
18
}
19