Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 49-56 (lines=8) @@
46
        self::assertNull($this->type->convertToPHPValue(null, $this->platform));
47
    }
48
49
    public function testBinaryStringConvertsToPHPValue()
50
    {
51
        $databaseValue = 'binary string';
52
        $phpValue      = $this->type->convertToPHPValue($databaseValue, $this->platform);
53
54
        self::assertInternalType('resource', $phpValue);
55
        self::assertEquals($databaseValue, stream_get_contents($phpValue));
56
    }
57
58
    public function testBinaryResourceConvertsToPHPValue()
59
    {

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

@@ 34-41 (lines=8) @@
31
        self::assertNull($this->type->convertToPHPValue(null, $this->platform));
32
    }
33
34
    public function testBinaryStringConvertsToPHPValue()
35
    {
36
        $databaseValue = $this->getBinaryString();
37
        $phpValue      = $this->type->convertToPHPValue($databaseValue, $this->platform);
38
39
        self::assertInternalType('resource', $phpValue);
40
        self::assertSame($databaseValue, stream_get_contents($phpValue));
41
    }
42
43
    public function testBinaryResourceConvertsToPHPValue()
44
    {