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

EmailTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1
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