Skip to content

Commit

Permalink
Merge pull request #69 from aik099/68-the-suitebuildingtest-testsuite…
Browse files Browse the repository at this point in the history
…teardown-fails-on-phpunit-4-6

Fixes suite building test on PHPUnit 4.6+
  • Loading branch information
Alexander Obuhovich committed Nov 11, 2015
2 parents d8cf119 + b74a495 commit 400657b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/aik099/PHPUnit/Integration/SuiteBuildingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ protected function createTestSuite($class_name)
$suite = m::mock($class_name);

$suite->shouldReceive('getGroups')->once()->andReturn(array());
$suite->shouldReceive('setDisallowChangesToGlobalState'); // Since PHPUnit 4.6.0.
$suite->shouldReceive('setBackupGlobals');
$suite->shouldReceive('setBackupStaticAttributes');
$suite->shouldReceive('setRunTestInSeparateProcess');
Expand Down

0 comments on commit 400657b

Please sign in to comment.