@@ 115-125 (lines=11) @@ | ||
112 | $this->_conn->setNestTransactionsWithSavepoints(true); |
|
113 | } |
|
114 | ||
115 | public function testSetNestedTransactionsThroughSavepointsNotSupportedThrowsException() |
|
116 | { |
|
117 | if ($this->_conn->getDatabasePlatform()->supportsSavepoints()) { |
|
118 | $this->markTestSkipped('This test requires the platform not to support savepoints.'); |
|
119 | } |
|
120 | ||
121 | $this->expectException(ConnectionException::class); |
|
122 | $this->expectExceptionMessage("Savepoints are not supported by this driver."); |
|
123 | ||
124 | $this->_conn->setNestTransactionsWithSavepoints(true); |
|
125 | } |
|
126 | ||
127 | public function testCreateSavepointsNotSupportedThrowsException() |
|
128 | { |
|
@@ 127-137 (lines=11) @@ | ||
124 | $this->_conn->setNestTransactionsWithSavepoints(true); |
|
125 | } |
|
126 | ||
127 | public function testCreateSavepointsNotSupportedThrowsException() |
|
128 | { |
|
129 | if ($this->_conn->getDatabasePlatform()->supportsSavepoints()) { |
|
130 | $this->markTestSkipped('This test requires the platform not to support savepoints.'); |
|
131 | } |
|
132 | ||
133 | $this->expectException(ConnectionException::class); |
|
134 | $this->expectExceptionMessage("Savepoints are not supported by this driver."); |
|
135 | ||
136 | $this->_conn->createSavepoint('foo'); |
|
137 | } |
|
138 | ||
139 | public function testReleaseSavepointsNotSupportedThrowsException() |
|
140 | { |
|
@@ 139-149 (lines=11) @@ | ||
136 | $this->_conn->createSavepoint('foo'); |
|
137 | } |
|
138 | ||
139 | public function testReleaseSavepointsNotSupportedThrowsException() |
|
140 | { |
|
141 | if ($this->_conn->getDatabasePlatform()->supportsSavepoints()) { |
|
142 | $this->markTestSkipped('This test requires the platform not to support savepoints.'); |
|
143 | } |
|
144 | ||
145 | $this->expectException(ConnectionException::class); |
|
146 | $this->expectExceptionMessage("Savepoints are not supported by this driver."); |
|
147 | ||
148 | $this->_conn->releaseSavepoint('foo'); |
|
149 | } |
|
150 | ||
151 | public function testRollbackSavepointsNotSupportedThrowsException() |
|
152 | { |
|
@@ 151-161 (lines=11) @@ | ||
148 | $this->_conn->releaseSavepoint('foo'); |
|
149 | } |
|
150 | ||
151 | public function testRollbackSavepointsNotSupportedThrowsException() |
|
152 | { |
|
153 | if ($this->_conn->getDatabasePlatform()->supportsSavepoints()) { |
|
154 | $this->markTestSkipped('This test requires the platform not to support savepoints.'); |
|
155 | } |
|
156 | ||
157 | $this->expectException(ConnectionException::class); |
|
158 | $this->expectExceptionMessage("Savepoints are not supported by this driver."); |
|
159 | ||
160 | $this->_conn->rollbackSavepoint('foo'); |
|
161 | } |
|
162 | ||
163 | public function testTransactionBehaviorWithRollback() |
|
164 | { |