Code Duplication    Length = 11-11 lines in 3 locations

tests/Doctrine/Tests/ORM/ConfigurationTest.php 3 locations

@@ 208-218 (lines=11) @@
205
        $this->configuration->ensureProductionSettings();
206
    }
207
208
    public function testAddGetCustomStringFunction()
209
    {
210
        $this->configuration->addCustomStringFunction('FunctionName', __CLASS__);
211
212
        self::assertSame(__CLASS__, $this->configuration->getCustomStringFunction('FunctionName'));
213
        self::assertSame(null, $this->configuration->getCustomStringFunction('NonExistingFunction'));
214
215
        $this->configuration->setCustomStringFunctions(['OtherFunctionName' => __CLASS__]);
216
217
        self::assertSame(__CLASS__, $this->configuration->getCustomStringFunction('OtherFunctionName'));
218
    }
219
220
    public function testAddGetCustomNumericFunction()
221
    {
@@ 220-230 (lines=11) @@
217
        self::assertSame(__CLASS__, $this->configuration->getCustomStringFunction('OtherFunctionName'));
218
    }
219
220
    public function testAddGetCustomNumericFunction()
221
    {
222
        $this->configuration->addCustomNumericFunction('FunctionName', __CLASS__);
223
224
        self::assertSame(__CLASS__, $this->configuration->getCustomNumericFunction('FunctionName'));
225
        self::assertSame(null, $this->configuration->getCustomNumericFunction('NonExistingFunction'));
226
227
        $this->configuration->setCustomNumericFunctions(['OtherFunctionName' => __CLASS__]);
228
229
        self::assertSame(__CLASS__, $this->configuration->getCustomNumericFunction('OtherFunctionName'));
230
    }
231
232
    public function testAddGetCustomDatetimeFunction()
233
    {
@@ 232-242 (lines=11) @@
229
        self::assertSame(__CLASS__, $this->configuration->getCustomNumericFunction('OtherFunctionName'));
230
    }
231
232
    public function testAddGetCustomDatetimeFunction()
233
    {
234
        $this->configuration->addCustomDatetimeFunction('FunctionName', __CLASS__);
235
236
        self::assertSame(__CLASS__, $this->configuration->getCustomDatetimeFunction('FunctionName'));
237
        self::assertSame(null, $this->configuration->getCustomDatetimeFunction('NonExistingFunction'));
238
239
        $this->configuration->setCustomDatetimeFunctions(['OtherFunctionName' => __CLASS__]);
240
241
        self::assertSame(__CLASS__, $this->configuration->getCustomDatetimeFunction('OtherFunctionName'));
242
    }
243
244
    public function testAddGetCustomHydrationMode()
245
    {