@@ 63-70 (lines=8) @@ | ||
60 | self::assertEquals($value, $phpValue); |
|
61 | } |
|
62 | ||
63 | public function testJsonResourceConvertsToPHPValue() |
|
64 | { |
|
65 | $value = array('foo' => 'bar', 'bar' => 'foo'); |
|
66 | $databaseValue = fopen('data://text/plain;base64,' . base64_encode(json_encode($value)), 'r'); |
|
67 | $phpValue = $this->type->convertToPHPValue($databaseValue, $this->platform); |
|
68 | ||
69 | self::assertSame($value, $phpValue); |
|
70 | } |
|
71 | ||
72 | public function testRequiresSQLCommentHint() |
|
73 | { |
@@ 75-82 (lines=8) @@ | ||
72 | return array(array('a'), array('{')); |
|
73 | } |
|
74 | ||
75 | public function testJsonResourceConvertsToPHPValue() |
|
76 | { |
|
77 | $value = array('foo' => 'bar', 'bar' => 'foo'); |
|
78 | $databaseValue = fopen('data://text/plain;base64,' . base64_encode(json_encode($value)), 'r'); |
|
79 | $phpValue = $this->type->convertToPHPValue($databaseValue, $this->platform); |
|
80 | ||
81 | self::assertSame($value, $phpValue); |
|
82 | } |
|
83 | ||
84 | public function testRequiresSQLCommentHint() |
|
85 | { |