Code Duplication    Length = 11-11 lines in 4 locations

Tests/Units/MethodMetadataTests.php 2 locations

@@ 36-46 (lines=11) @@
33
    /**
34
     * Test ClassName method.
35
     */
36
    public function testClassName()
37
    {
38
        $this
39
            ->given($className = User::class)
40
            ->and($methodName = 'username')
41
            ->when($methodMetadata = $this->createMethodMetadata($className, $methodName))
42
            ->then()
43
                ->string($methodMetadata->className())
44
                    ->isEqualTo($className)
45
        ;
46
    }
47
48
    /**
49
     * Test MethodName method.
@@ 51-61 (lines=11) @@
48
    /**
49
     * Test MethodName method.
50
     */
51
    public function testMethodName()
52
    {
53
        $this
54
            ->given($className = User::class)
55
            ->and($methodName = 'username')
56
            ->when($methodMetadata = $this->createMethodMetadata($className, $methodName))
57
            ->then()
58
                ->string($methodMetadata->methodName())
59
                    ->isEqualTo($methodName)
60
        ;
61
    }
62
63
    /**
64
     * Test metadata methods.

Tests/Units/PropertyMetadataTests.php 2 locations

@@ 36-46 (lines=11) @@
33
    /**
34
     * Test ClassName method.
35
     */
36
    public function testClassName()
37
    {
38
        $this
39
            ->given($className = User::class)
40
            ->and($propertyName = 'username')
41
            ->when($propertyMetadata = $this->createPropertyMetadata($className, $propertyName))
42
            ->then()
43
                ->string($propertyMetadata->className())
44
                    ->isEqualTo($className)
45
        ;
46
    }
47
48
    /**
49
     * Test PropertyName method.
@@ 51-61 (lines=11) @@
48
    /**
49
     * Test PropertyName method.
50
     */
51
    public function testPropertyName()
52
    {
53
        $this
54
            ->given($className = User::class)
55
            ->and($propertyName = 'username')
56
            ->when($propertyMetadata = $this->createPropertyMetadata($className, $propertyName))
57
            ->then()
58
                ->string($propertyMetadata->propertyName())
59
                    ->isEqualTo($propertyName)
60
        ;
61
    }
62
63
    /**
64
     * Test metadata methods.