Merge branch '2.8' into 3.3

* 2.8:
  Remove function_exists(__phpunit_run_isolated_test) checks
This commit is contained in:
Nicolas Grekas 2017-11-19 21:05:54 +02:00
commit f2fc7bfccc
5 changed files with 8 additions and 19 deletions

View File

@ -2,9 +2,7 @@
namespace Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Validation;
if (!function_exists('__phpunit_run_isolated_test')) {
class Article implements NotExistingInterface
{
public $category;
}
class Article implements NotExistingInterface
{
public $category;
}

View File

@ -2,8 +2,6 @@
namespace Symfony\Component\Config\Tests\Fixtures;
if (!function_exists('__phpunit_run_isolated_test')) {
class BadParent extends MissingParent
{
}
class BadParent extends MissingParent
{
}

View File

@ -1,5 +1,3 @@
<?php
if (!function_exists('__phpunit_run_isolated_test')) {
throw new \Exception('boo');
}
throw new \Exception('boo');

View File

@ -13,8 +13,6 @@ namespace Symfony\Component\DependencyInjection\Tests\Compiler;
use Symfony\Bug\NotExistClass;
if (!function_exists('__phpunit_run_isolated_test')) {
class OptionalServiceClass extends NotExistClass
{
}
class OptionalServiceClass extends NotExistClass
{
}

View File

@ -1,8 +1,5 @@
<?php
if (function_exists('__phpunit_run_isolated_test')) {
return;
}
/** @var $loader \Symfony\Component\Routing\Loader\PhpFileLoader */
/** @var \Symfony\Component\Routing\RouteCollection $collection */
$collection = $loader->import('validpattern.php');