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

Appearance settings

Commit 5eeb754

Browse filesBrowse files
committed
Move Constraint validator test case to Test namespace
1 parent c55baba commit 5eeb754
Copy full SHA for 5eeb754

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

46 files changed

+115
-49
lines changed

‎UPGRADE-3.1.md

Copy file name to clipboardExpand all lines: UPGRADE-3.1.md
+28Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
UPGRADE FROM 3.0 to 3.1
22
=======================
33

4+
<<<<<<< HEAD
45
DependencyInjection
56
-------------------
67

@@ -73,10 +74,17 @@ Yaml
7374

7475
* Deprecated support for passing `true`/`false` as the fourth argument to the
7576
`parse()` method to parse objects as maps.
77+
=======
78+
### Validator
79+
80+
* `Tests\Constraints\AbstractConstraintValidatorTest` has been removed in
81+
favor of `Test\ConstraintValidatorTestCase`.
82+
>>>>>>> Move Constraint validator test case to Test namespace
7683
7784
Before:
7885

7986
```php
87+
<<<<<<< HEAD
8088
Yaml::parse('{ "foo": "bar", "fiz": "cat" }', false, false, true);
8189
```
8290

@@ -93,11 +101,21 @@ Yaml
93101

94102
```php
95103
Yaml::dump(array('foo' => new A(), 'bar' => 1), 0, 0, true);
104+
=======
105+
// ...
106+
use Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest;
107+
108+
class MyCustomValidatorTest extends AbstractConstraintValidatorTest
109+
{
110+
// ...
111+
}
112+
>>>>>>> Move Constraint validator test case to Test namespace
96113
```
97114

98115
After:
99116

100117
```php
118+
<<<<<<< HEAD
101119
Yaml::dump(array('foo' => new A(), 'bar' => 1), 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE);
102120
```
103121

@@ -117,3 +135,13 @@ Yaml
117135

