mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Don't use PHPUnit backupGlobals, break with 4.x
Unclear why PHPUnit is trying to serialize() data through its mocking system, but this simple workaround avoids it. https://phpunit.de/manual/4.8/en/fixtures.html#fixtures.global-state https://github.com/sebastianbergmann/phpunit/issues/451 http://stackoverflow.com/questions/4366592/symfony-2-doctrine-2-phpunit-3-5-serialization-of-closure-exception
This commit is contained in:
parent
899ed1c226
commit
7ef575c961
@ -6,6 +6,8 @@ use SilverStripe\BehatExtension\Context\SilverStripeContext,
|
||||
|
||||
class SilverStripeContextTest extends \PHPUnit_Framework_TestCase {
|
||||
|
||||
protected $backupGlobals = false;
|
||||
|
||||
/**
|
||||
* @expectedException \LogicException
|
||||
* @expectedExceptionMessage Cannot find 'region_map' in the behat.yml
|
||||
|
Loading…
Reference in New Issue
Block a user