Code Duplication    Length = 13-13 lines in 2 locations

Tests/Units/MethodMetadataTests.php 1 location

@@ 119-131 (lines=13) @@
116
    /**
117
     * Test Serialize/Unserialize method.
118
     */
119
    public function testSerialize()
120
    {
121
        $this
122
            ->given($methodMetadata = $this->createMethodMetadata(User::class, 'username'))
123
            ->and($methodMetadata1 = $this->createMethodMetadata(User::class, 'email'))
124
            ->when($methodMetadata->unserialize($methodMetadata1->serialize()))
125
            ->then()
126
                ->string($methodMetadata->className())
127
                    ->isEqualTo(User::class)
128
                ->string($methodMetadata->methodName())
129
                    ->isEqualTo('email')
130
        ;
131
    }
132
}
133

Tests/Units/PropertyMetadataTests.php 1 location

@@ 138-150 (lines=13) @@
135
    /**
136
     * Test Serialize/Unserialize method.
137
     */
138
    public function testSerialize()
139
    {
140
        $this
141
            ->given($propertyMetadata = $this->createPropertyMetadata(User::class, 'username'))
142
            ->and($propertyMetadata1 = $this->createPropertyMetadata(User::class, 'email'))
143
            ->when($propertyMetadata->unserialize($propertyMetadata1->serialize()))
144
            ->then()
145
                ->string($propertyMetadata->className())
146
                    ->isEqualTo(User::class)
147
                ->string($propertyMetadata->propertyName())
148
                    ->isEqualTo('email')
149
        ;
150
    }
151
}
152