Code Duplication    Length = 7-7 lines in 2 locations

tests/Doctrine/Tests/DBAL/Types/BinaryTest.php 1 location

@@ 58-64 (lines=7) @@
55
        self::assertEquals($databaseValue, stream_get_contents($phpValue));
56
    }
57
58
    public function testBinaryResourceConvertsToPHPValue()
59
    {
60
        $databaseValue = fopen('data://text/plain;base64,' . base64_encode('binary string'), 'r');
61
        $phpValue      = $this->type->convertToPHPValue($databaseValue, $this->platform);
62
63
        self::assertSame($databaseValue, $phpValue);
64
    }
65
66
    /**
67
     * @dataProvider getInvalidDatabaseValues

tests/Doctrine/Tests/DBAL/Types/BlobTest.php 1 location

@@ 43-49 (lines=7) @@
40
        self::assertSame($databaseValue, stream_get_contents($phpValue));
41
    }
42
43
    public function testBinaryResourceConvertsToPHPValue()
44
    {
45
        $databaseValue = fopen('data://text/plain;base64,' . base64_encode($this->getBinaryString()), 'r');
46
        $phpValue      = $this->type->convertToPHPValue($databaseValue, $this->platform);
47
48
        self::assertSame($databaseValue, $phpValue);
49
    }
50
51
    /**
52
     * Creates a binary string containing all possible byte values.