Skip to content

Commit

Permalink
Fix phpunit tests failing while trying to backup globals
Browse files Browse the repository at this point in the history
Tests were failing with "Serialization of 'Closure' is not allowed"
  • Loading branch information
rjmackay committed Apr 3, 2017
1 parent df80589 commit 41ed3a8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/Core/Traits/DataTranformerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public function pTransform($data) {
}
}

/**
* @backupGlobals disabled
* @preserveGlobalState disabled
*/
class DataTransformerTest extends PHPUnit\Framework\TestCase {

/**
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/Ushahidi/PostValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License Version 3 (AGPL3)
*/

/**
* @backupGlobals disabled
* @preserveGlobalState disabled
*/
class PostValueRepositoryTest extends PHPUnit\Framework\TestCase {

protected $repository;
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/Util/BoundingBoxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License Version 3 (AGPL3)
*/

/**
* @backupGlobals disabled
* @preserveGlobalState disabled
*/
class BoundingBoxTest extends PHPUnit\Framework\TestCase {

/**
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/Util/TileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License Version 3 (AGPL3)
*/

/**
* @backupGlobals disabled
* @preserveGlobalState disabled
*/
class TileTest extends PHPUnit\Framework\TestCase {

/**
Expand Down

0 comments on commit 41ed3a8

Please sign in to comment.