Skip to content

Commit f53fc2b

Browse files
Merge branch '2.3' into 2.5
* 2.3: [2.3] Remove useless tests skips [2.3] Cleanup deprecations Conflicts: src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypePerformanceTest.php src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php src/Symfony/Bundle/FrameworkBundle/composer.json src/Symfony/Bundle/TwigBundle/composer.json src/Symfony/Component/Debug/Tests/MockExceptionHandler.php src/Symfony/Component/Debug/composer.json src/Symfony/Component/Form/Tests/ResolvedFormTypeTest.php src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php src/Symfony/Component/HttpKernel/Tests/DataCollector/RequestDataCollectorTest.php src/Symfony/Component/HttpKernel/Tests/Debug/TraceableEventDispatcherTest.php src/Symfony/Component/HttpKernel/Tests/EventListener/LocaleListenerTest.php src/Symfony/Component/HttpKernel/Tests/EventListener/RouterListenerTest.php src/Symfony/Component/HttpKernel/Tests/Fixtures/KernelForTest.php src/Symfony/Component/HttpKernel/composer.json src/Symfony/Component/Routing/Tests/Annotation/RouteTest.php src/Symfony/Component/Security/Tests/Core/Validator/Constraints/UserPasswordValidatorTest.php src/Symfony/Component/Security/composer.json
2 parents d698726 + f5b405b commit f53fc2b

12 files changed

+8
-33
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ CHANGELOG
1717

1818
* [BC BREAK] renamed `Symfony\Component\HttpKernel\EventListener\DeprecationLoggerListener` to `Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener` and changed its constructor
1919
* deprecated `Symfony\Component\HttpKernel\Debug\ErrorHandler`, `Symfony\Component\HttpKernel\Debug\ExceptionHandler`,
20-
`Symfony\Component\HttpKernel\Exception\FatalErrorException`, and `Symfony\Component\HttpKernel\Exception\FlattenException`
20+
`Symfony\Component\HttpKernel\Exception\FatalErrorException` and `Symfony\Component\HttpKernel\Exception\FlattenException`
2121
* deprecated `Symfony\Component\HttpKernel\Kernel::init()``
2222
* added the possibility to specify an id an extra attributes to hinclude tags
2323
* added the collect of data if a controller is a Closure in the Request collector

DataCollector/ExceptionDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Component\HttpKernel\DataCollector;
1313

14+
use Symfony\Component\Debug\Exception\FlattenException;
1415
use Symfony\Component\HttpFoundation\Request;
1516
use Symfony\Component\HttpFoundation\Response;
16-
use Symfony\Component\HttpKernel\Exception\FlattenException;
1717

1818
/**
1919
* ExceptionDataCollector.

EventListener/ExceptionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
namespace Symfony\Component\HttpKernel\EventListener;
1313

1414
use Psr\Log\LoggerInterface;
15+
use Symfony\Component\Debug\Exception\FlattenException;
1516
use Symfony\Component\HttpFoundation\Request;
1617
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
1718
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
1819
use Symfony\Component\HttpKernel\KernelEvents;
1920
use Symfony\Component\HttpKernel\HttpKernelInterface;
20-
use Symfony\Component\HttpKernel\Exception\FlattenException;
2121
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
2222
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
2323

Exception/FatalErrorException.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,11 @@
1111

1212
namespace Symfony\Component\HttpKernel\Exception;
1313

14-
use Symfony\Component\Debug\Exception\FatalErrorException as DebugFatalErrorException;
15-
1614
/**
1715
* Fatal Error Exception.
1816
*
1917
* @author Konstanton Myakshin <koc-dp@yandex.ru>
2018
*
2119
* @deprecated Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead.
2220
*/
23-
class FatalErrorException extends DebugFatalErrorException
24-
{
25-
}
21+
class_exists('Symfony\Component\Debug\Exception\FatalErrorException');

Exception/FlattenException.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\HttpKernel\Exception;
1313

14-
use Symfony\Component\Debug\Exception\FlattenException as DebugFlattenException;
15-
1614
/**
1715
* FlattenException wraps a PHP Exception to be able to serialize it.
1816
*
@@ -22,6 +20,4 @@
2220
*
2321
* @deprecated Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead.
2422
*/
25-
class FlattenException extends DebugFlattenException
26-
{
27-
}
23+
class_exists('Symfony\Component\Debug\Exception\FlattenException');

Tests/DataCollector/ConfigDataCollectorTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ public function registerBundles()
6969
{
7070
}
7171

72-
public function init()
73-
{
74-
}
75-
7672
public function getBundles()
7773
{
7874
return array();

Tests/DataCollector/ExceptionDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\HttpKernel\Tests\DataCollector;
1313

14+
use Symfony\Component\Debug\Exception\FlattenException;
1415
use Symfony\Component\HttpKernel\DataCollector\ExceptionDataCollector;
15-
use Symfony\Component\HttpKernel\Exception\FlattenException;
1616
use Symfony\Component\HttpFoundation\Request;
1717
use Symfony\Component\HttpFoundation\Response;
1818

Tests/DataCollector/LoggerDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\HttpKernel\Tests\DataCollector;
1313

14+
use Symfony\Component\Debug\ErrorHandler;
1415
use Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector;
15-
use Symfony\Component\HttpKernel\Debug\ErrorHandler;
1616

1717
class LoggerDataCollectorTest extends \PHPUnit_Framework_TestCase
1818
{

Tests/EventListener/LocaleListenerTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ public function testLocaleSetForRoutingContext()
6767

6868
public function testRouterResetWithParentRequestOnKernelFinishRequest()
6969
{
70-
if (!class_exists('Symfony\Component\Routing\Router')) {
71-
$this->markTestSkipped('The "Routing" component is not available');
72-
}
73-
7470
// the request context is updated
7571
$context = $this->getMock('Symfony\Component\Routing\RequestContext');
7672
$context->expects($this->once())->method('setParameter')->with('_locale', 'es');

Tests/KernelTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,6 @@ public function testHandleBootsTheKernel()
194194

195195
public function testStripComments()
196196
{
197-
if (!function_exists('token_get_all')) {
198-
$this->markTestSkipped('The function token_get_all() is not available.');
199-
200-
return;
201-
}
202197
$source = <<<'EOF'
203198
<?php
204199

0 commit comments

Comments
 (0)