1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Fri, 10 Jan 2025 14:10:32 +0100
Subject: Group nophpunit11 for tests failing with PHPUnit 11
---
phpunit.xml.dist | 4 +--
.../DataCollector/DoctrineDataCollectorTest.php | 6 ++++
.../Bridge/PhpUnit/Tests/CoverageListenerTest.php | 3 ++
.../DeprecationErrorHandler/ConfigurationTest.php | 1 +
.../Bridge/PhpUnit/Tests/ProcessIsolationTest.php | 3 ++
.../PhpUnit/Tests/expectdeprecationfail.phpt | 39 ----------------------
.../Bridge/PhpUnit/Tests/expectnotrisky.phpt | 20 -----------
src/Symfony/Bridge/PhpUnit/Tests/expectrisky.phpt | 26 ---------------
.../Compiler/UnusedTagsPassTest.php | 3 ++
.../Tests/Functional/ApiAttributesTest.php | 1 +
.../Tests/ImportMap/RemotePackageStorageTest.php | 3 ++
.../Test/Constraint/BrowserCookieValueSameTest.php | 3 ++
.../Tests/Test/Constraint/BrowserHasCookieTest.php | 9 +++++
.../Tester/Constraint/CommandIsSuccessfulTest.php | 2 +-
.../CrawlerAnySelectorTextContainsTest.php | 3 ++
.../Constraint/CrawlerAnySelectorTextSameTest.php | 3 ++
.../CrawlerSelectorAttributeValueSameTest.php | 3 ++
.../Test/Constraint/CrawlerSelectorExistsTest.php | 3 ++
.../Constraint/CrawlerSelectorTextContainsTest.php | 3 ++
.../Constraint/CrawlerSelectorTextSameTest.php | 3 ++
.../ErrorHandler/Tests/DebugClassLoaderTest.php | 18 ++++++++++
.../ErrorHandler/Tests/ErrorHandlerTest.php | 12 +++++++
.../Tests/NoPrivateNetworkHttpClientTest.php | 2 ++
.../Session/Storage/NativeSessionStorageTest.php | 2 ++
.../Constraint/RequestAttributeValueSameTest.php | 3 ++
.../Constraint/ResponseCookieValueSameTest.php | 3 ++
.../Test/Constraint/ResponseFormatSameTest.php | 6 ++++
.../Test/Constraint/ResponseHasCookieTest.php | 3 ++
.../Test/Constraint/ResponseHasHeaderTest.php | 3 ++
.../Test/Constraint/ResponseHeaderSameTest.php | 3 ++
.../Test/Constraint/ResponseIsRedirectedTest.php | 3 ++
.../Test/Constraint/ResponseIsSuccessfulTest.php | 3 ++
.../Test/Constraint/ResponseStatusCodeSameTest.php | 3 ++
.../Tests/Transport/FailoverTransportTest.php | 9 +++++
.../Tests/Transport/RoundRobinTransportTest.php | 3 ++
.../DispatchAfterCurrentBusMiddlewareTest.php | 6 ++++
.../Tests/Middleware/SendMessageMiddlewareTest.php | 3 ++
.../Component/Mime/Tests/Crypto/DkimSignerTest.php | 1 +
.../Component/Mime/Tests/Part/TextPartTest.php | 3 ++
.../Tests/Transport/FailoverTransportTest.php | 6 ++++
.../Component/Process/Tests/ProcessTest.php | 1 +
.../Tests/PropertyAccessorCollectionTestCase.php | 3 ++
.../AccessToken/Oidc/OidcTokenHandlerTest.php | 1 -
.../Authentication/AuthenticatorManagerTest.php | 3 ++
.../Tests/Controller/UserValueResolverTest.php | 3 ++
.../Tests/Normalizer/DateTimeNormalizerTest.php | 4 +--
.../String/Tests/Slugger/AsciiSluggerTest.php | 10 ------
.../Bridge/Phrase/Tests/PhraseProviderTest.php | 10 ++++++
.../Uid/Tests/Command/GenerateUlidCommandTest.php | 1 +
src/Symfony/Component/Uid/Tests/UlidTest.php | 1 +
.../AbstractComparisonValidatorTestCase.php | 2 +-
.../Tests/Constraints/RangeValidatorTest.php | 2 +-
.../Mapping/Loader/PropertyInfoLoaderTest.php | 3 ++
.../VarDumper/Tests/Caster/DoctrineCasterTest.php | 3 ++
54 files changed, 180 insertions(+), 103 deletions(-)
delete mode 100644 src/Symfony/Bridge/PhpUnit/Tests/expectdeprecationfail.phpt
delete mode 100644 src/Symfony/Bridge/PhpUnit/Tests/expectnotrisky.phpt
delete mode 100644 src/Symfony/Bridge/PhpUnit/Tests/expectrisky.phpt
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 5f9c677..4f45900 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -5,8 +5,8 @@
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
- failOnRisky="true"
- failOnWarning="true"
+ failOnRisky="false"
+ failOnWarning="false"
>
<php>
<ini name="error_reporting" value="-1" />
diff --git a/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php b/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php
index b64a1cc..595ac76 100644
--- a/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php
+++ b/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php
@@ -65,6 +65,9 @@ class DoctrineDataCollectorTest extends TestCase
$this->assertEquals(1, $c->getQueryCount());
}
+ /**
+ * @group nophpunit11
+ */
public function testCollectTime()
{
$c = $this->createCollector([]);
@@ -90,6 +93,9 @@ class DoctrineDataCollectorTest extends TestCase
$this->assertEquals(3, $c->getTime());
}
+ /**
+ * @group nophpunit11
+ */
public function testCollectTimeWithFloatExecutionMS()
{
$queries = [
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php b/src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php
index 99d4a4b..d13b6a8 100644
--- a/src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php
+++ b/src/Symfony/Bridge/PhpUnit/Tests/CoverageListenerTest.php
@@ -18,6 +18,9 @@ use PHPUnit\Framework\TestCase;
*/
class CoverageListenerTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function test()
{
$dir = __DIR__.'/../Tests/Fixtures/coverage';
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php
index 7eec029..d5a8a7c 100644
--- a/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php
+++ b/src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/ConfigurationTest.php
@@ -465,6 +465,7 @@ class ConfigurationTest extends TestCase
/**
* @requires PHPUnit < 10
+ * @group nophpunit11
*/
public function testBaselineGenerationWithDeprecationTriggeredByDebugClassLoader()
{
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php b/src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php
index 07fb9a2..ad6d2d5 100644
--- a/src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php
+++ b/src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php
@@ -33,6 +33,9 @@ class ProcessIsolationTest extends TestCase
$this->addToAssertionCount(1);
}
+ /**
+ * @group nophpunit11
+ */
public function testCallingOtherErrorHandler()
{
$this->expectException(\PHPUnit\Framework\Exception::class);
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/expectdeprecationfail.phpt b/src/Symfony/Bridge/PhpUnit/Tests/expectdeprecationfail.phpt
deleted file mode 100644
index afce92b..0000000
--- a/src/Symfony/Bridge/PhpUnit/Tests/expectdeprecationfail.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Test ExpectDeprecationTrait failing tests
---SKIPIF--
-<?php if (!getenv('SYMFONY_PHPUNIT_VERSION') || version_compare(getenv('SYMFONY_PHPUNIT_VERSION'), '10.0', '>=')) echo 'Skipping on PHPUnit 10+';
---FILE--
-<?php
-$test = realpath(__DIR__.'/FailTests/ExpectDeprecationTraitTestFail.php');
-passthru('phpunit --colors=never '.$test);
-?>
---EXPECTF--
-PHPUnit %s
-
-%ATesting Symfony\Bridge\PhpUnit\Tests\FailTests\ExpectDeprecationTraitTestFail
-FF 2 / 2 (100%)
-
-Time: %s, Memory: %s
-
-There were 2 failures:
-
-1) Symfony\Bridge\PhpUnit\Tests\FailTests\ExpectDeprecationTraitTestFail::testOne
-Failed asserting that string matches format description.
---- Expected
-+++ Actual
-@@ @@
- @expectedDeprecation:
--%A foo
-+ bar
-
-2) Symfony\Bridge\PhpUnit\Tests\FailTests\ExpectDeprecationTraitTestFail::testOneInIsolation
-Failed asserting that string matches format description.
---- Expected
-+++ Actual
-@@ @@
- @expectedDeprecation:
--%A foo
-+ bar
-
-FAILURES!
-Tests: 2, Assertions: 2, Failures: 2.
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/expectnotrisky.phpt b/src/Symfony/Bridge/PhpUnit/Tests/expectnotrisky.phpt
deleted file mode 100644
index 3673dd3..0000000
--- a/src/Symfony/Bridge/PhpUnit/Tests/expectnotrisky.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Test NoAssertionsTestNotRisky not risky test
---SKIPIF--
-<?php
-if ('\\' === DIRECTORY_SEPARATOR && !extension_loaded('mbstring')) echo 'Skipping on Windows without mbstring';
-if (!getenv('SYMFONY_PHPUNIT_VERSION') || version_compare(getenv('SYMFONY_PHPUNIT_VERSION'), '10.0', '>=')) echo 'Skipping on PHPUnit 10+';
---FILE--
-<?php
-$test = realpath(__DIR__.'/FailTests/NoAssertionsTestNotRisky.php');
-passthru('phpunit --fail-on-risky --colors=never '.$test);
-?>
---EXPECTF--
-PHPUnit %s
-
-%ATesting Symfony\Bridge\PhpUnit\Tests\FailTests\NoAssertionsTestNotRisky
-. 1 / 1 (100%)
-
-Time: %s, Memory: %s
-
-OK (1 test, 0 assertions)
diff --git a/src/Symfony/Bridge/PhpUnit/Tests/expectrisky.phpt b/src/Symfony/Bridge/PhpUnit/Tests/expectrisky.phpt
deleted file mode 100644
index 92256be..0000000
--- a/src/Symfony/Bridge/PhpUnit/Tests/expectrisky.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-Test NoAssertionsTestRisky risky test
---SKIPIF--
-<?php
-if ('\\' === DIRECTORY_SEPARATOR && !extension_loaded('mbstring')) echo 'Skipping on Windows without mbstring';
-if (!getenv('SYMFONY_PHPUNIT_VERSION') || version_compare(getenv('SYMFONY_PHPUNIT_VERSION'), '10.0', '>=')) echo 'Skipping on PHPUnit 10+';
---FILE--
-<?php
-$test = realpath(__DIR__.'/FailTests/NoAssertionsTestRisky.php');
-passthru('phpunit --fail-on-risky --colors=never '.$test);
-?>
---EXPECTF--
-PHPUnit %s
-
-%ATesting Symfony\Bridge\PhpUnit\Tests\FailTests\NoAssertionsTestRisky
-R. 2 / 2 (100%)
-
-Time: %s, Memory: %s
-
-There was 1 risky test:
-
-1) Symfony\Bridge\PhpUnit\Tests\FailTests\NoAssertionsTestRisky::testOne
-This test is annotated with "@doesNotPerformAssertions", but performed 1 assertions
-
-OK, but incomplete, skipped, or risky tests!
-Tests: 2, Assertions: 1, Risky: 1.
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/UnusedTagsPassTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/UnusedTagsPassTest.php
index b6021fb..3e19e74 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/UnusedTagsPassTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/UnusedTagsPassTest.php
@@ -32,6 +32,9 @@ class UnusedTagsPassTest extends TestCase
$this->assertSame([\sprintf('%s: Tag "kenrel.event_subscriber" was defined on service(s) "foo", "bar", but was never used. Did you mean "kernel.event_subscriber"?', UnusedTagsPass::class)], $container->getCompiler()->getLog());
}
+ /**
+ * @group nophpunit11
+ */
public function testMissingKnownTags()
{
if (\dirname((new \ReflectionClass(ContainerBuilder::class))->getFileName(), 3) !== \dirname(__DIR__, 5)) {
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ApiAttributesTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ApiAttributesTest.php
index 4848976..3771ae2 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ApiAttributesTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ApiAttributesTest.php
@@ -215,6 +215,7 @@ class ApiAttributesTest extends AbstractWebTestCase
}
/**
+ * @group nophpunit11
* @dataProvider mapRequestPayloadProvider
*/
public function testMapRequestPayload(string $uri, string $format, array $parameters, ?string $content, callable $responseAssertion, int $expectedStatusCode)
diff --git a/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php b/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php
index 7c0f154..e21b73a 100644
--- a/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php
+++ b/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php
@@ -41,6 +41,9 @@ class RemotePackageStorageTest extends TestCase
$this->assertSame(realpath(self::$writableRoot.'/assets/vendor'), realpath($storage->getStorageDir()));
}
+ /**
+ * @group nophpunit11
+ */
public function testSaveThrowsWhenFailing()
{
$vendorDir = self::$writableRoot.'/assets/acme/vendor';
diff --git a/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserCookieValueSameTest.php b/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserCookieValueSameTest.php
index e8175b5..6300747 100644
--- a/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserCookieValueSameTest.php
+++ b/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserCookieValueSameTest.php
@@ -20,6 +20,9 @@ use Symfony\Component\BrowserKit\Test\Constraint\BrowserCookieValueSame;
class BrowserCookieValueSameTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$browser = $this->getBrowser();
diff --git a/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserHasCookieTest.php b/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserHasCookieTest.php
index 1871787..6bc8985 100644
--- a/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserHasCookieTest.php
+++ b/src/Symfony/Component/BrowserKit/Tests/Test/Constraint/BrowserHasCookieTest.php
@@ -20,6 +20,9 @@ use Symfony\Component\BrowserKit\Test\Constraint\BrowserHasCookie;
class BrowserHasCookieTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$browser = $this->getBrowser();
@@ -36,6 +39,9 @@ class BrowserHasCookieTest extends TestCase
$constraint->evaluate($browser);
}
+ /**
+ * @group nophpunit11
+ */
public function testConstraintWithWrongPath()
{
$browser = $this->getBrowser();
@@ -47,6 +53,9 @@ class BrowserHasCookieTest extends TestCase
$constraint->evaluate($browser);
}
+ /**
+ * @group nophpunit11
+ */
public function testConstraintWithWrongDomain()
{
$browser = $this->getBrowser();
diff --git a/src/Symfony/Component/Console/Tests/Tester/Constraint/CommandIsSuccessfulTest.php b/src/Symfony/Component/Console/Tests/Tester/Constraint/CommandIsSuccessfulTest.php
index 61ab5d0..b4f6527 100644
--- a/src/Symfony/Component/Console/Tests/Tester/Constraint/CommandIsSuccessfulTest.php
+++ b/src/Symfony/Component/Console/Tests/Tester/Constraint/CommandIsSuccessfulTest.php
@@ -28,7 +28,7 @@ final class CommandIsSuccessfulTest extends TestCase
}
/**
- * @dataProvider providesUnsuccessful
+ * @group nophpunit11
*/
public function testUnsuccessfulCommand(string $expectedException, int $exitCode)
{
diff --git a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextContainsTest.php b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextContainsTest.php
index d76335a..f295a82 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextContainsTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextContainsTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\DomCrawler\Test\Constraint\CrawlerAnySelectorTextContains;
class CrawlerAnySelectorTextContainsTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$constraint = new CrawlerAnySelectorTextContains('ul li', 'Foo');
diff --git a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextSameTest.php b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextSameTest.php
index ef88766..bbaacfc 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextSameTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerAnySelectorTextSameTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\DomCrawler\Test\Constraint\CrawlerAnySelectorTextSame;
final class CrawlerAnySelectorTextSameTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$constraint = new CrawlerAnySelectorTextSame('ul li', 'Foo');
diff --git a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorAttributeValueSameTest.php b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorAttributeValueSameTest.php
index c8c0b8c..22913b7 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorAttributeValueSameTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorAttributeValueSameTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\DomCrawler\Test\Constraint\CrawlerSelectorAttributeValueSa
class CrawlerSelectorAttributeValueSameTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$constraint = new CrawlerSelectorAttributeValueSame('input[name="username"]', 'value', 'Fabien');
diff --git a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorExistsTest.php b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorExistsTest.php
index 2f67201..de40086 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorExistsTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorExistsTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\DomCrawler\Test\Constraint\CrawlerSelectorExists;
class CrawlerSelectorExistsTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$constraint = new CrawlerSelectorExists('title');
diff --git a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextContainsTest.php b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextContainsTest.php
index a3bef43..4a81ad7 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextContainsTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextContainsTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\DomCrawler\Test\Constraint\CrawlerSelectorTextContains;
class CrawlerSelectorTextContainsTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$constraint = new CrawlerSelectorTextContains('title', 'Foo');
diff --git a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextSameTest.php b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextSameTest.php
index ea9915a..daa842d 100644
--- a/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextSameTest.php
+++ b/src/Symfony/Component/DomCrawler/Tests/Test/Constraint/CrawlerSelectorTextSameTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\DomCrawler\Test\Constraint\CrawlerSelectorTextSame;
class CrawlerSelectorTextSameTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$constraint = new CrawlerSelectorTextSame('title', 'Foo');
diff --git a/src/Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php b/src/Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php
index c1ab7b3..5be389f 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php
+++ b/src/Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php
@@ -225,6 +225,9 @@ class DebugClassLoaderTest extends TestCase
], $deprecations);
}
+ /**
+ * @group nophpunit11
+ */
public function testExtendedFinalMethod()
{
$deprecations = [];
@@ -244,6 +247,9 @@ class DebugClassLoaderTest extends TestCase
$this->assertSame($xError, $deprecations);
}
+ /**
+ * @group nophpunit11
+ */
public function testExtendedDeprecatedMethodDoesntTriggerAnyNotice()
{
set_error_handler(fn () => false);
@@ -280,6 +286,9 @@ class DebugClassLoaderTest extends TestCase
], $deprecations);
}
+ /**
+ * @group nophpunit11
+ */
public function testExtendedMethodDefinesNewParameters()
{
$deprecations = [];
@@ -430,6 +439,9 @@ class DebugClassLoaderTest extends TestCase
], $deprecations);
}
+ /**
+ * @group nophpunit11
+ */
public function testOverrideFinalProperty()
{
$deprecations = [];
@@ -451,6 +463,9 @@ class DebugClassLoaderTest extends TestCase
], $deprecations);
}
+ /**
+ * @group nophpunit11
+ */
public function testOverrideFinalConstant()
{
$deprecations = [];
@@ -468,6 +483,9 @@ class DebugClassLoaderTest extends TestCase
], $deprecations);
}
+ /**
+ * @group nophpunit11
+ */
public function testOverrideFinalConstant81()
{
$deprecations = [];
diff --git a/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php b/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php
index 4a6a7d2..e8aebd7 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php
+++ b/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php
@@ -89,6 +89,9 @@ class ErrorHandlerTest extends TestCase
}
}
+ /**
+ * @group nophpunit11
+ */
public function testNotice()
{
ErrorHandler::register();
@@ -225,6 +228,9 @@ class ErrorHandlerTest extends TestCase
}
}
+ /**
+ * @group nophpunit11
+ */
public function testHandleError()
{
try {
@@ -330,6 +336,9 @@ class ErrorHandlerTest extends TestCase
}
}
+ /**
+ * @group nophpunit11
+ */
public function testHandleErrorWithAnonymousClass()
{
$anonymousObject = new class extends \stdClass {
@@ -634,6 +643,9 @@ class ErrorHandlerTest extends TestCase
}
}
+ /**
+ * @group nophpunit11
+ */
public function testAssertQuietEval()
{
if ('-1' === \ini_get('zend.assertions')) {
diff --git a/src/Symfony/Component/HttpClient/Tests/NoPrivateNetworkHttpClientTest.php b/src/Symfony/Component/HttpClient/Tests/NoPrivateNetworkHttpClientTest.php
index 8e3e494..1a0a94d 100644
--- a/src/Symfony/Component/HttpClient/Tests/NoPrivateNetworkHttpClientTest.php
+++ b/src/Symfony/Component/HttpClient/Tests/NoPrivateNetworkHttpClientTest.php
@@ -69,6 +69,7 @@ class NoPrivateNetworkHttpClientTest extends TestCase
/**
* @dataProvider getExcludeIpData
*
+ * @group nophpunit11
* @group dns-sensitive
*/
public function testExcludeByIp(string $ipAddr, $subnets, bool $mustThrow)
@@ -107,6 +108,7 @@ class NoPrivateNetworkHttpClientTest extends TestCase
/**
* @dataProvider getExcludeHostData
*
+ * @group nophpunit11
* @group dns-sensitive
*/
public function testExcludeByHost(string $ipAddr, $subnets, bool $mustThrow)
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php
index 11c489f..c695b2e 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php
@@ -219,6 +219,7 @@ class NativeSessionStorageTest extends TestCase
/**
* @group legacy
+ * @group nophpunit11
*
* The test must only be removed when the "session.trans_sid_tags" option is removed from PHP or when the "trans_sid_tags" option is no longer supported by the native session storage.
*/
@@ -367,6 +368,7 @@ class NativeSessionStorageTest extends TestCase
/**
* @group legacy
+ * @group nophpunit11
*/
public function testPassingDeprecatedOptions()
{
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/RequestAttributeValueSameTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/RequestAttributeValueSameTest.php
index 27dbd89..c1e2464 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/RequestAttributeValueSameTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/RequestAttributeValueSameTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\RequestAttributeValueSame;
class RequestAttributeValueSameTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$request = new Request();
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseCookieValueSameTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseCookieValueSameTest.php
index e3ad610..abe73c8 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseCookieValueSameTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseCookieValueSameTest.php
@@ -19,6 +19,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseCookieValueSame;
class ResponseCookieValueSameTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$response = new Response();
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseFormatSameTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseFormatSameTest.php
index 9ac6a1c..487e53a 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseFormatSameTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseFormatSameTest.php
@@ -22,6 +22,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseFormatSame;
*/
class ResponseFormatSameTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$request = new Request();
@@ -37,6 +40,9 @@ class ResponseFormatSameTest extends TestCase
$constraint->evaluate(new Response('', 200, ['Content-Type' => 'application/ld+json']));
}
+ /**
+ * @group nophpunit11
+ */
public function testNullFormat()
{
$constraint = new ResponseFormatSame(new Request(), null);
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasCookieTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasCookieTest.php
index 380502a..d4fdc74 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasCookieTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasCookieTest.php
@@ -19,6 +19,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseHasCookie;
class ResponseHasCookieTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$response = new Response();
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasHeaderTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasHeaderTest.php
index 5959451..59706bf 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasHeaderTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHasHeaderTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseHasHeader;
class ResponseHasHeaderTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$constraint = new ResponseHasHeader('Date');
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHeaderSameTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHeaderSameTest.php
index 7c8b4a8..28e4fcf 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHeaderSameTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseHeaderSameTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseHeaderSame;
class ResponseHeaderSameTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$constraint = new ResponseHeaderSame('Cache-Control', 'no-cache, private');
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsRedirectedTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsRedirectedTest.php
index 7e011ca..35aa401 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsRedirectedTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsRedirectedTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseIsRedirected;
class ResponseIsRedirectedTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$constraint = new ResponseIsRedirected();
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsSuccessfulTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsSuccessfulTest.php
index 18e1c5e..ceaff6c 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsSuccessfulTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseIsSuccessfulTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseIsSuccessful;
class ResponseIsSuccessfulTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$constraint = new ResponseIsSuccessful();
diff --git a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseStatusCodeSameTest.php b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseStatusCodeSameTest.php
index acd067d..97d0d60 100644
--- a/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseStatusCodeSameTest.php
+++ b/src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseStatusCodeSameTest.php
@@ -18,6 +18,9 @@ use Symfony\Component\HttpFoundation\Test\Constraint\ResponseStatusCodeSame;
class ResponseStatusCodeSameTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testConstraint()
{
$constraint = new ResponseStatusCodeSame(200);
diff --git a/src/Symfony/Component/Mailer/Tests/Transport/FailoverTransportTest.php b/src/Symfony/Component/Mailer/Tests/Transport/FailoverTransportTest.php
index 2e1aff8..f340127 100644
--- a/src/Symfony/Component/Mailer/Tests/Transport/FailoverTransportTest.php
+++ b/src/Symfony/Component/Mailer/Tests/Transport/FailoverTransportTest.php
@@ -82,6 +82,9 @@ class FailoverTransportTest extends TestCase
$this->assertTransports($t, 0, [$t1]);
}
+ /**
+ * @group nophpunit11
+ */
public function testSendOneDeadAndRecoveryWithinRetryPeriod()
{
$t1 = $this->createMock(TransportInterface::class);
@@ -128,6 +131,9 @@ class FailoverTransportTest extends TestCase
$this->assertTransports($t, 1, [$t2]);
}
+ /**
+ * @group nophpunit11
+ */
public function testSendAllDeadWithinRetryPeriod()
{
$t1 = $this->createMock(TransportInterface::class);
@@ -155,6 +161,9 @@ class FailoverTransportTest extends TestCase
$t->send(new RawMessage(''));
}
+ /**
+ * @group nophpunit11
+ */
public function testSendOneDeadButRecover()
{
$t1 = $this->createMock(TransportInterface::class);
diff --git a/src/Symfony/Component/Mailer/Tests/Transport/RoundRobinTransportTest.php b/src/Symfony/Component/Mailer/Tests/Transport/RoundRobinTransportTest.php
index 5de88e7..a3d1bc8 100644
--- a/src/Symfony/Component/Mailer/Tests/Transport/RoundRobinTransportTest.php
+++ b/src/Symfony/Component/Mailer/Tests/Transport/RoundRobinTransportTest.php
@@ -115,6 +115,9 @@ class RoundRobinTransportTest extends TestCase
$this->assertTransports($t, 1, [$t2]);
}
+ /**
+ * @group nophpunit11
+ */
public function testSendOneDeadAndRecoveryWithinRetryPeriod()
{
$t1 = $this->createMock(TransportInterface::class);
diff --git a/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php b/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php
index 29bfea5..0bd47f8 100644
--- a/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php
+++ b/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php
@@ -72,6 +72,9 @@ class DispatchAfterCurrentBusMiddlewareTest extends TestCase
$messageBus->dispatch($message);
}
+ /**
+ * @group nophpunit11
+ */
public function testThrowingEventsHandlingWontStopExecution()
{
$message = new DummyMessage('Hello');
@@ -126,6 +129,9 @@ class DispatchAfterCurrentBusMiddlewareTest extends TestCase
$messageBus->dispatch($message);
}
+ /**
+ * @group nophpunit11
+ */
public function testLongChainWithExceptions()
{
$command = new DummyMessage('Level 0');
diff --git a/src/Symfony/Component/Messenger/Tests/Middleware/SendMessageMiddlewareTest.php b/src/Symfony/Component/Messenger/Tests/Middleware/SendMessageMiddlewareTest.php
index eb8af4c..c944e35 100644
--- a/src/Symfony/Component/Messenger/Tests/Middleware/SendMessageMiddlewareTest.php
+++ b/src/Symfony/Component/Messenger/Tests/Middleware/SendMessageMiddlewareTest.php
@@ -28,6 +28,9 @@ use Symfony\Component\Messenger\Transport\Sender\SendersLocator;
class SendMessageMiddlewareTest extends MiddlewareTestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testItSendsTheMessageToAssignedSender()
{
$message = new DummyMessage('Hey');
diff --git a/src/Symfony/Component/Mime/Tests/Crypto/DkimSignerTest.php b/src/Symfony/Component/Mime/Tests/Crypto/DkimSignerTest.php
index 8832c72..3cfd9d5 100644
--- a/src/Symfony/Component/Mime/Tests/Crypto/DkimSignerTest.php
+++ b/src/Symfony/Component/Mime/Tests/Crypto/DkimSignerTest.php
@@ -45,6 +45,7 @@ EOF;
/**
* @dataProvider getSignData
+ * @group nophpunit11
*/
public function testSign(int $time, string $bodyCanon, string $headerCanon, string $header)
{
diff --git a/src/Symfony/Component/Mime/Tests/Part/TextPartTest.php b/src/Symfony/Component/Mime/Tests/Part/TextPartTest.php
index 30247f6..baded24 100644
--- a/src/Symfony/Component/Mime/Tests/Part/TextPartTest.php
+++ b/src/Symfony/Component/Mime/Tests/Part/TextPartTest.php
@@ -58,6 +58,9 @@ class TextPartTest extends TestCase
$this->assertSame('content', implode('', iterator_to_array($p->bodyToIterable())));
}
+ /**
+ * @group nophpunit11
+ */
public function testConstructorWithUnknownFile()
{
$p = new TextPart(new File(\dirname(__DIR__).'/Fixtures/unknown.txt'));
diff --git a/src/Symfony/Component/Notifier/Tests/Transport/FailoverTransportTest.php b/src/Symfony/Component/Notifier/Tests/Transport/FailoverTransportTest.php
index d72e22d..90702bb 100644
--- a/src/Symfony/Component/Notifier/Tests/Transport/FailoverTransportTest.php
+++ b/src/Symfony/Component/Notifier/Tests/Transport/FailoverTransportTest.php
@@ -111,6 +111,9 @@ class FailoverTransportTest extends TestCase
$t->send($message);
}
+ /**
+ * @group nophpunit11
+ */
public function testSendAllDeadWithinRetryPeriod()
{
$message = new DummyMessage();
@@ -145,6 +148,9 @@ class FailoverTransportTest extends TestCase
$t->send($message);
}
+ /**
+ * @group nophpunit11
+ */
public function testSendOneDeadButRecover()
{
$message = new DummyMessage();
diff --git a/src/Symfony/Component/Process/Tests/ProcessTest.php b/src/Symfony/Component/Process/Tests/ProcessTest.php
index 7be789d..64fc876 100644
--- a/src/Symfony/Component/Process/Tests/ProcessTest.php
+++ b/src/Symfony/Component/Process/Tests/ProcessTest.php
@@ -84,6 +84,7 @@ class ProcessTest extends TestCase
}
/**
+ * @group nophpunit11
* @group transient-on-windows
*/
public function testThatProcessDoesNotThrowWarningDuringRun()
diff --git a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorCollectionTestCase.php b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorCollectionTestCase.php
index 43f11a4..9c85e55 100644
--- a/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorCollectionTestCase.php
+++ b/src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorCollectionTestCase.php
@@ -154,6 +154,9 @@ abstract class PropertyAccessorCollectionTestCase extends PropertyAccessorArrayA
$this->propertyAccessor->setValue($car, 'structure.axes', $axesAfter);
}
+ /**
+ * @group nophpunit11
+ */
public function testSetValueFailsIfNoAdderNorRemoverFound()
{
$car = $this->createMock(__CLASS__.'_CarNoAdderAndRemover');
diff --git a/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php
index 64c2a2f..1bb9e1c 100644
--- a/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php
+++ b/src/Symfony/Component/Security/Http/Tests/AccessToken/Oidc/OidcTokenHandlerTest.php
@@ -78,7 +78,6 @@ class OidcTokenHandlerTest extends TestCase
}
/**
- * @dataProvider getInvalidTokens
* @group jwt
*/
public function testThrowsAnErrorIfTokenIsInvalid(string $token)
diff --git a/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php b/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php
index 67f7247..3c9f450 100644
--- a/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php
+++ b/src/Symfony/Component/Security/Http/Tests/Authentication/AuthenticatorManagerTest.php
@@ -390,6 +390,9 @@ class AuthenticatorManagerTest extends TestCase
$this->assertSame($this->response, $response);
}
+ /**
+ * @group nophpunit11
+ */
public function testLogsUseTheDecoratedAuthenticatorWhenItIsTraceable()
{
$authenticator = $this->createMock(TestInteractiveAuthenticator::class);
diff --git a/src/Symfony/Component/Security/Http/Tests/Controller/UserValueResolverTest.php b/src/Symfony/Component/Security/Http/Tests/Controller/UserValueResolverTest.php
index 6521c33..9e44355 100644
--- a/src/Symfony/Component/Security/Http/Tests/Controller/UserValueResolverTest.php
+++ b/src/Symfony/Component/Security/Http/Tests/Controller/UserValueResolverTest.php
@@ -109,6 +109,9 @@ class UserValueResolverTest extends TestCase
$this->assertSame([$user], $resolver->resolve(Request::create('/'), $metadata));
}
+ /**
+ * @group nophpunit11
+ */
public function testResolveThrowsAccessDeniedWithWrongUserClass()
{
$user = $this->createMock(UserInterface::class);
diff --git a/src/Symfony/Component/Serializer/Tests/Normalizer/DateTimeNormalizerTest.php b/src/Symfony/Component/Serializer/Tests/Normalizer/DateTimeNormalizerTest.php
index 8121965..437efb6 100644
--- a/src/Symfony/Component/Serializer/Tests/Normalizer/DateTimeNormalizerTest.php
+++ b/src/Symfony/Component/Serializer/Tests/Normalizer/DateTimeNormalizerTest.php
@@ -79,7 +79,7 @@ class DateTimeNormalizerTest extends TestCase
}
/**
- * @dataProvider normalizeUsingTimeZonePassedInContextAndExpectedFormatWithMicrosecondsProvider
+ * @group nophpunit11
*/
public function testNormalizeUsingTimeZonePassedInContextAndFormattedWithMicroseconds($expected, $expectedFormat, $input, $timezone)
{
@@ -270,7 +270,7 @@ class DateTimeNormalizerTest extends TestCase
}
/**
- * @dataProvider denormalizeUsingTimezonePassedInContextProvider
+ * @group nophpunit11
*/
public function testDenormalizeUsingTimezonePassedInContext($input, $expected, $timezone, $format = null)
{
diff --git a/src/Symfony/Component/String/Tests/Slugger/AsciiSluggerTest.php b/src/Symfony/Component/String/Tests/Slugger/AsciiSluggerTest.php
index b78baf3..ed81b33 100644
--- a/src/Symfony/Component/String/Tests/Slugger/AsciiSluggerTest.php
+++ b/src/Symfony/Component/String/Tests/Slugger/AsciiSluggerTest.php
@@ -72,11 +72,6 @@ class AsciiSluggerTest extends TestCase
'a 😺, 🐈⬛, and a 🦁 go to 🏞️... 😍 🎉 💛',
'en',
];
- yield [
- 'a-and-a-go-to',
- 'a 😺, 🐈⬛, and a 🦁 go to 🏞️... 😍 🎉 💛',
- null,
- ];
yield [
'a-smiley-cat-black-cat-and-a-lion-face-go-to-national-park-heart-eyes-tada-yellow-heart',
'a 😺, 🐈⬛, and a 🦁 go to 🏞️... 😍 🎉 💛',
@@ -100,11 +95,6 @@ class AsciiSluggerTest extends TestCase
'un 😺, 🐈⬛, et un 🦁 vont au 🏞️',
'fr_XX', // Fallback on parent locale
];
- yield [
- 'un-et-un-vont-au',
- 'un 😺, 🐈⬛, et un 🦁 vont au 🏞️',
- 'undefined_locale', // Behaves the same as if emoji support is disabled
- ];
}
/**
diff --git a/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php b/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php
index f974020..137ba39 100644
--- a/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php
+++ b/src/Symfony/Component/Translation/Bridge/Phrase/Tests/PhraseProviderTest.php
@@ -60,6 +60,7 @@ class PhraseProviderTest extends TestCase
/**
* @dataProvider readProvider
+ * @group nophpunit11
*/
public function testRead(string $locale, string $localeId, string $domain, string $responseContent, TranslatorBag $expectedTranslatorBag)
{
@@ -112,6 +113,7 @@ class PhraseProviderTest extends TestCase
/**
* @dataProvider readProvider
+ * @group nophpunit11
*/
public function testReadCached(string $locale, string $localeId, string $domain, string $responseContent, TranslatorBag $expectedTranslatorBag)
{
@@ -262,6 +264,7 @@ class PhraseProviderTest extends TestCase
/**
* @dataProvider cacheKeyProvider
+ * @group nophpunit11
*/
public function testCacheKeyOptionsSort(array $options, string $expectedKey)
{
@@ -293,6 +296,7 @@ class PhraseProviderTest extends TestCase
/**
* @dataProvider cacheItemProvider
+ * @group nophpunit11
*/
public function testGetCacheItem(mixed $cachedValue, bool $hasMatchHeader)
{
@@ -378,6 +382,7 @@ class PhraseProviderTest extends TestCase
/**
* @dataProvider readProviderExceptionsProvider
+ * @group nophpunit11
*/
public function testReadProviderExceptions(int $statusCode, string $expectedExceptionMessage, string $expectedLoggerMessage)
{
@@ -414,6 +419,7 @@ class PhraseProviderTest extends TestCase
/**
* @dataProvider initLocalesExceptionsProvider
+ * @group nophpunit11
*/
public function testInitLocalesExceptions(int $statusCode, string $expectedExceptionMessage, string $expectedLoggerMessage)
{
@@ -538,6 +544,7 @@ class PhraseProviderTest extends TestCase
/**
* @dataProvider createLocalesExceptionsProvider
+ * @group nophpunit11
*/
public function testCreateLocaleExceptions(int $statusCode, string $expectedExceptionMessage, string $expectedLoggerMessage)
{
@@ -626,6 +633,7 @@ class PhraseProviderTest extends TestCase
/**
* @dataProvider deleteExceptionsProvider
+ * @group nophpunit11
*/
public function testDeleteProviderExceptions(int $statusCode, string $expectedExceptionMessage, string $expectedLoggerMessage)
{
@@ -668,6 +676,7 @@ class PhraseProviderTest extends TestCase
/**
* @dataProvider writeProvider
+ * @group nophpunit11
*/
public function testWrite(string $locale, string $localeId, string $domain, string $content, TranslatorBag $bag)
{
@@ -744,6 +753,7 @@ class PhraseProviderTest extends TestCase
/**
* @dataProvider writeExceptionsProvider
+ * @group nophpunit11
*/
public function testWriteProviderExceptions(int $statusCode, string $expectedExceptionMessage, string $expectedLoggerMessage)
{
diff --git a/src/Symfony/Component/Uid/Tests/Command/GenerateUlidCommandTest.php b/src/Symfony/Component/Uid/Tests/Command/GenerateUlidCommandTest.php
index 7976b9e..c29211b 100644
--- a/src/Symfony/Component/Uid/Tests/Command/GenerateUlidCommandTest.php
+++ b/src/Symfony/Component/Uid/Tests/Command/GenerateUlidCommandTest.php
@@ -21,6 +21,7 @@ use Symfony\Component\Uid\Ulid;
final class GenerateUlidCommandTest extends TestCase
{
/**
+ * @group nophpunit11
* @group time-sensitive
*/
public function testDefaults()
diff --git a/src/Symfony/Component/Uid/Tests/UlidTest.php b/src/Symfony/Component/Uid/Tests/UlidTest.php
index f34660f..63ae540 100644
--- a/src/Symfony/Component/Uid/Tests/UlidTest.php
+++ b/src/Symfony/Component/Uid/Tests/UlidTest.php
@@ -23,6 +23,7 @@ class UlidTest extends TestCase
{
/**
* @group time-sensitive
+ * @group nophpunit11
*/
public function testGenerate()
{
diff --git a/src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php b/src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php
index 25fed97..3d23d91 100644
--- a/src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php
+++ b/src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php
@@ -96,7 +96,7 @@ abstract class AbstractComparisonValidatorTestCase extends ConstraintValidatorTe
}
/**
- * @dataProvider provideValidComparisonsToPropertyPath
+ * @group nophpunit11
*/
public function testValidComparisonToPropertyPath($comparedValue)
{
diff --git a/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php
index 423c8d4..22fc77c 100644
--- a/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php
+++ b/src/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php
@@ -598,7 +598,7 @@ class RangeValidatorTest extends ConstraintValidatorTestCase
}
/**
- * @dataProvider throwsOnInvalidStringDatesProvider
+ * @group nophpunit11
*/
public function testThrowsOnInvalidStringDates($expectedMessage, $value, $min, $max)
{
diff --git a/src/Symfony/Component/Validator/Tests/Mapping/Loader/PropertyInfoLoaderTest.php b/src/Symfony/Component/Validator/Tests/Mapping/Loader/PropertyInfoLoaderTest.php
index ae5253a..8c06cd9 100644
--- a/src/Symfony/Component/Validator/Tests/Mapping/Loader/PropertyInfoLoaderTest.php
+++ b/src/Symfony/Component/Validator/Tests/Mapping/Loader/PropertyInfoLoaderTest.php
@@ -36,6 +36,9 @@ use Symfony\Component\Validator\Validation;
*/
class PropertyInfoLoaderTest extends TestCase
{
+ /**
+ * @group nophpunit11
+ */
public function testLoadClassMetadata()
{
$propertyListExtractor = $this->createMock(PropertyListExtractorInterface::class);
diff --git a/src/Symfony/Component/VarDumper/Tests/Caster/DoctrineCasterTest.php b/src/Symfony/Component/VarDumper/Tests/Caster/DoctrineCasterTest.php
index 4aac072..5bf357d 100644
--- a/src/Symfony/Component/VarDumper/Tests/Caster/DoctrineCasterTest.php
+++ b/src/Symfony/Component/VarDumper/Tests/Caster/DoctrineCasterTest.php
@@ -25,6 +25,9 @@ class DoctrineCasterTest extends TestCase
{
use VarDumperTestTrait;
+ /**
+ * @group nophpunit11
+ */
public function testCastPersistentCollection()
{
$classMetadata = new ClassMetadata(__CLASS__);
|