Browse Source

Make PHPUnit run on PHP 7.2

fix PHPUnit at 4.8.34 as the next version breaks our compatibility
Layer:
a55235c033
tags/2.0.13
Carsten Brandt 7 years ago
parent
commit
758f01934f
  1. 2
      composer.json
  2. 475
      composer.lock
  3. 3
      tests/compatibility.php
  4. 1
      tests/framework/test/ActiveFixtureTest.php

2
composer.json

@ -81,7 +81,7 @@
"bower-asset/yii2-pjax": "~2.0.1"
},
"require-dev": {
"phpunit/phpunit": "~4.4",
"phpunit/phpunit": "4.8.34",
"cebe/indent": "~1.0.2",
"friendsofphp/php-cs-fixer": "~2.2.3"
},

475
composer.lock generated

File diff suppressed because it is too large Load Diff

3
tests/compatibility.php

@ -19,6 +19,9 @@ namespace PHPUnit\Framework\Constraint {
namespace PHPUnit\Framework {
if (!class_exists('PHPUnit\Framework\TestCase') && class_exists('PHPUnit_Framework_TestCase')) {
echo "Applying compatibility patch for PHPUnit 6...\n";
abstract class TestCase extends \PHPUnit_Framework_TestCase
{
/**

1
tests/framework/test/ActiveFixtureTest.php

@ -50,6 +50,7 @@ class MyDbTestCase
/**
* @group fixture
* @group db
*/
class ActiveFixtureTest extends DatabaseTestCase
{

Loading…
Cancel
Save