Code Duplication    Length = 15-15 lines in 2 locations

Tests/Units/MethodMetadataTests.php 1 location

@@ 86-100 (lines=15) @@
83
    /**
84
     * Test Reflection method.
85
     */
86
    public function testReflection()
87
    {
88
        $this
89
            ->given($className = User::class)
90
            ->and($methodName = 'username')
91
            ->when($methodMetadata = $this->createMethodMetadata($className, $methodName))
92
            ->then()
93
                ->object($methodMetadata->reflection())
94
                    ->isInstanceOf(\ReflectionMethod::class)
95
                ->string($methodMetadata->reflection()->class)
96
                    ->isEqualTo($className)
97
                ->string($methodMetadata->reflection()->name)
98
                    ->isEqualTo($methodName)
99
        ;
100
    }
101
102
    /**
103
     * Test invoke method.

Tests/Units/PropertyMetadataTests.php 1 location

@@ 86-100 (lines=15) @@
83
    /**
84
     * Test Reflection method.
85
     */
86
    public function testReflection()
87
    {
88
        $this
89
            ->given($className = User::class)
90
            ->and($propertyName = 'username')
91
            ->when($propertyMetadata = $this->createPropertyMetadata($className, $propertyName))
92
            ->then()
93
                ->object($propertyMetadata->reflection())
94
                    ->isInstanceOf(\ReflectionProperty::class)
95
                ->string($propertyMetadata->reflection()->class)
96
                    ->isEqualTo($className)
97
                ->string($propertyMetadata->reflection()->name)
98
                    ->isEqualTo($propertyName)
99
        ;
100
    }
101
102
    /**
103
     * Test GetValue method.