118136
* The `!!php/object` tag to indicate dumped PHP objects has been deprecated
119137
and will be removed in Symfony 4.0. Use the `!php/object` tag instead.
138+
=======
139+
// ...
140+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
141+
142+
class MyCustomValidatorTest extends ConstraintValidatorTestCase
143+
{
144+
// ...
145+
}
146+
```
147+
>>>>>>> Move Constraint validator test case to Test namespace

‎src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/Validator/Constraints/UniqueEntityValidatorTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
use Symfony\Bridge\Doctrine\Tests\Fixtures\AssociationEntity;
2222
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
2323
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator;
24-
use Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest;
24+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
2525
use Doctrine\ORM\Tools\SchemaTool;
2626

2727
/**
2828
* @author Bernhard Schussek <bschussek@gmail.com>
2929
*/
30-
class UniqueEntityValidatorTest extends AbstractConstraintValidatorTest
30+
class UniqueEntityValidatorTest extends ConstraintValidatorTestCase
3131
{
3232
const EM_NAME = 'foo';
3333

‎src/Symfony/Bridge/Doctrine/composer.json

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"symfony/property-info": "~2.8|3.0",
2929
"symfony/security": "~2.8|~3.0",
3030
"symfony/expression-language": "~2.8|~3.0",
31-
"symfony/validator": "~2.8|~3.0",
31+
"symfony/validator": "~3.1",
3232
"symfony/translation": "~2.8|~3.0",
3333
"doctrine/data-fixtures": "1.0.*",
3434
"doctrine/dbal": "~2.4",

‎src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Tests/Extension/Validator/Constraints/FormValidatorTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
use Symfony\Component\Validator\Constraints\NotNull;
2222
use Symfony\Component\Validator\Constraints\NotBlank;
2323
use Symfony\Component\Validator\Constraints\Valid;
24-
use Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest;
24+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
2525

2626
/**
2727
* @author Bernhard Schussek <bschussek@gmail.com>
2828
*/
29-
class FormValidatorTest extends AbstractConstraintValidatorTest
29+
class FormValidatorTest extends ConstraintValidatorTestCase
3030
{
3131
/**
3232
* @var \PHPUnit_Framework_MockObject_MockObject

‎src/Symfony/Component/Form/composer.json

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"require-dev": {
2727
"doctrine/collections": "~1.0",
28-
"symfony/validator": "~2.8|~3.0",
28+
"symfony/validator": "~3.1",
2929
"symfony/dependency-injection": "~2.8|~3.0",
3030
"symfony/http-foundation": "~2.8|~3.0",
3131
"symfony/http-kernel": "~2.8|~3.0",

‎src/Symfony/Component/Security/Core/Tests/Validator/Constraints/UserPasswordValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Tests/Validator/Constraints/UserPasswordValidatorTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
use Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface;
1717
use Symfony\Component\Security\Core\Validator\Constraints\UserPassword;
1818
use Symfony\Component\Security\Core\Validator\Constraints\UserPasswordValidator;
19-
use Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest;
19+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
2020

2121
/**
2222
* @author Bernhard Schussek <bschussek@gmail.com>
2323
*/
24-
abstract class UserPasswordValidatorTest extends AbstractConstraintValidatorTest
24+
abstract class UserPasswordValidatorTest extends ConstraintValidatorTestCase
2525
{
2626
const PASSWORD = 's3Cr3t';
2727

‎src/Symfony/Component/Security/Core/composer.json

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"symfony/expression-language": "~2.8|~3.0",
2626
"symfony/http-foundation": "~2.8|~3.0",
2727
"symfony/ldap": "~3.1",
28-
"symfony/validator": "~2.8|~3.0",
28+
"symfony/validator": "~3.1",
2929
"psr/log": "~1.0"
3030
},
3131
"suggest": {

‎src/Symfony/Component/Security/composer.json

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"symfony/finder": "~2.8|~3.0",
3636
"symfony/polyfill-intl-icu": "~1.0",
3737
"symfony/routing": "~2.8|~3.0",
38-
"symfony/validator": "~2.8|~3.0",
38+
"symfony/validator": "~3.1",
3939
"symfony/expression-language": "~2.8|~3.0",
4040
"symfony/ldap": "~3.1",
4141
"psr/log": "~1.0"

‎src/Symfony/Component/Validator/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
CHANGELOG
22
=========
33

4+
* removed `Tests\Constraints\AbstractContraintValidatorTest` in favor of `Test\ConstraintValidatorTestCase`
5+
46
2.8.0
57
-----
68

+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Component\Validator\Tests\Constraints;
12+
namespace Symfony\Component\Validator\Test;
1313

1414
use Symfony\Component\Validator\Constraint;
1515
use Symfony\Component\Validator\Constraints\NotNull;
@@ -21,11 +21,11 @@
2121
use Symfony\Component\Validator\Mapping\PropertyMetadata;
2222

2323
/**
24-
* @since 2.5.3
24+
* A test case to ease testing Constraint Validators.
2525
*
2626
* @author Bernhard Schussek <bschussek@gmail.com>
2727
*/
28-
abstract class AbstractConstraintValidatorTest extends \PHPUnit_Framework_TestCase
28+
abstract class ConstraintValidatorTestCase extends \PHPUnit_Framework_TestCase
2929
{
3030
/**
3131
* @var ExecutionContextInterface

‎src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Symfony\Component\Intl\Util\IntlTestHelper;
1515
use Symfony\Component\Validator\Constraint;
16+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1617

1718
class ComparisonTest_Class
1819
{
@@ -32,7 +33,7 @@ public function __toString()
3233
/**
3334
* @author Daniel Holmes <daniel@danielholmes.org>
3435
*/
35-
abstract class AbstractComparisonValidatorTestCase extends AbstractConstraintValidatorTest
36+
abstract class AbstractComparisonValidatorTestCase extends ConstraintValidatorTestCase
3637
{
3738
protected static function addPhp5Dot5Comparisons(array $comparisons)
3839
{

‎src/Symfony/Component/Validator/Tests/Constraints/AllValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/AllValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
use Symfony\Component\Validator\Constraints\AllValidator;
1616
use Symfony\Component\Validator\Constraints\NotNull;
1717
use Symfony\Component\Validator\Constraints\Range;
18+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1819

19-
class AllValidatorTest extends AbstractConstraintValidatorTest
20+
class AllValidatorTest extends ConstraintValidatorTestCase
2021
{
2122
protected function createValidator()
2223
{

‎src/Symfony/Component/Validator/Tests/Constraints/BicValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/BicValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313

1414
use Symfony\Component\Validator\Constraints\BicValidator;
1515
use Symfony\Component\Validator\Constraints\Bic;
16+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1617

17-
class BicValidatorTest extends AbstractConstraintValidatorTest
18+
class BicValidatorTest extends ConstraintValidatorTestCase
1819
{
1920
protected function createValidator()
2021
{

‎src/Symfony/Component/Validator/Tests/Constraints/BlankValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/BlankValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313

1414
use Symfony\Component\Validator\Constraints\Blank;
1515
use Symfony\Component\Validator\Constraints\BlankValidator;
16+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1617

17-
class BlankValidatorTest extends AbstractConstraintValidatorTest
18+
class BlankValidatorTest extends ConstraintValidatorTestCase
1819
{
1920
protected function createValidator()
2021
{

‎src/Symfony/Component/Validator/Tests/Constraints/CallbackValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/CallbackValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Symfony\Component\Validator\Constraints\Callback;
1616
use Symfony\Component\Validator\Constraints\CallbackValidator;
1717
use Symfony\Component\Validator\Context\ExecutionContextInterface;
18+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1819

1920
class CallbackValidatorTest_Class
2021
{
@@ -43,7 +44,7 @@ public static function validateStatic($object, ExecutionContextInterface $contex
4344
}
4445
}
4546

46-
class CallbackValidatorTest extends AbstractConstraintValidatorTest
47+
class CallbackValidatorTest extends ConstraintValidatorTestCase
4748
{
4849
protected function createValidator()
4950
{

‎src/Symfony/Component/Validator/Tests/Constraints/CardSchemeValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/CardSchemeValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313

1414
use Symfony\Component\Validator\Constraints\CardScheme;
1515
use Symfony\Component\Validator\Constraints\CardSchemeValidator;
16+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1617

17-
class CardSchemeValidatorTest extends AbstractConstraintValidatorTest
18+
class CardSchemeValidatorTest extends ConstraintValidatorTestCase
1819
{
1920
protected function createValidator()
2021
{

‎src/Symfony/Component/Validator/Tests/Constraints/ChoiceValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/ChoiceValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313

1414
use Symfony\Component\Validator\Constraints\Choice;
1515
use Symfony\Component\Validator\Constraints\ChoiceValidator;
16+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1617

1718
function choice_callback()
1819
{
1920
return array('foo', 'bar');
2021
}
2122

22-
class ChoiceValidatorTest extends AbstractConstraintValidatorTest
23+
class ChoiceValidatorTest extends ConstraintValidatorTestCase
2324
{
2425
protected function createValidator()
2526
{

‎src/Symfony/Component/Validator/Tests/Constraints/CollectionValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/CollectionValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
use Symfony\Component\Validator\Constraints\Optional;
1818
use Symfony\Component\Validator\Constraints\Range;
1919
use Symfony\Component\Validator\Constraints\Required;
20+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
2021

21-
abstract class CollectionValidatorTest extends AbstractConstraintValidatorTest
22+
abstract class CollectionValidatorTest extends ConstraintValidatorTestCase
2223
{
2324
protected function createValidator()
2425
{

‎src/Symfony/Component/Validator/Tests/Constraints/CountValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/CountValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313

1414
use Symfony\Component\Validator\Constraints\Count;
1515
use Symfony\Component\Validator\Constraints\CountValidator;
16+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1617

1718
/**
1819
* @author Bernhard Schussek <bschussek@gmail.com>
1920
*/
20-
abstract class CountValidatorTest extends AbstractConstraintValidatorTest
21+
abstract class CountValidatorTest extends ConstraintValidatorTestCase
2122
{
2223
protected function createValidator()
2324
{

‎src/Symfony/Component/Validator/Tests/Constraints/CountryValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/CountryValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
use Symfony\Component\Intl\Util\IntlTestHelper;
1515
use Symfony\Component\Validator\Constraints\Country;
1616
use Symfony\Component\Validator\Constraints\CountryValidator;
17+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1718

18-
class CountryValidatorTest extends AbstractConstraintValidatorTest
19+
class CountryValidatorTest extends ConstraintValidatorTestCase
1920
{
2021
protected function createValidator()
2122
{

‎src/Symfony/Component/Validator/Tests/Constraints/CurrencyValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/CurrencyValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
use Symfony\Component\Intl\Util\IntlTestHelper;
1515
use Symfony\Component\Validator\Constraints\Currency;
1616
use Symfony\Component\Validator\Constraints\CurrencyValidator;
17+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1718

18-
class CurrencyValidatorTest extends AbstractConstraintValidatorTest
19+
class CurrencyValidatorTest extends ConstraintValidatorTestCase
1920
{
2021
protected function createValidator()
2122
{

‎src/Symfony/Component/Validator/Tests/Constraints/DateTimeValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/DateTimeValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313

1414
use Symfony\Component\Validator\Constraints\DateTime;
1515
use Symfony\Component\Validator\Constraints\DateTimeValidator;
16+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1617

17-
class DateTimeValidatorTest extends AbstractConstraintValidatorTest
18+
class DateTimeValidatorTest extends ConstraintValidatorTestCase
1819
{
1920
protected function createValidator()
2021
{

‎src/Symfony/Component/Validator/Tests/Constraints/DateValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/DateValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313

1414
use Symfony\Component\Validator\Constraints\Date;
1515
use Symfony\Component\Validator\Constraints\DateValidator;
16+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1617

17-
class DateValidatorTest extends AbstractConstraintValidatorTest
18+
class DateValidatorTest extends ConstraintValidatorTestCase
1819
{
1920
protected function createValidator()
2021
{

‎src/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313

1414
use Symfony\Component\Validator\Constraints\Email;
1515
use Symfony\Component\Validator\Constraints\EmailValidator;
16+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1617

17-
class EmailValidatorTest extends AbstractConstraintValidatorTest
18+
class EmailValidatorTest extends ConstraintValidatorTestCase
1819
{
1920
protected function createValidator()
2021
{

‎src/Symfony/Component/Validator/Tests/Constraints/ExpressionValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/ExpressionValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313

1414
use Symfony\Component\Validator\Constraints\Expression;
1515
use Symfony\Component\Validator\Constraints\ExpressionValidator;
16+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1617
use Symfony\Component\Validator\Tests\Fixtures\Entity;
1718

18-
class ExpressionValidatorTest extends AbstractConstraintValidatorTest
19+
class ExpressionValidatorTest extends ConstraintValidatorTestCase
1920
{
2021
protected function createValidator()
2122
{

‎src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/FileValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
use Symfony\Component\HttpFoundation\File\UploadedFile;
1515
use Symfony\Component\Validator\Constraints\File;
1616
use Symfony\Component\Validator\Constraints\FileValidator;
17+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1718

18-
abstract class FileValidatorTest extends AbstractConstraintValidatorTest
19+
abstract class FileValidatorTest extends ConstraintValidatorTestCase
1920
{
2021
protected $path;
2122

‎src/Symfony/Component/Validator/Tests/Constraints/IbanValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/IbanValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313

1414
use Symfony\Component\Validator\Constraints\Iban;
1515
use Symfony\Component\Validator\Constraints\IbanValidator;
16+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1617

17-
class IbanValidatorTest extends AbstractConstraintValidatorTest
18+
class IbanValidatorTest extends ConstraintValidatorTestCase
1819
{
1920
protected function createValidator()
2021
{

‎src/Symfony/Component/Validator/Tests/Constraints/ImageValidatorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/ImageValidatorTest.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313

1414
use Symfony\Component\Validator\Constraints\Image;
1515
use Symfony\Component\Validator\Constraints\ImageValidator;
16+
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
1617

1718
/**
1819
* @requires extension fileinfo
1920
*/
20-
class ImageValidatorTest extends AbstractConstraintValidatorTest
21+
class ImageValidatorTest extends ConstraintValidatorTestCase
2122
{
2223
protected $context;
2324

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.