Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ReflectionMethod::setAccessible() is not compatible with PHP 5.2, cau…

…sing fatal error in CI. Assuming that the db servers support nested transaction.
  • Loading branch information...
commit ffe0a1849582253432fc8aea6d4ee4b39b583dc2 1 parent 22cd65b
@jrbasso jrbasso authored
View
4 lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
@@ -3586,10 +3586,6 @@ public function testTruncateStatements() {
* @return void
*/
public function testNestedTransaction() {
- $obj = new ReflectionMethod($this->Dbo, '_supportNestedTransaction');
- $obj->setAccessible(true);
- $this->skipIf($obj->invoke($this->Dbo) === false, 'The MySQL server do not support nested transaction');
-
$this->loadFixtures('Address');
$model = ClassRegistry::init('Address');
$model->hasOne = $model->hasMany = $model->belongsTo = $model->hasAndBelongsToMany = array();
View
4 lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php
@@ -915,10 +915,6 @@ public function testTruncateStatements() {
* @return void
*/
public function testNestedTransaction() {
- $obj = new ReflectionMethod($this->Dbo, '_supportNestedTransaction');
- $obj->setAccessible(true);
- $this->skipIf($obj->invoke($this->Dbo) === false, 'The Postgres server do not support nested transaction');
-
$this->loadFixtures('Article');
$model = new Article();
$model->hasOne = $model->hasMany = $model->belongsTo = $model->hasAndBelongsToMany = array();
View
4 lib/Cake/Test/Case/Model/Datasource/Database/SqliteTest.php
@@ -389,10 +389,6 @@ public function testUuidPrimaryKeyInsertion() {
* @return void
*/
public function testNestedTransaction() {
- $obj = new ReflectionMethod($this->Dbo, '_supportNestedTransaction');
- $obj->setAccessible(true);
- $this->skipIf($obj->invoke($this->Dbo) === false, 'The Sqlite version do not support nested transaction');
-
$this->loadFixtures('User');
$model = new User();
$model->hasOne = $model->hasMany = $model->belongsTo = $model->hasAndBelongsToMany = array();
Please sign in to comment.
Something went wrong with that request. Please try again.