Skip to content

Commit e061c53

Browse files
author
Alexander Obuhovich
committed
Allow using either of PHPUnit 3.7.* or PHPUnit 4.0.*
1 parent fae4b69 commit e061c53

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"behat/mink-selenium2-driver": "~1.1@dev",
1919
"symfony/event-dispatcher": "~2.4",
2020
"pimple/pimple": "~2.0@dev",
21-
"phpunit/phpunit": "~4.0"
21+
"phpunit/phpunit": "~3.7|~4.0"
2222
},
2323

2424
"require-dev": {

tests/aik099/PHPUnit/Integration/SuiteBuildingTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ protected function createTestSuite($class_name)
105105
$suite->shouldReceive('run')->once()->andReturnNull();
106106
$suite->shouldReceive('onTestSuiteEnded')->once()->andReturnNull();
107107

108-
$suite->shouldReceive('count')->once()->andReturn(1);
108+
if ( version_compare(\PHPUnit_Runner_Version::id(), '4.0.0', '>=') ) {
109+
$suite->shouldReceive('count')->once()->andReturn(1);
110+
}
109111

110112
return $suite;
111113
}

0 commit comments

Comments
 (0)