@@ 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 |
@@ 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. |