Skip to content

Commit

Permalink
ReflectionMethod::setAccessible() is not compatible with PHP 5.2, cau…
Browse files Browse the repository at this point in the history
…sing fatal error in CI. Assuming that the db servers support nested transaction.
  • Loading branch information
jrbasso committed Apr 14, 2012
1 parent 22cd65b commit ffe0a18
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
Expand Up @@ -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();
Expand Down
4 changes: 0 additions & 4 deletions lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php
Expand Up @@ -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();
Expand Down
4 changes: 0 additions & 4 deletions lib/Cake/Test/Case/Model/Datasource/Database/SqliteTest.php
Expand Up @@ -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();
Expand Down

0 comments on commit ffe0a18

Please sign in to comment.