@@ 63-70 (lines=8) @@ | ||
60 | $this->assertAttributeEquals('testfield', 'name', $this->bridge->fetchField($result, 1)); |
|
61 | } |
|
62 | ||
63 | public function testFetchLengths() |
|
64 | { |
|
65 | $query = 'SELECT * FROM test_table WHERE id = 10'; |
|
66 | $result = $this->bridge->query($query); |
|
67 | $this->bridge->fetchAssoc($result); |
|
68 | ||
69 | $this->assertEquals([0 => 2, 1 => 7], $this->bridge->fetchLengths($result)); |
|
70 | } |
|
71 | ||
72 | public function testFetchObject() |
|
73 | { |
|
@@ 95-107 (lines=13) @@ | ||
92 | $this->assertEquals(2, $object->two); |
|
93 | } |
|
94 | ||
95 | public function testFetchRow() |
|
96 | { |
|
97 | $query = 'SELECT * FROM test_table WHERE id = 6'; |
|
98 | $result = $this->bridge->query($query); |
|
99 | ||
100 | $this->assertEquals( |
|
101 | [ |
|
102 | 0 => '6', |
|
103 | 1 => 'test 6' |
|
104 | ], |
|
105 | $this->bridge->fetchRow($result) |
|
106 | ); |
|
107 | } |
|
108 | ||
109 | /** @expectedException \Mattbit\MysqlCompat\Exception\NotSupportedException */ |
|
110 | public function testDataSeek() |