Skip to content

Commit

Permalink
CS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Feb 16, 2023
1 parent 1b94a1c commit 535d93f
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions Tests/Constraints/BicValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ public function testInvalidBics($bic, $code)

/**
* @requires PHP 8
*
* @dataProvider getInvalidBics
*/
public function testInvalidBicsNamed($bic, $code)
Expand Down
1 change: 1 addition & 0 deletions Tests/Constraints/CssColorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

/**
* @author Mathieu Santostefano <[email protected]>
*
* @requires PHP 8
*/
final class CssColorTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions Tests/Constraints/CurrencyValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public function testInvalidCurrencies($currency)

/**
* @requires PHP 8
*
* @dataProvider getInvalidCurrencies
*/
public function testInvalidCurrenciesNamed($currency)
Expand Down
1 change: 1 addition & 0 deletions Tests/Constraints/IsNullValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function testInvalidValues($value, $valueAsString)

/**
* @requires PHP 8
*
* @dataProvider getInvalidValues
*/
public function testInvalidValuesNamed($value, $valueAsString)
Expand Down
1 change: 1 addition & 0 deletions Tests/Constraints/LengthTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function testInvalidNormalizerObjectThrowsException()

/**
* @group legacy
*
* @dataProvider allowEmptyStringOptionData
*/
public function testDeprecatedAllowEmptyStringOption(bool $value)
Expand Down
3 changes: 3 additions & 0 deletions Tests/Constraints/LengthValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ public function testInvalidValuesMin($value)

/**
* @requires PHP 8
*
* @dataProvider getThreeOrLessCharacters
*/
public function testInvalidValuesMinNamed($value)
Expand Down Expand Up @@ -229,6 +230,7 @@ public function testInvalidValuesMax($value)

/**
* @requires PHP 8
*
* @dataProvider getFiveOrMoreCharacters
*/
public function testInvalidValuesMaxNamed($value)
Expand Down Expand Up @@ -270,6 +272,7 @@ public function testInvalidValuesExactLessThanFour($value)

/**
* @requires PHP 8
*
* @dataProvider getThreeOrLessCharacters
*/
public function testInvalidValuesExactLessThanFourNamed($value)
Expand Down
2 changes: 2 additions & 0 deletions Tests/Constraints/RangeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public static function provideDeprecationTriggeredIfMinMaxAndMinMessageOrMaxMess

/**
* @group legacy
*
* @dataProvider provideDeprecationTriggeredIfMinMaxAndMinMessageOrMaxMessageSet
*/
public function testDeprecationTriggeredIfMinMaxAndMinMessageOrMaxMessageSet(array $options, bool $expectedDeprecatedMinMessageSet, bool $expectedDeprecatedMaxMessageSet)
Expand All @@ -107,6 +108,7 @@ public static function provideDeprecationNotTriggeredIfNotMinMaxOrNotMinMessageN

/**
* @doesNotPerformAssertions
*
* @dataProvider provideDeprecationNotTriggeredIfNotMinMaxOrNotMinMessageNorMaxMessageSet
*/
public function testDeprecationNotTriggeredIfNotMinMaxOrNotMinMessageNorMaxMessageSet(array $options)
Expand Down
2 changes: 2 additions & 0 deletions Tests/Constraints/RegexValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public function testValidValuesWithWhitespaces($value)

/**
* @requires PHP 8
*
* @dataProvider getValidValuesWithWhitespaces
*/
public function testValidValuesWithWhitespacesNamed($value)
Expand Down Expand Up @@ -125,6 +126,7 @@ public function testInvalidValues($value)

/**
* @requires PHP 8
*
* @dataProvider getInvalidValues
*/
public function testInvalidValuesNamed($value)
Expand Down
3 changes: 1 addition & 2 deletions Tests/Constraints/UlidValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace Symfony\Component\Validator\Tests\Constraints;

use stdClass;
use Symfony\Component\Validator\Constraints\Ulid;
use Symfony\Component\Validator\Constraints\UlidValidator;
use Symfony\Component\Validator\Exception\UnexpectedValueException;
Expand Down Expand Up @@ -44,7 +43,7 @@ public function testEmptyStringIsValid()
public function testExpectsStringCompatibleType()
{
$this->expectException(UnexpectedValueException::class);
$this->validator->validate(new stdClass(), new Ulid());
$this->validator->validate(new \stdClass(), new Ulid());
}

public function testValidUlid()
Expand Down

0 comments on commit 535d93f

Please sign in to comment.