mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
test: Removed pre-checking of tests that were skipped in the PHPUnit version since the minimum version is now 9.5.
This commit is contained in:
parent
a1ed2f91b3
commit
b1229c9107
2 changed files with 0 additions and 15 deletions
|
@ -230,10 +230,6 @@ class CakeEventManagerTest extends CakeTestCase {
|
|||
* @triggers fake.event
|
||||
*/
|
||||
public function testDispatchReturnValue() {
|
||||
$this->skipIf(
|
||||
version_compare(PHPUnit_Runner_Version::id(), '3.7', '<'),
|
||||
'These tests fail in PHPUnit 3.6'
|
||||
);
|
||||
$manager = new CakeEventManager();
|
||||
$listener = $this->getMock('CakeEventTestListener');
|
||||
$anotherListener = $this->getMock('CakeEventTestListener');
|
||||
|
@ -258,11 +254,6 @@ class CakeEventManagerTest extends CakeTestCase {
|
|||
* @triggers fake.event
|
||||
*/
|
||||
public function testDispatchFalseStopsEvent() {
|
||||
$this->skipIf(
|
||||
version_compare(PHPUnit_Runner_Version::id(), '3.7', '<'),
|
||||
'These tests fail in PHPUnit 3.6'
|
||||
);
|
||||
|
||||
$manager = new CakeEventManager();
|
||||
$listener = $this->getMock('CakeEventTestListener');
|
||||
$anotherListener = $this->getMock('CakeEventTestListener');
|
||||
|
|
|
@ -761,12 +761,6 @@ abstract class CakeTestCase extends \PHPUnit\Framework\TestCase {
|
|||
$callOriginalMethods = false,
|
||||
$proxyTarget = null
|
||||
) {
|
||||
$phpUnitVersion = PHPUnit_Runner_Version::id();
|
||||
if (version_compare($phpUnitVersion, '5.7.0', '<')) {
|
||||
return parent::getMock($originalClassName, $methods, $arguments,
|
||||
$mockClassName, $callOriginalConstructor, $callOriginalClone,
|
||||
$callAutoload, $cloneArguments, $callOriginalMethods, $proxyTarget);
|
||||
}
|
||||
if ($cloneArguments) {
|
||||
throw new InvalidArgumentException('$cloneArguments parameter is not supported');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue