8000 Minor @requires function tests cleanup · symfony/symfony@cf4daad · GitHub
[go: up one dir, main page]

Skip to content

Commit cf4daad

Browse files
committed
Minor @requires function tests cleanup
1 parent df5ba2c commit cf4daad

File tree

12 files changed

+0
-39
lines changed

12 files changed

+0
-39
lines changed

src/Symfony/Bridge/Doctrine/Tests/IdGenerator/UlidGeneratorTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ public function testUlidCanBeGenerated()
2929
$this->assertTrue(Ulid::isValid($ulid));
3030
}
3131

32-
/**
33-
* @requires function \Symfony\Component\Uid\Factory\UlidFactory::create
34-
*/
3532
public function testUlidFactory()
3633
{
3734
$ulid = new Ulid('00000000000000000000000000');

src/Symfony/Bridge/Doctrine/Tests/IdGenerator/UuidGeneratorTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
use Symfony\Component\Uid\UuidV4;
1919
use Symfony\Component\Uid\UuidV6;
2020

21-
/**
22-
* @requires function \Symfony\Component\Uid\Factory\UuidFactory::create
23-
*/
2421
class UuidGeneratorTest extends TestCase
2522
{
2623
public function testUuidCanBeGenerated()

src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableCompiledUrlMatcherTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
use Symfony\Component\Routing\Route;
1919
use Symfony\Component\Routing\RouteCollection;
2020

21-
/**
22-
* @requires function \Symfony\Component\Routing\Matcher\CompiledUrlMatcher::match
23-
*/
2421
class RedirectableCompiledUrlMatcherTest extends TestCase
2522
{
2623
public function testRedirectWhenNoSlash()

src/Symfony/Component/Cache/Tests/Messenger/EarlyExpirationDispatcherTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
use Symfony\Component\Messenger\Envelope;
2727
use Symfony\Component\Messenger\MessageBusInterface;
2828

29-
/**
30-
* @requires function Symfony\Component\DependencyInjection\ReverseContainer::__construct
31-
*/
3229
class EarlyExpirationDispatcherTest extends TestCase
3330
{
3431
public static function tearDownAfterClass(): void

src/Symfony/Component/Cache/Tests/Messenger/EarlyExpirationHandlerTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
use Symfony\Component\DependencyInjection\ServiceLocator;
2222
use Symfony\Component\Filesystem\Filesystem;
2323

24-
/**
25-
* @requires function Symfony\Component\DependencyInjection\ReverseContainer::__construct
26-
*/
2724
class EarlyExpirationHandlerTest extends TestCase
2825
{
2926
public static function tearDownAfterClass(): void

src/Symfony/Component/Cache/Tests/Messenger/EarlyExpirationMessageTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
use Symfony\Component\DependencyInjection\ReverseContainer;
2020
use Symfony\Component\DependencyInjection\ServiceLocator;
2121

22-
/**
23-
* @requires function Symfony\Component\DependencyInjection\ReverseContainer::__construct
24-
*/
2522
class EarlyExpirationMessageTest extends TestCase
2623
{
2724
public function testCreate()

src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,9 +714,6 @@ public function testNoInteraction()
714714
$this->assertEquals('not yet', $dialog->ask($this->createStreamableInputInterfaceMock(null, false), $this->createOutputInterface(), $question));
715715
}
716716

717-
/**
718-
* @requires function mb_strwidth
719-
*/
720717
public function testChoiceOutputFormattingQuestionForUtf8Keys()
721718
{
722719
$question = 'Lorem ipsum?';

src/Symfony/Component/Form/Tests/ChoiceList/Factory/DefaultChoiceListFactoryTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,6 @@ function ($object, $key, $value) {
759759
$this->assertFlatViewWithAttr($view);
760760
}
761761

762-
/**
763-
* @requires function Symfony\Component\Translation\TranslatableMessage::__construct
764-
*/
765762
public function testPassTranslatableMessageAsLabelDoesntCastItToString()
766763
{
767764
$view = $this->factory->createView(

src/Symfony/Component/PropertyAccess/Tests/PropertyAccessorTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,9 +907,6 @@ public function testGetDynamicPublicPropertyWithMagicGetterAllow()
907907
$this->assertSame($value, $this->propertyAccessor->getValue($object, $path));
908908
}
909909

910-
/**
911-
* @requires PHP 7.4
912-
*/
913910
public function testSetValueWrongTypeShouldThrowWrappedException()
914911
{
915912
$object = new TestClassTypedProperty();

src/Symfony/Component/VarDumper/Tests/Caster/ExceptionCasterTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,6 @@ public function testHtmlDump()
184184
$this->assertStringMatchesFormat($expectedDump, $dump);
185185
}
186186

187-
/**
188-
* @requires function Twig\Template::getSourceContext
189-
*/
190187
public function testFrameWithTwig()
191188
{
192189
require_once \dirname(__DIR__).'/Fixtures/Twig.php';

src/Symfony/Component/VarDumper/Tests/Dumper/CliDumperTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,6 @@ public function testFlags()
293293
putenv('DUMP_STRING_LENGTH=');
294294
}
295295

296-
/**
297-
* @requires function Twig\Template::getSourceContext
298-
*/
299296
public function testThrowingCaster()
300297
{
301298
$out = fopen('php://memory', 'r+');

src/Symfony/Component/Workflow/Tests/MarkingStore/MethodMarkingStoreTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ public function testGetMarkingWithValueObject()
8787
$this->assertSame('first_place', (string) $subject->getMarking());
8888
}
8989

90-
/**
91-
* @requires PHP 7.4
92-
*/
9390
public function testGetMarkingWithUninitializedProperty()
9491
{
9592
$subject = new SubjectWithType();
@@ -102,9 +99,6 @@ public function testGetMarkingWithUninitializedProperty()
10299
$this->assertCount(0, $marking->getPlaces());
103100
}
104101

105-
/**
106-
* @requires PHP 7.4
107-
*/
108102
public function testGetMarkingWithUninitializedProperty2()
109103
{
110104
$subject = new SubjectWithType();

0 commit comments

Comments
 (0)
0