Skip to content

Commit 7bdf660

Browse files
Merge branch '3.4' into 4.3
* 3.4: Adopt `@PHPUnit55Migration:risky` rule of php-cs-fixer
2 parents 77e23a5 + 234328e commit 7bdf660

5 files changed

+9
-5
lines changed

Tests/Constraints/GreaterThanOrEqualValidatorWithPositiveOrZeroConstraintTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,15 @@ public function testThrowsConstraintExceptionIfPropertyPath()
5555
{
5656
$this->expectException('Symfony\Component\Validator\Exception\ConstraintDefinitionException');
5757
$this->expectExceptionMessage('The "propertyPath" option of the "Symfony\Component\Validator\Constraints\PositiveOrZero" constraint cannot be set.');
58+
5859
return new PositiveOrZero(['propertyPath' => 'field']);
5960
}
6061

6162
public function testThrowsConstraintExceptionIfValue()
6263
{
6364
$this->expectException('Symfony\Component\Validator\Exception\ConstraintDefinitionException');
6465
$this->expectExceptionMessage('The "value" option of the "Symfony\Component\Validator\Constraints\PositiveOrZero" constraint cannot be set.');
66+
6567
return new PositiveOrZero(['value' => 0]);
6668
}
6769

Tests/Constraints/GreaterThanValidatorWithPositiveConstraintTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@ public function testThrowsConstraintExceptionIfPropertyPath()
5353
{
5454
$this->expectException('Symfony\Component\Validator\Exception\ConstraintDefinitionException');
5555
$this->expectExceptionMessage('The "propertyPath" option of the "Symfony\Component\Validator\Constraints\Positive" constraint cannot be set.');
56+
5657
return new Positive(['propertyPath' => 'field']);
5758
}
5859

5960
public function testThrowsConstraintExceptionIfValue()
6061
{
6162
$this->expectException('Symfony\Component\Validator\Exception\ConstraintDefinitionException');
6263
$this->expectExceptionMessage('The "value" option of the "Symfony\Component\Validator\Constraints\Positive" constraint cannot be set.');
64+
6365
return new Positive(['value' => 0]);
6466
}
6567

Tests/Constraints/LessThanOrEqualValidatorWithNegativeOrZeroConstraintTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@ public function testThrowsConstraintExceptionIfPropertyPath()
5353
{
5454
$this->expectException('Symfony\Component\Validator\Exception\ConstraintDefinitionException');
5555
$this->expectExceptionMessage('The "propertyPath" option of the "Symfony\Component\Validator\Constraints\NegativeOrZero" constraint cannot be set.');
56+
5657
return new NegativeOrZero(['propertyPath' => 'field']);
5758
}
5859

5960
public function testThrowsConstraintExceptionIfValue()
6061
{
6162
$this->expectException('Symfony\Component\Validator\Exception\ConstraintDefinitionException');
6263
$this->expectExceptionMessage('The "value" option of the "Symfony\Component\Validator\Constraints\NegativeOrZero" constraint cannot be set.');
64+
6365
return new NegativeOrZero(['value' => 0]);
6466
}
6567

Tests/Constraints/LessThanValidatorWithNegativeConstraintTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@ public function testThrowsConstraintExceptionIfPropertyPath()
5353
{
5454
$this->expectException('Symfony\Component\Validator\Exception\ConstraintDefinitionException');
5555
$this->expectExceptionMessage('The "propertyPath" option of the "Symfony\Component\Validator\Constraints\Negative" constraint cannot be set.');
56+
5657
return new Negative(['propertyPath' => 'field']);
5758
}
5859

5960
public function testThrowsConstraintExceptionIfValue()
6061
{
6162
$this->expectException('Symfony\Component\Validator\Exception\ConstraintDefinitionException');
6263
$this->expectExceptionMessage('The "value" option of the "Symfony\Component\Validator\Constraints\Negative" constraint cannot be set.');
64+
6365
return new Negative(['value' => 0]);
6466
}
6567

Tests/Resources/TranslationFilesTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ class TranslationFilesTest extends TestCase
2020
*/
2121
public function testTranslationFileIsValid($filePath)
2222
{
23-
if (class_exists('PHPUnit_Util_XML')) {
24-
\PHPUnit_Util_XML::loadfile($filePath, false, false, true);
25-
} else {
26-
\PHPUnit\Util\XML::loadfile($filePath, false, false, true);
27-
}
23+
\PHPUnit\Util\XML::loadfile($filePath, false, false, true);
2824

2925
$this->addToAssertionCount(1);
3026
}

0 commit comments

Comments
 (0)