Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2c7ba8

Browse files
Skip tests that fatal-error on PHP 7.4 because of missing parent classes
1 parentc064548 commitc2c7ba8

File tree

6 files changed

+50
-0
lines changed

6 files changed

+50
-0
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/ValidatorCacheWarmerTest.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespaceSymfony\Bundle\FrameworkBundle\Tests\CacheWarmer;
1313

14+
usePHPUnit\Framework\Warning;
1415
useSymfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1516
useSymfony\Bundle\FrameworkBundle\CacheWarmer\ValidatorCacheWarmer;
1617
useSymfony\Bundle\FrameworkBundle\Tests\TestCase;
@@ -26,6 +27,10 @@ class ValidatorCacheWarmerTest extends TestCase
2627

2728
publicfunctiontestWarmUp()
2829
{
30+
if (\PHP_VERSION_ID >=70400) {
31+
thrownewWarning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
32+
}
33+
2934
$validatorBuilder =newValidatorBuilder();
3035
$validatorBuilder->addXmlMapping(__DIR__.'/../Fixtures/Validation/Resources/person.xml');
3136
$validatorBuilder->addYamlMapping(__DIR__.'/../Fixtures/Validation/Resources/author.yml');

‎src/Symfony/Component/Config/Tests/Resource/ClassExistenceResourceTest.php‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespaceSymfony\Component\Config\Tests\Resource;
1313

1414
usePHPUnit\Framework\TestCase;
15+
usePHPUnit\Framework\Warning;
1516
useSymfony\Component\Config\Resource\ClassExistenceResource;
1617
useSymfony\Component\Config\Tests\Fixtures\BadParent;
1718
useSymfony\Component\Config\Tests\Fixtures\Resource\ConditionalClass;
@@ -77,6 +78,10 @@ public function testExistsKo()
7778

7879
publicfunctiontestBadParentWithTimestamp()
7980
{
81+
if (\PHP_VERSION_ID >=70400) {
82+
thrownewWarning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
83+
}
84+
8085
$res =newClassExistenceResource(BadParent::class,false);
8186
$this->assertTrue($res->isFresh(time()));
8287
}
@@ -87,6 +92,10 @@ public function testBadParentWithTimestamp()
8792
*/
8893
publicfunctiontestBadParentWithNoTimestamp()
8994
{
95+
if (\PHP_VERSION_ID >=70400) {
96+
thrownewWarning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
97+
}
98+
9099
$res =newClassExistenceResource(BadParent::class,false);
91100
$res->isFresh(0);
92101
}

‎src/Symfony/Component/DependencyInjection/Tests/Compiler/AutowirePassTest.php‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespaceSymfony\Component\DependencyInjection\Tests\Compiler;
1313

1414
usePHPUnit\Framework\TestCase;
15+
usePHPUnit\Framework\Warning;
1516
useSymfony\Component\Config\FileLocator;
1617
useSymfony\Component\DependencyInjection\Compiler\AutowirePass;
1718
useSymfony\Component\DependencyInjection\Compiler\AutowireRequiredMethodsPass;
@@ -395,6 +396,10 @@ public function testClassNotFoundThrowsException()
395396
*/
396397
publicfunctiontestParentClassNotFoundThrowsException()
397398
{
399+
if (\PHP_VERSION_ID >=70400) {
400+
thrownewWarning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
401+
}
402+
398403
$container =newContainerBuilder();
399404

400405
$aDefinition =$container->register('a',__NAMESPACE__.'\BadParentTypeHintedArgument');
@@ -707,6 +712,10 @@ public function getCreateResourceTests()
707712

708713
publicfunctiontestIgnoreServiceWithClassNotExisting()
709714
{
715+
if (\PHP_VERSION_ID >=70400) {
716+
thrownewWarning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
717+
}
718+
710719
$container =newContainerBuilder();
711720

712721
$container->register('class_not_exist',__NAMESPACE__.'\OptionalServiceClass');
@@ -917,6 +926,10 @@ public function testExceptionWhenAliasExists()
917926
*/
918927
publicfunctiontestExceptionWhenAliasDoesNotExist()
919928
{
929+
if (\PHP_VERSION_ID >=70400) {
930+
thrownewWarning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
931+
}
932+
920933
$container =newContainerBuilder();
921934

922935
// multiple I instances... but no IInterface alias

‎src/Symfony/Component/DependencyInjection/Tests/Compiler/ResolveBindingsPassTest.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespaceSymfony\Component\DependencyInjection\Tests\Compiler;
1313

1414
usePHPUnit\Framework\TestCase;
15+
usePHPUnit\Framework\Warning;
1516
useSymfony\Component\DependencyInjection\Argument\BoundArgument;
1617
useSymfony\Component\DependencyInjection\Compiler\AutowireRequiredMethodsPass;
1718
useSymfony\Component\DependencyInjection\Compiler\ResolveBindingsPass;
@@ -69,6 +70,10 @@ public function testUnusedBinding()
6970
*/
7071
publicfunctiontestMissingParent()
7172
{
73+
if (\PHP_VERSION_ID >=70400) {
74+
thrownewWarning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
75+
}
76+
7277
$container =newContainerBuilder();
7378

7479
$definition =$container->register(ParentNotExists::class, ParentNotExists::class);

‎src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespaceSymfony\Component\DependencyInjection\Tests\Dumper;
1313

1414
usePHPUnit\Framework\TestCase;
15+
usePHPUnit\Framework\Warning;
1516
usePsr\Container\ContainerInterface;
1617
useSymfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1718
useSymfony\Component\Config\FileLocator;
@@ -906,6 +907,10 @@ public function testInlineSelfRef()
906907

907908
publicfunctiontestHotPathOptimizations()
908909
{
910+
if (\PHP_VERSION_ID >=70400) {
911+
thrownewWarning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
912+
}
913+
909914
$container =includeself::$fixturesPath.'/containers/container_inline_requires.php';
910915
$container->setParameter('inline_requires',true);
911916
$container->compile();

‎src/Symfony/Component/DependencyInjection/Tests/Loader/FileLoaderTest.php‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespaceSymfony\Component\DependencyInjection\Tests\Loader;
1313

1414
usePHPUnit\Framework\TestCase;
15+
usePHPUnit\Framework\Warning;
1516
usePsr\Container\ContainerInterfaceasPsrContainerInterface;
1617
useSymfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1718
useSymfony\Component\Config\FileLocator;
@@ -112,6 +113,10 @@ public function testRegisterClasses()
112113

113114
publicfunctiontestRegisterClassesWithExclude()
114115
{
116+
if (\PHP_VERSION_ID >=70400) {
117+
thrownewWarning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
118+
}
119+
115120
$container =newContainerBuilder();
116121
$container->setParameter('other_dir','OtherDir');
117122
$loader =newTestFileLoader($container,newFileLocator(self::$fixturesPath.'/Fixtures'));
@@ -141,6 +146,10 @@ public function testRegisterClassesWithExclude()
141146

142147
publicfunctiontestNestedRegisterClasses()
143148
{
149+
if (\PHP_VERSION_ID >=70400) {
150+
thrownewWarning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
151+
}
152+
144153
$container =newContainerBuilder();
145154
$loader =newTestFileLoader($container,newFileLocator(self::$fixturesPath.'/Fixtures'));
146155

@@ -169,6 +178,10 @@ public function testNestedRegisterClasses()
169178

170179
publicfunctiontestMissingParentClass()
171180
{
181+
if (\PHP_VERSION_ID >=70400) {
182+
thrownewWarning('PHP 7.4 breaks this test, see https://bugs.php.net/78351.');
183+
}
184+
172185
$container =newContainerBuilder();
173186
$container->setParameter('bad_classes_dir','BadClasses');
174187
$loader =newTestFileLoader($container,newFileLocator(self::$fixturesPath.'/Fixtures'));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp